Documentation
¶
Index ¶
Constants ¶
View Source
const ProcessName = "connector"
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command(getCommands CommandFactory, daemonServices []DaemonService, sessionServices []trafficmgr.SessionService) *cobra.Command
Command returns the CLI sub-command for "connector-foreground"
Types ¶
type CommandFactory ¶
type CommandFactory func() cliutil.CommandGroups
type DaemonService ¶
type DaemonService interface { Name() string // Start should start the daemon service. It's expected that it returns and does not block. Any long-running tasks should be // managed as goroutines started by Start. Start(ctx context.Context, scout *scout.Reporter, grpcServer *grpc.Server, withSession WithSession) error }
A DaemonService is one that runs during the entire lifecycle of the daemon. This should be used to augment the daemon with GRPC services.
Click to show internal directories.
Click to hide internal directories.