Documentation
¶
Index ¶
- type AliRocketMQSettingS
- type G2CacheSettingS
- type GPoolSettingS
- type HttpRateLimitSettingS
- type HttpServerSettingS
- type JwtSettingS
- type LoggerSettingS
- type MongoDBSettingS
- type MysqlSettingS
- type QueueAMQPSettingS
- type QueueAliAMQPSettingS
- type QueueRedisSettingS
- type QueueServerSettingS
- type RPCAuthSettingS
- type RPCClientKeepaliveParamsS
- type RPCRateLimitSettingS
- type RPCServerKeepaliveEnforcementPolicyS
- type RPCServerKeepaliveParamsS
- type RPCServerParamsS
- type RPCTransportBufferS
- type RedisSettingS
- type ServerSettingS
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 ali yun RocketMQ queue
type G2CacheSettingS ¶
type G2CacheSettingS struct {
CacheDebug bool
CacheMonitor bool
OutCachePubSub bool
CacheMonitorSecond int
EntryLazyFactor int
GPoolWorkerNum int
GPoolJobQueueChanLen int
FreeCacheSize int // byte size
PubSubRedisChannel string
RedisConfDSN string
RedisConfDB int
RedisConfPwd string
RedisConfMaxConn int
PubSubRedisConfDSN string
PubSubRedisConfDB int
PubSubRedisConfPwd string
PubSubRedisConfMaxConn int
}
type GPoolSettingS ¶
type HttpRateLimitSettingS ¶
type HttpRateLimitSettingS struct {
MaxConcurrent int
}
type HttpServerSettingS ¶
type HttpServerSettingS struct {
Network string
ReadTimeout int
WriteTimeout int
IdleTimeout int
SupportH2 bool
// contains filtered or unexported fields
}
func (*HttpServerSettingS) GetAddr ¶
func (s *HttpServerSettingS) GetAddr() string
func (*HttpServerSettingS) GetIdleTimeout ¶
func (s *HttpServerSettingS) GetIdleTimeout() time.Duration
func (*HttpServerSettingS) GetReadTimeout ¶
func (s *HttpServerSettingS) GetReadTimeout() time.Duration
func (*HttpServerSettingS) GetWriteTimeout ¶
func (s *HttpServerSettingS) GetWriteTimeout() time.Duration
func (*HttpServerSettingS) SetAddr ¶
func (s *HttpServerSettingS) SetAddr(addr string)
type JwtSettingS ¶
type LoggerSettingS ¶
type MongoDBSettingS ¶
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
ConnectionTimeout string // time unit eg: 2h 3s
WriteTimeout string // time unit eg: 2h 3s
ReadTimeout string // time unit eg: 2h 3s
// only app use
LoggerLevel string
Environment string
Logger log.LoggerContextIface
}
MysqlSettingS defines for connecting mysql.
type QueueAMQPSettingS ¶
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
TaskRetryCount int
TaskRetryTimeout int
DisableConsume bool
}
QueueAliAMQPSettingS defines for ali yun AMQP queue
type QueueRedisSettingS ¶
type QueueRedisSettingS struct {
Broker string
DefaultQueue string
ResultBackend string
ResultsExpireIn int
DisableConsume bool
TaskRetryCount int
TaskRetryTimeout int
}
QueueRedisSettingS defines for redis queue.
type QueueServerSettingS ¶
QueueServerSettingS defines what queue server needs.
type RPCAuthSettingS ¶
type RPCRateLimitSettingS ¶
type RPCRateLimitSettingS struct {
MaxConcurrent int
}
type RPCServerParamsS ¶
type RPCTransportBufferS ¶
type RedisSettingS ¶
type RedisSettingS struct {
Host string
Password string
MaxIdle int
MaxActive int
IdleTimeout int // unit second
ConnectTimeout int // unit second
ReadTimeout int // unit second
WriteTimeout int // unit second
DB int
}
RedisSettingS defines for connecting redis.
type ServerSettingS ¶
ServerSettingS defines for server.
Click to show internal directories.
Click to hide internal directories.