server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	Producers map[string]client.Producer
	Consumer  *client.Consumer

	Logger logger.Logger
	// contains filtered or unexported fields
}

func (*Broker) Call

func (b *Broker) Call(producerName string, funName string, data *[]byte) (*[]byte, error)

func (*Broker) LogErr

func (b *Broker) LogErr(err error)

func (*Broker) New

func (b *Broker) New(args ...interface{})

!!请直接在demo中查看创建的例子 @title Broker.New @description 创建Broker @auth loveward 2020-12-27 12:06 @param addr string 监听地址 @param port int 端口 @param producers map[string]client.Producer 生产者集合 @param consumer *client.Consumer 消费者 @param Logger logger.Logger 日志

Jump to

Keyboard shortcuts

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