util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderLen   = 4
	MaxDataSize = 2<<24 - 1
)
View Source
const (
	RPCError = iota
	RPCPrepareConf
	RPCHTTPReqCall
	RPCExtraInfo
	RPCHTTPRespCall
)

Variables

This section is empty.

Functions

func GetBuilder

func GetBuilder() *flatbuffers.Builder

func PutBuilder

func PutBuilder(b *flatbuffers.Builder)

func ReadErr added in v0.2.0

func ReadErr(n int, err error, required int) bool

func WriteErr added in v0.2.0

func WriteErr(n int, err error)

Types

type ExtraInfoResult added in v0.2.0

type ExtraInfoResult []byte

Use struct if the result is not only []byte

type RPCResult added in v0.2.0

type RPCResult struct {
	Err     error
	Builder *flatbuffers.Builder
}

Jump to

Keyboard shortcuts

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