kafkaop

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelOperator

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

ChannelOperator is a client for channel operations on kafka

func NewOperator

func NewOperator(mem tree.Manager, config sidecars.KafkaConfig) (*ChannelOperator, error)

NewOperator returns an initialized operator from the environment variables

func (*ChannelOperator) Create

func (c *ChannelOperator) Create(ctx context.Context, context string, channel *meta.Channel) error

Create creates a channel in kafka

func (*ChannelOperator) Delete

func (c *ChannelOperator) Delete(ctx context.Context, context string, name string) error

Delete deletes a channel from kafka

func (*ChannelOperator) Get

func (c *ChannelOperator) Get(ctx context.Context, context string, name string) (*meta.Channel, error)

Get gets a channel from kafka

func (*ChannelOperator) GetAll

func (c *ChannelOperator) GetAll(ctx context.Context, context string) (ret []*meta.Channel, err error)

GetAll gets all channels from kafka

func (*ChannelOperator) Update

func (c *ChannelOperator) Update(ctx context.Context, context string, channel *meta.Channel) error

Update updates a channel in kafka

Jump to

Keyboard shortcuts

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