message

package
v0.0.0-...-02b068e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	Username    string
	Password    string
	Sasl        bool
	WorkerCount int
	BatchSize   int
	Topics      []string
	GroupID     string
	Conn        DSNConnection
}

type DSNConnection

type DSNConnection struct {
	Host string
	Port string
	User string
	Pass string
	Name string
}

type Message

type Message struct {
	Outbox *outbox.Outbox
	Inbox  *inbox.Inbox
	// contains filtered or unexported fields
}

func Open

func Open(brokers []string, opts ...Opts) (*Message, error)

type Opts

type Opts func(*Message) error

func Config

func Config(cfg Cfg) Opts

Jump to

Keyboard shortcuts

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