setting

package
v0.0.0-...-691314a Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSettingS

type AppSettingS struct {
	RunMode         string
	HttpPort        string
	ReadTimeout     time.Duration
	WriteTimeout    time.Duration
	DefaultPageSize int
	MaxPageSize     int
	LogSavePath     string
	LogFileName     string
	LogFileExt      string
	LinkPrefix      string
	RequestLimit    time.Duration
	AllowOrigins    []string
}

type MongoDBSettingS

type MongoDBSettingS struct {
	Addr     []string
	User     string
	Password string
	AuthDB   string
}

type RedisSettingS

type RedisSettingS struct {
	Addr     string
	Password string
	DB       int
}

type ServerSettingS

type ServerSettingS struct {
	RunMode      string
	HttpPort     string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

func NewSetting

func NewSetting() (*Setting, error)

func (*Setting) ReadSection

func (s *Setting) ReadSection(k string, v interface{}) error

func (*Setting) ReloadAllSection

func (s *Setting) ReloadAllSection() error

Jump to

Keyboard shortcuts

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