config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TelegramApiToken       string        `env:"TELEGRAM_API_TOKEN,required"`
	TelegramApiEndpoint    string        `env:"TELEGRAM_API_ENDPOINT"`
	OurSpbClientId         string        `env:"OURSPB_CLIENT_ID,required"`
	OurSpbSecret           string        `env:"OURSPB_SECRET,required"`
	FirebaseServiceAccount string        `env:"FIREBASE_SERVICE_ACCOUNT,required"`
	SenderEnabled          bool          `env:"SENDER_ENABLED"`
	SenderSleepDuration    time.Duration `env:"SENDER_SLEEP_DURATION,required"`
	InactivityDuration     time.Duration `env:"INACTIVIRY_DURATION,required"`
}

func NewConfig added in v0.20.0

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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