redisconfig

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigUpdated = "ConfigUpdated"

ConfigUpdated TODO

Functions

This section is empty.

Types

type RedisConfig

type RedisConfig struct {
	*serv.Serv

	*sync.RWMutex
	// contains filtered or unexported fields
}

RedisConfig TODO

func New

func New(serv *serv.Serv, client *redis.Client, online []string) *RedisConfig

New TODO

func (*RedisConfig) AllConfigs

func (rds *RedisConfig) AllConfigs() sth.Result

AllConfigs TODO

func (*RedisConfig) GetConfig

func (rds *RedisConfig) GetConfig(key string) (interface{}, error)

GetConfig TODO

func (*RedisConfig) OnStart

func (rds *RedisConfig) OnStart(ctx context.Context) (err error)

OnStart TODO

func (*RedisConfig) OnStop

func (rds *RedisConfig) OnStop(ctx context.Context) error

OnStop TODO

func (*RedisConfig) SetConfigs

func (rds *RedisConfig) SetConfigs(kv map[string]interface{}) (result sth.Result, err error)

SetConfigs TODO

Jump to

Keyboard shortcuts

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