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
- type TransactionSeataSettingS
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 ¶ added in v1.6.3
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 ¶ added in v1.2.4
type HttpRateLimitSettingS ¶ added in v1.5.13
type HttpRateLimitSettingS struct {
MaxConcurrent int
}
type HttpServerSettingS ¶ added in v1.5.11
type HttpServerSettingS struct {
Network string
ReadTimeout int
WriteTimeout int
IdleTimeout int
SupportH2 bool
// contains filtered or unexported fields
}
func (*HttpServerSettingS) GetAddr ¶ added in v1.5.11
func (s *HttpServerSettingS) GetAddr() string
func (*HttpServerSettingS) GetIdleTimeout ¶ added in v1.5.11
func (s *HttpServerSettingS) GetIdleTimeout() time.Duration
func (*HttpServerSettingS) GetReadTimeout ¶ added in v1.5.11
func (s *HttpServerSettingS) GetReadTimeout() time.Duration
func (*HttpServerSettingS) GetWriteTimeout ¶ added in v1.5.11
func (s *HttpServerSettingS) GetWriteTimeout() time.Duration
func (*HttpServerSettingS) SetAddr ¶ added in v1.5.11
func (s *HttpServerSettingS) SetAddr(addr string)
type JwtSettingS ¶ added in v1.5.9
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
InterpolateParams 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
SQLProxy string
}
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 ¶ added in v1.4.2
type RPCClientKeepaliveParamsS ¶ added in v1.5.1
type RPCRateLimitSettingS ¶ added in v1.5.13
type RPCRateLimitSettingS struct {
MaxConcurrent int
}
type RPCServerKeepaliveEnforcementPolicyS ¶ added in v1.5.1
type RPCServerKeepaliveParamsS ¶ added in v1.5.1
type RPCServerParamsS ¶ added in v1.5.5
type RPCTransportBufferS ¶ added in v1.5.1
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.