config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = &Struck{}
)

Functions

This section is empty.

Types

type Struck

type Struck struct {
	Redis struct {
		User           string        `yaml:"user"`
		Db             int           `yaml:"db"`
		Host           string        `yaml:"host"`
		Password       string        `yaml:"password"`
		Port           string        `yaml:"port"`
		MaxIdle        int           `yaml:"max_idle"`
		ConnectTimeOut time.Duration `yaml:"connect_time_out"`
		WriteTimeOut   time.Duration `yaml:"write_time_out"`
		ReadTimeOut    time.Duration `yaml:"read_time_out"`
	} `yaml:"redis"`
	Logger struct {
		Prefix      string                 `yaml:"prefix"`
		WithFields  map[string]interface{} `yaml:"withFields"`
		InFile      bool                   `yaml:"inFile"`
		IsHook      bool                   `yaml:"isHook"`
		DateFormat  string                 `yaml:"dateFormat"`
		Environment string                 `yaml:"environment"`
	} `yaml:"logger"`
}

Jump to

Keyboard shortcuts

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