mqclients

package
v0.0.0-...-1966ff4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MQClients = []string{}

MQClients lists all current mqclients we have available.

Functions

func GetEntry

func GetEntry(m map[string]interface{}, key string) interface{}

Returns first match from a map and handles keys as non case sensitive.

Types

type JetStreamMQClient

type JetStreamMQClient struct {
	JetStreamClient jetstream.JetStream `json:"-"`
	JetStreamStream jetstream.Stream    `json:"-"`
	// contains filtered or unexported fields
}

func (*JetStreamMQClient) Channel

func (jetstreamMQ *JetStreamMQClient) Channel() string

func (*JetStreamMQClient) Connect

func (jetstreamMQ *JetStreamMQClient) Connect(ctx context.Context, clientName string, args map[string]interface{}) error

func (*JetStreamMQClient) Publish

func (jetstreamMQ *JetStreamMQClient) Publish(ctx context.Context, channelName string, data []byte) error

func (*JetStreamMQClient) String

func (jetstreamMQ *JetStreamMQClient) String() string

type KafkaMQClient

type KafkaMQClient struct {
	KafkaClient *kafka.Writer
	// contains filtered or unexported fields
}

func (*KafkaMQClient) Channel

func (kafkaMQ *KafkaMQClient) Channel() string

func (*KafkaMQClient) Connect

func (kafkaMQ *KafkaMQClient) Connect(ctx context.Context, clientName string, args map[string]interface{}) error

func (*KafkaMQClient) Publish

func (kafkaMQ *KafkaMQClient) Publish(ctx context.Context, channelName string, data []byte) error

func (*KafkaMQClient) String

func (kafkaMQ *KafkaMQClient) String() string

type RedisMQClient

type RedisMQClient struct {
	// contains filtered or unexported fields
}

func (*RedisMQClient) Channel

func (redisMQ *RedisMQClient) Channel() string

func (*RedisMQClient) Connect

func (redisMQ *RedisMQClient) Connect(ctx context.Context, clientName string, args map[string]interface{}) error

func (*RedisMQClient) Publish

func (redisMQ *RedisMQClient) Publish(ctx context.Context, channelName string, data []byte) error

func (*RedisMQClient) String

func (redisMQ *RedisMQClient) String() string

Jump to

Keyboard shortcuts

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