Documentation ¶
Index ¶
- func ConnectClient(nameService string) interface{}
- func ConnectEtcd()
- func LoadConfig(key string)
- func PutMultipleValuesWithDB(ctx context.Context, kv clientv3.KV, prefixService string)
- func PutMultipleValuesWithRedis(ctx context.Context, kv clientv3.KV, prefixService string)
- func PutMultipleValuesWithServer(ctx context.Context, kv clientv3.KV, prefixService string)
- type ConfigEtcd
- type Configurations
- type DatabaseDetails
- type RedisClients
- type ServerDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectClient ¶
func ConnectClient(nameService string) interface{}
func ConnectEtcd ¶
func ConnectEtcd()
func LoadConfig ¶
func LoadConfig(key string)
func PutMultipleValuesWithDB ¶
func PutMultipleValuesWithRedis ¶
put config redis
Types ¶
type ConfigEtcd ¶
type Configurations ¶
type Configurations struct { Port string Sql []DatabaseDetails Crdb []DatabaseDetails Redis []RedisClients Server []ServerDetails }
var (
Config *Configurations
)
type DatabaseDetails ¶
type RedisClients ¶
type ServerDetails ¶
Click to show internal directories.
Click to hide internal directories.