pkg

package module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDatabase

func MigrateDatabase() error

func NewConsumer

func NewConsumer(ctx context.Context, topics []string, groupID string, handler func(kafka.Message))

func OpenConnection

func OpenConnection() (*sql.DB, error)

Types

type Consumer

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

type Producer added in v0.1.9

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

func NewProducer added in v0.1.9

func NewProducer(topic string) *Producer

func (*Producer) Close added in v0.1.9

func (producer *Producer) Close() error

func (*Producer) ProduceMessage added in v0.1.9

func (producer *Producer) ProduceMessage(ctx context.Context, key string, value interface{}) error

Jump to

Keyboard shortcuts

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