Documentation
¶
Index ¶
- Constants
- func GetBoolValue(k string) (bool, error)
- func GetJsonValue(k string, data interface{}) error
- func GetValue(k string) (string, error)
- func Pub(channel string, val string) error
- func PubBool(channel string, val bool) error
- func PubBoolQ(channel string, data bool)
- func PubJson(channel string, val interface{}) error
- func PubJsonQ(channel string, data interface{}) error
- func PubQ(channel string, data string)
- func RemValue(k string)
- func SetBoolValue(k string, v bool)
- func SetBuffer(count int)
- func SetJsonValue(k string, data interface{})
- func SetValue(k string, v string)
- func Sub(ctx context.Context, channel string, consumer func(*SubCtx))
- type JobHandler
- type Queue
- type Streamer
- type SubCtx
- type Suber
- type Value
Constants ¶
View Source
const ( BoolTrue = "True" BoolFalse = "False" )
Variables ¶
This section is empty.
Functions ¶
func GetBoolValue ¶ added in v0.0.11
func GetJsonValue ¶ added in v0.0.11
func SetBoolValue ¶ added in v0.0.11
func SetJsonValue ¶ added in v0.0.11
func SetJsonValue(k string, data interface{})
Types ¶
type JobHandler ¶ added in v0.0.11
type JobHandler func(*SubCtx)
type Queue ¶ added in v0.0.11
type Queue struct {
Stream chan string
}
func (*Queue) AppendBool ¶ added in v0.0.11
func (*Queue) AppendJson ¶ added in v0.0.11
type Streamer ¶ added in v0.0.11
func NewStreamer ¶ added in v0.0.11
func NewStreamer() *Streamer
func (*Streamer) Add ¶ added in v0.0.11
func (s *Streamer) Add(name string, handler JobHandler)
type Value ¶ added in v0.0.11
type Value struct {
Data string
}
func (*Value) GetJsonData ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.