Documentation ¶
Index ¶
- Constants
- func Command(getCommands CommandFactory, daemonServices []DaemonService, ...) *cobra.Command
- func ConnectSessionToSystemA(ctx context.Context, session trafficmgr.Session) (*grpc.ClientConn, error)
- func ConnectSystemA(ctx context.Context, systemaURL, apiKey string) (*grpc.ClientConn, error)
- func Notify(c context.Context, message string)
- type CommandFactory
- type DaemonService
- type WithSession
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"
func ConnectSessionToSystemA ¶
func ConnectSessionToSystemA(ctx context.Context, session trafficmgr.Session) (*grpc.ClientConn, error)
func ConnectSystemA ¶
ConnectSystemA tries to create a connection to the given systemaURL using the apiKey for authorization and returns the connection if it was successful in creating one
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.