Documentation ¶
Index ¶
- Constants
- Variables
- func GetEntry(m map[string]interface{}, key string) interface{}
- type KafkaMQClient
- func (kafkaMQ *KafkaMQClient) Chan() (ch chan []byte)
- func (kafkaMQ *KafkaMQClient) Channel() string
- func (kafkaMQ *KafkaMQClient) Cluster() string
- func (kafkaMQ *KafkaMQClient) Connect(ctx context.Context, clientName string, args map[string]interface{}) error
- func (kafkaMQ *KafkaMQClient) String() string
- func (kafkaMQ *KafkaMQClient) Subscribe(ctx context.Context, channelName string) error
- func (kafkaMQ *KafkaMQClient) Unsubscribe()
- type RedisMQClient
- func (redisMQ *RedisMQClient) Chan() (ch chan []byte)
- func (redisMQ *RedisMQClient) Channel() string
- func (redisMQ *RedisMQClient) Cluster() string
- func (redisMQ *RedisMQClient) Connect(ctx context.Context, clientName string, args map[string]interface{}) error
- func (redisMQ *RedisMQClient) String() string
- func (redisMQ *RedisMQClient) Subscribe(ctx context.Context, channel string) error
- func (redisMQ *RedisMQClient) Unsubscribe()
- type StanMQClient
- func (stanMQ *StanMQClient) Chan() (ch chan []byte)
- func (stanMQ *StanMQClient) Channel() string
- func (stanMQ *StanMQClient) Cluster() string
- func (stanMQ *StanMQClient) Connect(ctx context.Context, clientName string, args map[string]interface{}) error
- func (stanMQ *StanMQClient) String() string
- func (stanMQ *StanMQClient) Subscribe(ctx context.Context, channelName string) error
- func (stanMQ *StanMQClient) Unsubscribe()
Constants ¶
View Source
const MsgChannelBuffer = 32
Variables ¶
View Source
var MQClients = []string{}
MQClients lists all current mqclients we have available.
Functions ¶
Types ¶
type KafkaMQClient ¶
type KafkaMQClient struct { KafkaClient *kafka.Reader // contains filtered or unexported fields }
func NewKafkaMQClient ¶
func NewKafkaMQClient() (mqC *KafkaMQClient)
func (*KafkaMQClient) Chan ¶
func (kafkaMQ *KafkaMQClient) Chan() (ch chan []byte)
func (*KafkaMQClient) Channel ¶
func (kafkaMQ *KafkaMQClient) Channel() string
func (*KafkaMQClient) Cluster ¶
func (kafkaMQ *KafkaMQClient) Cluster() string
func (*KafkaMQClient) String ¶
func (kafkaMQ *KafkaMQClient) String() string
func (*KafkaMQClient) Subscribe ¶
func (kafkaMQ *KafkaMQClient) Subscribe(ctx context.Context, channelName string) error
func (*KafkaMQClient) Unsubscribe ¶
func (kafkaMQ *KafkaMQClient) Unsubscribe()
type RedisMQClient ¶
type RedisMQClient struct {
// contains filtered or unexported fields
}
func NewRedisMQClient ¶
func NewRedisMQClient() (mqC *RedisMQClient)
func (*RedisMQClient) Chan ¶
func (redisMQ *RedisMQClient) Chan() (ch chan []byte)
func (*RedisMQClient) Channel ¶
func (redisMQ *RedisMQClient) Channel() string
func (*RedisMQClient) Cluster ¶
func (redisMQ *RedisMQClient) Cluster() string
func (*RedisMQClient) String ¶
func (redisMQ *RedisMQClient) String() string
func (*RedisMQClient) Subscribe ¶
func (redisMQ *RedisMQClient) Subscribe(ctx context.Context, channel string) error
func (*RedisMQClient) Unsubscribe ¶
func (redisMQ *RedisMQClient) Unsubscribe()
type StanMQClient ¶
type StanMQClient struct { NatsClient *nats.Conn `json:"-"` StanClient stan.Conn `json:"-"` // contains filtered or unexported fields }
func NewStanMQClient ¶
func NewStanMQClient() (mqC *StanMQClient)
func (*StanMQClient) Chan ¶
func (stanMQ *StanMQClient) Chan() (ch chan []byte)
func (*StanMQClient) Channel ¶
func (stanMQ *StanMQClient) Channel() string
func (*StanMQClient) Cluster ¶
func (stanMQ *StanMQClient) Cluster() string
func (*StanMQClient) String ¶
func (stanMQ *StanMQClient) String() string
func (*StanMQClient) Subscribe ¶
func (stanMQ *StanMQClient) Subscribe(ctx context.Context, channelName string) error
func (*StanMQClient) Unsubscribe ¶
func (stanMQ *StanMQClient) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.