setting

package
v0.0.0-...-b32f419 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 3 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 {
	DefaultPageSize       int
	MaxPageSize           int
	DefaultContextTimeout time.Duration
	LogSavePath           string
	LogFileName           string
	LogFileExt            string
	UploadMaxSize         int
	DeployPath            []string
	DeployFiles           []string
	ExecScripts           []string
	UploadAllowExts       []string
}

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(configs ...string) (*Setting, error)

func (*Setting) ReadSection

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

func (*Setting) ReloadAllSection

func (s *Setting) ReloadAllSection() error

func (*Setting) WatchSettingChange

func (s *Setting) WatchSettingChange()

Jump to

Keyboard shortcuts

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