Documentation ¶
Index ¶
Constants ¶
View Source
const (
// GRPCEndpointDefault is a default endpoint of gRPC Control service.
GRPCEndpointDefault = ""
)
Variables ¶
This section is empty.
Functions ¶
func AuthorizedKeys ¶ added in v0.22.0
func AuthorizedKeys(c *config.Config) keys.PublicKeys
AuthorizedKeys parses and returns array of "authorized_keys" config parameter from "control" section.
Returns empty list if not set.
Types ¶
type GRPCConfig ¶
type GRPCConfig struct {
// contains filtered or unexported fields
}
GRPCConfig is a wrapper over "grpc" config section which provides access to gRPC configuration of control service.
func GRPC ¶
func GRPC(c *config.Config) GRPCConfig
GRPC returns structure that provides access to "grpc" subsection of "control" section.
func (GRPCConfig) Endpoint ¶
func (g GRPCConfig) Endpoint() string
Endpoint returns value of "endpoint" config parameter.
Returns GRPCEndpointDefault if value is not a non-empty string.
Click to show internal directories.
Click to hide internal directories.