consumertest

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(ctx context.Context, config cfg.Config, logger log.Logger) (stream.ConsumerCallback, error)

Types

type Consumer

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

func (Consumer) Consume

func (c Consumer) Consume(ctx context.Context, model interface{}, attributes map[string]string) (bool, error)

func (Consumer) GetModel

func (c Consumer) GetModel(attributes map[string]string) interface{}

type Todo

type Todo struct {
	Id     int
	Text   string
	Status string
}

Jump to

Keyboard shortcuts

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