Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSingleClient ¶ added in v1.0.2
func GetSingleClient() *redis.Client
Types ¶
type ComponentDB ¶
type ComponentDB struct {
// contains filtered or unexported fields
}
func NewComponentDB ¶
func NewComponentDB() *ComponentDB
func (*ComponentDB) GetDefDB ¶
func (c *ComponentDB) GetDefDB() db.IDB
type ComponentMQ ¶
type ComponentMQ struct { }
func NewComponentMQ ¶
func NewComponentMQ() *ComponentMQ
func (*ComponentMQ) Produce ¶
func (m *ComponentMQ) Produce(queueName, value string) error
type IComponentDB ¶
type IComponentMQ ¶
type IToolBox ¶
type IToolBox interface { GetDefDB() db.IDB GetDB(name string) (db.IDB, error) Produce(queueName, value string) error }
func NewToolBox ¶
func NewToolBox() IToolBox
type ToolBox ¶
type ToolBox struct { *ComponentDB *ComponentMQ }
Click to show internal directories.
Click to hide internal directories.