Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyClientConfig ¶
func CreateEmptyClientConfig()
CreateEmptyClientConfig creates an empty config
func CreateEmptyServerConfig ¶
func CreateEmptyServerConfig()
CreateEmptyServerConfig creates an empty config
Types ¶
type Client ¶
type Client struct { Connection *grpc.ClientConn // contains filtered or unexported fields }
Client object
type ClientConf ¶
type ClientConf struct { ServerPort int `yaml:"serverport"` TLSServerName string `yaml:"tlsservername"` UseTLS bool `yaml:"useTLS"` PerCallSecurity bool `yaml:"percallsecurity"` KeyWord string `yaml:"keyword"` }
ClientConf is a client configuraiton struct
func GetClientConfig ¶
func GetClientConfig() *ClientConf
GetClientConfig attempts to retrieve configuration from the environment, then a YAML file
type ServerConf ¶
type ServerConf struct { ServerPort int `yaml:"serverport"` ServerCertPort int `yaml:"servercertport"` TLSServerName string `yaml:"tlsservername"` UseTLS bool `yaml:"usetls"` PerCallSecurity bool `yaml:"percallsecurity"` TLSCacheDir string `yaml:"tlscachedir"` KeyWord string `yaml:"keyword"` }
ServerConf is the server configuration struct
func GetServerConfig ¶
func GetServerConfig() *ServerConf
GetServerConfig attempts to retrieve configuration from the environment, then a YAML file
Click to show internal directories.
Click to hide internal directories.