Previously, developers need to import many different sub-packages and compose them to have a functional pgcapture consumer or gateway.
This PR is aimed to make this library to be more friendly to developers by aliasing commonly used objects to the github.com/rueian/pgcapture, not deeper sub-packages. So that developer's import list can be simplified like this:
To do so, this PR moves the main package from the root folder to the cmd folder.
Previously, developers need to import many different sub-packages and compose them to have a functional pgcapture consumer or gateway.
This PR is aimed to make this library to be more friendly to developers by aliasing commonly used objects to the
github.com/rueian/pgcapture
, not deeper sub-packages. So that developer's import list can be simplified like this:To do so, this PR moves the
main
package from the root folder to thecmd
folder.