Documentation
¶
Overview ¶
Package config provide struct that are representatio of service configuration. Also it provide function MustLoad which load variable from ENV
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// PeerName string `env:"PEER_NAME"`
// PeerPort int `env:"PEER_PORT" env-default:"8001"`
WebSocketPort int `env:"WEBSOCKET_PORT" env-default:"8001"`
MulticastAddress string `env:"MULTICAST_ADDRESS" env-default:"235.5.5.11"`
MulticastPort int `env:"MULTICAST_PORT" env-default:"8001"`
MulticastInterfaceName string `env:"MULTICAST_INTERFACE_NAME" env-default:"wlan0"`
}
Click to show internal directories.
Click to hide internal directories.