Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Port *string TelegramBoToken *string DefaultChatID *int APIV1Credentials *map[string]string LocalNets []*net.IPNet MongoUsername *string MongoPassword *string OmadaUrl *string OmadaUsername *string OmadaPassword *string }
Configuration contrains configuration parameters.
func NewFromEnv ¶
func NewFromEnv() (*Configuration, error)
NewFromEnv creates new configuration from environment variables.
func NewFromParams ¶
func NewFromParams(port *string, boToken *string, defaultChatID *string, apiV1Credentials *string, mongoUsername *string, mongoPassword *string, omadaUrl *string, omadaUsername *string, omadaPassword *string) (*Configuration, error)
NewFromParams creates new configuration from arguments.
Click to show internal directories.
Click to hide internal directories.