bridge

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(msg model.GobMessage)

func SendAndRecv

func SendAndRecv(msg model.GobMessage, timeout int) (reply *model.GobMessage, err error)

func SetupBridge

func SetupBridge(cfg *config.Dendrite)

Types

type Bridge

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

func (*Bridge) OnMessage

func (b *Bridge) OnMessage(ctx context.Context, topic string, partition int32, data []byte, rawMsg interface{})

func (*Bridge) Send

func (b *Bridge) Send(msg model.GobMessage)

func (*Bridge) SendAndRecv

func (b *Bridge) SendAndRecv(msg model.GobMessage, timeout int) (reply *model.GobMessage, err error)

func (*Bridge) SetupBridge

func (b *Bridge) SetupBridge(cfg *config.Dendrite)

Jump to

Keyboard shortcuts

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