Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPort is the default port used to serve the Connector. DefaultPort = uint16(8000) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the CLI application.
func (*App) Factory ¶
func (app *App) Factory() *clifactory.Factory
Factory returns the CLI Factory.
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector provides the gRPC server for CLI commands.
func NewConnector ¶
func NewConnector(svc *projection.Service) *Connector
NewConnector returns a new CLI Connector.
type ServeOption ¶
type ServeOption func(*serveConfig)
ServeOption is an option for serving a Connetor.
func Listener ¶
func Listener(lis net.Listener) ServeOption
Listener returns a ServeOption that provides a Connector with a custom Listener. When a Listener is provided, the Port ServeOption has no effect.
func Port ¶
func Port(p uint16) ServeOption
Port returns a ServeOption that specifies the port to use when creating the Listener for a Connector. Default port is 8000. Port has no effect when providing a custom Listener through the Listener ServeOption.
func Server ¶
func Server(srv *grpc.Server) ServeOption
Server returns a ServeOption that specifies the underlying grpc.Server to use.
Click to show internal directories.
Click to hide internal directories.