sarama

package
v0.0.0-...-0303aaf Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerStopped = fmt.Errorf("server stopped")
)

Functions

This section is empty.

Types

type KafkaServer

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

func NewKafkaServer

func NewKafkaServer(opt ...KafkaServerOption) (*KafkaServer, error)

func (*KafkaServer) GracefulStop

func (s *KafkaServer) GracefulStop()

func (*KafkaServer) Serve

func (s *KafkaServer) Serve(lis net.Listener) error

Serve accepts incoming connections on the listener lis, creating a new service goroutine for each.

Serve panics if lis is nil.

type KafkaServerOption

type KafkaServerOption interface {
	// contains filtered or unexported methods
}

func WithMetadataStoreGrpcClient

func WithMetadataStoreGrpcClient(c pb.MetadataStoreClient) KafkaServerOption

Jump to

Keyboard shortcuts

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