setting

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: BSD-3-Clause Imports: 1 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliRocketMQSettingS

type AliRocketMQSettingS struct {
	BusinessName string
	RegionId     string
	AccessKey    string
	SecretKey    string
	InstanceId   string
	HttpEndpoint string
}

AliRocketMQSettingS defines for aliyun RocketMQ queue

type GPoolSettingS added in v1.2.4

type GPoolSettingS struct {
	WorkerNum  int
	JobChanLen int
}

type LoggerSettingS

type LoggerSettingS struct {
	RootPath string
	Level    string
}

日志

type MongoDBSettingS

type MongoDBSettingS struct {
	Uri         string
	Username    string
	Password    string
	Database    string
	AuthSource  string
	MaxPoolSize int
	MinPoolSize int
}

type MysqlSettingS

type MysqlSettingS struct {
	Host              string
	UserName          string
	Password          string
	DBName            string
	Charset           string
	MaxIdle           int
	MaxOpen           int
	Loc               string
	ConnMaxLifeSecond int
	MultiStatements   bool
	ParseTime         bool
}

MysqlSettingS defines for connecting mysql.

type QueueAMQPSettingS

type QueueAMQPSettingS struct {
	Broker           string
	DefaultQueue     string
	ResultBackend    string
	ResultsExpireIn  int
	Exchange         string
	ExchangeType     string
	BindingKey       string
	PrefetchCount    int
	TaskRetryCount   int
	TaskRetryTimeout int
}

type QueueAliAMQPSettingS

type QueueAliAMQPSettingS struct {
	AccessKey       string
	SecretKey       string
	AliUid          int
	EndPoint        string
	VHost           string
	DefaultQueue    string
	ResultBackend   string
	ResultsExpireIn int
	Exchange        string
	ExchangeType    string
	BindingKey      string
	PrefetchCount   int
}

QueueAliAMQPSettingS defines for aliyun AMQP queue

type QueueRedisSettingS

type QueueRedisSettingS struct {
	Broker          string
	DefaultQueue    string
	ResultBackend   string
	ResultsExpireIn int
}

QueueRedisSettingS defines for redis queue.

type QueueServerSettingS

type QueueServerSettingS struct {
	WorkerConcurrency int
	CustomQueueList   []string
}

QueueServerSettingS defines what queue server needs.

type RedisSettingS

type RedisSettingS struct {
	Host        string
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout int
	DB          int
}

RedisSettingS defines for connecting redis.

type ServerSettingS

type ServerSettingS struct {
	Network              string
	EndPoint             string
	IsRecordCallResponse bool
	PIDFile              string
	ReadTimeout          int
	WriteTimeout         int
	IdleTimeout          int
}

ServerSettingS defines for grpc server.

func (*ServerSettingS) GetIdleTimeout added in v1.2.8

func (s *ServerSettingS) GetIdleTimeout() time.Duration

func (*ServerSettingS) GetReadTimeout added in v1.2.8

func (s *ServerSettingS) GetReadTimeout() time.Duration

func (*ServerSettingS) GetWriteTimeout added in v1.2.8

func (s *ServerSettingS) GetWriteTimeout() time.Duration

Jump to

Keyboard shortcuts

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