internal

package
v0.0.0-...-a9337ee Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Mode string `mapstructure:"mode"`
	Port uint32 `mapstructure:"port"`
}

type Application

type Application struct {
	App App `mapstructure:"app"`
	Log Log `mapstructure:"log"`
}

type HotConf

type HotConf struct {
	Application Application
	Whitelist   Whitelist
}

func CopyHotConf

func CopyHotConf() *HotConf

func GetHotConf

func GetHotConf() *HotConf

type HotConfRegister

type HotConfRegister struct{}

func (HotConfRegister) Register

func (HotConfRegister) Register() error

type Log

type Log struct {
	Filename   string `mapstructure:"filename"`
	MaxSize    int    `mapstructure:"maxSize"`
	MaxBackups int    `mapstructure:"maxBackups"`
	MaxAge     int    `mapstructure:"maxAge"`
	Level      int    `mapstructure:"level"`
}

type WhiteAccount

type WhiteAccount struct {
	Phone string `mapstructure:"phone"`
	ID    string `mapstructure:"id"`
}

type Whitelist

type Whitelist []WhiteAccount

Jump to

Keyboard shortcuts

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