Documentation ¶
Index ¶
- Constants
- type Config
- type ConfigMap
- type ConfigPush
- type ConfigReturn
- type ID
- type Options
- type Redis
- type RedisURL
- type Sub
- func (self *Sub) Check() (time.Duration, error)
- func (self *Sub) Get() (ConfigMap, error)
- func (self *Sub) ID() ID
- func (self *Sub) Push(config Config) error
- func (self *Sub) Register(config Config) error
- func (self *Sub) Start(config Config) (chan ConfigPush, error)
- func (self *Sub) String() string
- type SubOptions
Constants ¶
View Source
const REDIS_PORT = "6379"
View Source
const SUB_TTL = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigPush ¶
type ConfigPush struct { // this needs to be a pointer for .MarshalJSON() Config *json.RawMessage `json:"config,omitempty"` // contains filtered or unexported fields }
func (ConfigPush) ApplyFunc ¶
func (self ConfigPush) ApplyFunc(applyFunc func(ConfigPush) (Config, error))
func (ConfigPush) Reject ¶
func (self ConfigPush) Reject(err error)
func (ConfigPush) Unmarshal ¶
func (self ConfigPush) Unmarshal(config interface{}) error
type ConfigReturn ¶
type Options ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
type RedisURL ¶
func (*RedisURL) MarshalFlag ¶
func (RedisURL) RedisOptions ¶
func (self RedisURL) RedisOptions() (redisOptions redis.Options)
TODO: ?db=
func (*RedisURL) UnmarshalFlag ¶
type Sub ¶
type Sub struct {
// contains filtered or unexported fields
}
type SubOptions ¶
Click to show internal directories.
Click to hide internal directories.