adaptor

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptImplsToBuilder

func AdaptImplsToBuilder(builder walimpls.OpenerBuilderImpls) wal.OpenerBuilder

Types

type MsgPackAdaptorHandler

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

MsgPackAdaptorHandler is the handler for message pack.

func NewMsgPackAdaptorHandler

func NewMsgPackAdaptorHandler() *MsgPackAdaptorHandler

NewMsgPackAdaptorHandler create a new message pack adaptor handler.

func (*MsgPackAdaptorHandler) Chan

func (m *MsgPackAdaptorHandler) Chan() <-chan *msgstream.MsgPack

Chan is the channel for message.

func (*MsgPackAdaptorHandler) Close

func (m *MsgPackAdaptorHandler) Close()

Close closes the handler.

func (*MsgPackAdaptorHandler) Handle

func (m *MsgPackAdaptorHandler) Handle(ctx context.Context, upstream <-chan message.ImmutableMessage, msg message.ImmutableMessage) (incoming message.ImmutableMessage, ok bool, err error)

Handle is the callback for handling message.

Jump to

Keyboard shortcuts

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