Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAddress() string
Types ¶
type Config ¶
type Config struct { Host string Port int InstanceType InstanceType }
type ConfigFile ¶
type ConfigFile struct { Config struct { Servers []Server `yaml:"servers"` Clients []Client `yaml:"clients"` } `yaml:"config"` }
func GetConfig ¶
func GetConfig() ConfigFile
type InstanceType ¶
type InstanceType int
const ( InstanceTypeClient InstanceType = iota InstanceTypeServer InstanceTypeLoadBalancer )
func (*InstanceType) Set ¶
func (i *InstanceType) Set(s string) error
func (InstanceType) String ¶
func (i InstanceType) String() string
Click to show internal directories.
Click to hide internal directories.