config

package
v0.0.0-...-4f777d2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(debug bool) (*zap.Logger, error)

Types

type Config

type Config struct {
	Telegram
	Mail
	Path string
	Size int
}

func MustLoad

func MustLoad(logger *zap.Logger) *Config

type Mail

type Mail struct {
	Host     string
	Port     string
	From     string
	To       []string
	Password string
}

type Telegram

type Telegram struct {
	Token string
	Host  string
}

Jump to

Keyboard shortcuts

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