 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const (
	// GRPCEndpointDefault is a default endpoint of gRPC Control service.
	GRPCEndpointDefault = ""
)
    Variables ¶
This section is empty.
Functions ¶
func AuthorizedKeys ¶
func AuthorizedKeys(c *config.Config) keys.PublicKeys
AuthorizedKeys parses and returns an array of "authorized_keys" config parameter from "control" section.
Returns an 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 a structure that provides access to "grpc" subsection of "control" section.
func (GRPCConfig) Endpoint ¶
func (g GRPCConfig) Endpoint() string
Endpoint returns the value of "endpoint" config parameter.
Returns GRPCEndpointDefault if the value is not a non-empty string.
 Click to show internal directories. 
   Click to hide internal directories.