Documentation ¶
Index ¶
- type AliRocketMQSettingS
- type GPoolSettingS
- type JwtSettingS
- type LoggerSettingS
- type MongoDBSettingS
- type MysqlSettingS
- type QueueAMQPSettingS
- type QueueAliAMQPSettingS
- type QueueRedisSettingS
- type QueueServerSettingS
- type RPCAuthSettingS
- type RPCClientKeepaliveParamsS
- 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 GPoolSettingS ¶ added in v1.2.4
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 LoggerLevel string Environment string ConnectionTimeout string // time unit eg: 2h 3s WriteTimeout string // time unit eg: 2h 3s ReadTimeout string // time unit eg: 2h 3s }
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 DisableConsume bool }
QueueAliAMQPSettingS defines for ali yun AMQP queue
type QueueRedisSettingS ¶
type QueueRedisSettingS struct { Broker string DefaultQueue string ResultBackend string ResultsExpireIn int DisableConsume bool }
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 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 ¶
type ServerSettingS struct { AppName string Network string PIDFile string Environment string ReadTimeout int WriteTimeout int IdleTimeout int // contains filtered or unexported fields }
ServerSettingS defines for grpc server.
func (*ServerSettingS) GetAddr ¶ added in v1.5.8
func (s *ServerSettingS) GetAddr() string
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
func (*ServerSettingS) SetAddr ¶ added in v1.5.8
func (s *ServerSettingS) SetAddr(addr string)
Click to show internal directories.
Click to hide internal directories.