Documentation ¶
Index ¶
- type DBConfig
- type JwtConfig
- type LogConfig
- type MqConfig
- type PluginConfig
- type RedisConfig
- func (c *RedisConfig) Address() string
- func (c *RedisConfig) IsLoad() bool
- func (c *RedisConfig) MaxActive() int
- func (c *RedisConfig) MaxIdle() int
- func (c *RedisConfig) Network() string
- func (c *RedisConfig) Password() string
- func (c *RedisConfig) Tls() bool
- func (c *RedisConfig) Type() string
- func (c *RedisConfig) Wait() bool
- type RegistryConfig
- func (c *RegistryConfig) DialTimeout() time.Duration
- func (c *RegistryConfig) Endpoints() []string
- func (c *RegistryConfig) IsEnable() bool
- func (c *RegistryConfig) IsLoad() bool
- func (c *RegistryConfig) MaxRetry() int
- func (c *RegistryConfig) Namespace() string
- func (c *RegistryConfig) TTL() time.Duration
- type RpcClientConf
- type RpcServerConf
- type ServerConfig
- type WsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConfig ¶
type LogConfig struct {
LogC logC `yaml:"log"`
}
LogConfig
func (*LogConfig) StackCoolDownMillis ¶
type MqConfig ¶
type MqConfig struct { Rabbit rabbitMq `yaml:"rabbitMq"` Redis redisMq `yaml:"redisMq"` }
MqConfig
type PluginConfig ¶
type PluginConfig struct {
Plugin plugin `yaml:"plugin"`
}
PluginConfig
func (*PluginConfig) IsLoad ¶
func (c *PluginConfig) IsLoad() bool
func (*PluginConfig) MonitorInterval ¶
func (c *PluginConfig) MonitorInterval() int
type RedisConfig ¶
type RedisConfig struct {
Cache *redis `yaml:"cache"`
}
RedisConfig
func (*RedisConfig) Address ¶
func (c *RedisConfig) Address() string
func (*RedisConfig) IsLoad ¶
func (c *RedisConfig) IsLoad() bool
func (*RedisConfig) MaxActive ¶
func (c *RedisConfig) MaxActive() int
func (*RedisConfig) MaxIdle ¶
func (c *RedisConfig) MaxIdle() int
func (*RedisConfig) Network ¶
func (c *RedisConfig) Network() string
func (*RedisConfig) Password ¶
func (c *RedisConfig) Password() string
func (*RedisConfig) Tls ¶
func (c *RedisConfig) Tls() bool
func (*RedisConfig) Type ¶
func (c *RedisConfig) Type() string
func (*RedisConfig) Wait ¶
func (c *RedisConfig) Wait() bool
type RegistryConfig ¶
type RegistryConfig struct {
Registry registry `yaml:"registry"`
}
RegistryConfig
func (*RegistryConfig) DialTimeout ¶
func (c *RegistryConfig) DialTimeout() time.Duration
func (*RegistryConfig) Endpoints ¶
func (c *RegistryConfig) Endpoints() []string
func (*RegistryConfig) IsEnable ¶
func (c *RegistryConfig) IsEnable() bool
func (*RegistryConfig) IsLoad ¶
func (c *RegistryConfig) IsLoad() bool
func (*RegistryConfig) MaxRetry ¶
func (c *RegistryConfig) MaxRetry() int
func (*RegistryConfig) Namespace ¶
func (c *RegistryConfig) Namespace() string
func (*RegistryConfig) TTL ¶
func (c *RegistryConfig) TTL() time.Duration
type RpcClientConf ¶
type RpcClientConf struct {
RpcClient *rpcClient `yaml:"rpcClient"`
}
RpcClientConf is a rpc client config.
func (*RpcClientConf) BuildTarget ¶
func (c *RpcClientConf) BuildTarget() (string, error)
BuildTarget builds the rpc target from the given config.
func (*RpcClientConf) HasCredential ¶
func (c *RpcClientConf) HasCredential() bool
func (*RpcClientConf) IsLoad ¶
func (c *RpcClientConf) IsLoad() bool
func (*RpcClientConf) NonBlock ¶
func (c *RpcClientConf) NonBlock() bool
func (*RpcClientConf) Timeout ¶
func (c *RpcClientConf) Timeout() int64
type RpcServerConf ¶
type RpcServerConf struct {
RpcServer rpcServer `yaml:"rpcServer"`
}
RpcServerConf is a rpc server config.
func (*RpcServerConf) IsLoad ¶
func (c *RpcServerConf) IsLoad() bool
type ServerConfig ¶
type ServerConfig struct {
Server server `yaml:"server"`
}
ServerConfig
func (*ServerConfig) EnableMetrics ¶
func (c *ServerConfig) EnableMetrics() bool
func (*ServerConfig) EnableWs ¶
func (c *ServerConfig) EnableWs() bool
func (*ServerConfig) IsLoad ¶
func (c *ServerConfig) IsLoad() bool
func (*ServerConfig) Listener ¶
func (c *ServerConfig) Listener() string
func (*ServerConfig) Timeout ¶
func (c *ServerConfig) Timeout() int
Click to show internal directories.
Click to hide internal directories.