config

package
v0.0.0-...-2885a4d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDotEnv

func InitDotEnv() error

Types

type Config

type Config struct {
	TgToken          string       `envconfig:"tg_token"`
	MaintainerChatID int64        `envconfig:"maintainer_chat_id"`
	DBType           string       `envconfig:"db_type"`
	Sqlite           SqliteConfig `envconfig:"sqlite"`
}

func Load

func Load(prefix string) (Config, error)

type SqliteConfig

type SqliteConfig struct {
	File          string `envconfig:"file"`
	MigrationPath string `envconfig:"migration_path"`
}

Jump to

Keyboard shortcuts

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