Documentation ¶
Index ¶
- type AliRocketMQSettingS
- type GPoolSettingS
- 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 aliyun RocketMQ queue
type GPoolSettingS ¶ added in v1.2.4
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 }
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 }
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 ¶
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 DB int }
RedisSettingS defines for connecting redis.
type ServerSettingS ¶
type ServerSettingS struct { Network string EndPoint string IsRecordCallResponse bool PIDFile string Environment 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
Click to show internal directories.
Click to hide internal directories.