conf

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lock = sync.RWMutex{}

Functions

This section is empty.

Types

type AwsSecret

type AwsSecret struct {
	Id     string `yaml:"id"`
	Secret string `yaml:"secret"`
	Proxy  string `yaml:"Proxy"`
}

type Conf

type Conf struct {
	LogLevel string            `yaml:"Log_Level"`
	BotToken string            `yaml:"Bot_Token"`
	UserInfo map[int]*UserData `yaml:"User_Info"`
}

func New

func New() *Conf

func (*Conf) LoadConfig

func (c *Conf) LoadConfig() error

func (*Conf) SaveConfig

func (c *Conf) SaveConfig() error

type UserData

type UserData struct {
	UserName  string                `yaml:"User_Name"`
	NowKey    string                `yaml:"Now_Key"`
	AwsSecret map[string]*AwsSecret `yaml:"Aws_Secret"`
}

Jump to

Keyboard shortcuts

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