Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Listener = "listener" Client = "client" )
Functions ¶
func GetGrpcOptions ¶
func GetListeners ¶
func VerifyCertificate ¶
VerifyCertificate - Verify a certificate
Types ¶
type ClientConfig ¶
type ClientConfig struct {
Operator string `json:"operator" yaml:"operator"` // This value is actually ignored for the most part (cert CN is used instead)
Host string `json:"host" yaml:"host"`
Port int `json:"port" yaml:"port"`
Type string `json:"type" yaml:"type"`
CACertificate string `json:"ca" yaml:"ca"`
PrivateKey string `json:"key" yaml:"key"`
Certificate string `json:"cert" yaml:"cert"`
}
func ReadConfig ¶
func ReadConfig(confFilePath string) (*ClientConfig, error)
ReadConfig - Load config into struct
func (*ClientConfig) Address ¶
func (c *ClientConfig) Address() string
Click to show internal directories.
Click to hide internal directories.