service

package
v1.0.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements the TopicBot service

func New

func New(clusterAdmin sarama.ClusterAdmin) *Service

NewService creates a new service

func (*Service) Create

func (s *Service) Create(ctx context.Context, req *kta.Topic) (*emptypb.Empty, error)

Create adds a new topic to Kafka if it doesn't already exist

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, req *kta.Topic) (*emptypb.Empty, error)

Delete removes a topic from Kafka

func (*Service) List

func (s *Service) List(ctx context.Context, _ *emptypb.Empty) (*kta.Topics, error)

List return existing Topics

Jump to

Keyboard shortcuts

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