clientutil

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillBatch

func FillBatch(ids map[int]int, msgs []*codec.Message, b []*codec.BatchElem)

func GetMessage

func GetMessage() *codec.Message

func PutMessage

func PutMessage(x *codec.Message)

Types

type IdReply

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

func NewIdReply

func NewIdReply() *IdReply

func (*IdReply) Ask

func (i *IdReply) Ask(ctx context.Context, id []byte) (json.RawMessage, error)

func (*IdReply) NextId

func (i *IdReply) NextId() *codec.ID

func (*IdReply) Resolve

func (i *IdReply) Resolve(id []byte, msg json.RawMessage, err error)

Jump to

Keyboard shortcuts

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