config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cnf

type Cnf struct {
	DB       DB
	Telegram Tg
	Storage  Stor
	Listen   string `default:":8080"`
}

func NewConf

func NewConf() (*Cnf, error)

type DB

type DB struct {
	Addr string
}

type Stor

type Stor struct {
	RedisAddrs string
}

type Tg

type Tg struct {
	BotName    string
	Path       string
	Processors int `default:"10"`
	Proxy      string
	Token      string
	URL        string
}

Jump to

Keyboard shortcuts

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