config

package
v0.0.0-...-c59a99f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL