config

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 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 RedisSetting

type RedisSetting struct {
	Enabled                  bool          `json:"enabled"`
	Host                     string        `json:"host"`
	Port                     int           `json:"port"`
	Auth                     string        `json:"auth"`
	MaxIdle                  int           `json:"maxIdle" yaml:"maxIdle"`
	MaxActive                int           `json:"maxActive" yaml:"maxActive"`
	IdleTimout               time.Duration `json:"idleTimeout" yaml:"idleTimeout"`
	Database                 int           `json:"database"`
	ConnectionFailRetryTimes int           `json:"connectionFailRetryTimes" yaml:"connectionFailRetryTimes"`
	ReConnectInterval        time.Duration `json:"reConnectInterval" yaml:"reConnectInterval"`
}
var Setting *RedisSetting = &RedisSetting{
	Enabled:                  false,
	Port:                     6379,
	Database:                 1,
	MaxIdle:                  10,
	MaxActive:                1000,
	IdleTimout:               time.Second * 60,
	ConnectionFailRetryTimes: 3,
	ReConnectInterval:        time.Second * 5,
}

Jump to

Keyboard shortcuts

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