kafka

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	// 网络配置
	ListenAddr string
	MultiCore  bool
	NeedSasl   bool
	MaxConn    int32

	// Kafka协议配置
	ClusterId     string
	AdvertiseHost string
	AdvertisePort int
}

type ServerControl

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

func Run

func Run(config *ServerConfig, impl service.KfkServer) (*ServerControl, error)

func (*ServerControl) DisConnect

func (s *ServerControl) DisConnect(addr net.Addr) error

Jump to

Keyboard shortcuts

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