Documentation ¶ Index ¶ func NewConsumer(ctx context.Context, config cfg.Config, logger log.Logger) (stream.ConsumerCallback[Todo], error) type Consumer func (c Consumer) Consume(ctx context.Context, todo Todo, attributes map[string]string) (bool, error) type Todo 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[Todo], error) Types ¶ type Consumer ¶ type Consumer struct { // contains filtered or unexported fields } func (Consumer) Consume ¶ func (c Consumer) Consume(ctx context.Context, todo Todo, attributes map[string]string) (bool, error) type Todo ¶ type Todo struct { Id int Text string Status string } Source Files ¶ View all Source files consumer.go Click to show internal directories. Click to hide internal directories.