Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct { Config // contains filtered or unexported fields }
Server is a combination of the underlying grpc.Server and its RuntimeOpts.
type Config ¶
type Config struct { // HostAddr is the APIServer host address HostAddr string // Daemon is the terminal daemon service Daemon *daemon.Service // Log is a component logger Log logrus.FieldLogger TshdServerCreds grpc.ServerOption // ListeningC propagates the address on which the gRPC server listens. Mostly useful in tests, as // the Electron app gets the server port from stdout. ListeningC chan<- utils.NetAddr }
Config is the APIServer configuration
func (*Config) CheckAndSetDefaults ¶
CheckAndSetDefaults checks and sets default config values.
Click to show internal directories.
Click to hide internal directories.