confs

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	DB *dbGorm `yaml:"db"`
}

DBConfig

func (*DBConfig) IsLoad

func (c *DBConfig) IsLoad() bool

type JwtConfig

type JwtConfig struct {
	Jwt jwt `yaml:"auth"`
}

JwtConfig

func (*JwtConfig) IsLoad

func (c *JwtConfig) IsLoad() bool

type LogConfig

type LogConfig struct {
	LogC logC `yaml:"log"`
}

LogConfig

func (*LogConfig) Compress

func (c *LogConfig) Compress() bool

func (*LogConfig) Encoding added in v1.0.3

func (c *LogConfig) Encoding() string

func (*LogConfig) IsLoad

func (c *LogConfig) IsLoad() bool

func (*LogConfig) KeepDays

func (c *LogConfig) KeepDays() int

func (*LogConfig) Level

func (c *LogConfig) Level() string

func (*LogConfig) Mode

func (c *LogConfig) Mode() string

func (*LogConfig) Path

func (c *LogConfig) Path() string

func (*LogConfig) StackCoolDownMillis

func (c *LogConfig) StackCoolDownMillis() int

type MqConfig

type MqConfig struct {
	Rabbit rabbitMq `yaml:"rabbitMq"`
	Redis  redisMq  `yaml:"redisMq"`
}

MqConfig

func (*MqConfig) IsLoad

func (c *MqConfig) IsLoad() bool

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

type WsConfig

type WsConfig struct {
	WS *ws `yaml:"ws"`
}

func (*WsConfig) IsLoad

func (c *WsConfig) IsLoad() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL