setting

package
v0.0.0-...-e046c8a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 Database

type Database struct {
}

数据库

type Logger

type Logger struct {
	Open       bool   `mapstructure:"Open"`
	FilePath   string `mapstructure:"FilePath"`
	MaxSize    int    `mapstructure:"MaxSize"`
	MaxBackups int    `mapstructure:"MaxBackups"`
	MaxAge     int    `mapstructure:"MaxAge"`
	Compress   bool   `mapstructure:"Compress"`
}

日志配置

type Server

type Server struct {
	Mode         string        `mapstructure:"Mode"`
	Addr         string        `mapstructure:"Addr"`
	Port         string        `mapstructure:"Port"`
	ReadTimeout  time.Duration `mapstructure:"ReadTimeout"`
	WriteTimeout time.Duration `mapstructure:"WriteTimeout"`
}

服务地址和端口

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

type Tracer

type Tracer struct {
}

Tracer

Jump to

Keyboard shortcuts

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