component

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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) GetDB

func (c *ComponentDB) GetDB(name string) (db.IDB, error)

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 IComponentDB interface {
	GetDefDB() db.IDB
	GetDB(name string) (db.IDB, error)
}

type IComponentMQ

type IComponentMQ interface {
	Produce(queueName, value string) error
}

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
}

Jump to

Keyboard shortcuts

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