internal

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFnReadWriter

func NewFnReadWriter(
	r func(context.Context) (*goatorepo.Rpc, error),
	w func(context.Context, *goatorepo.Rpc) error,
) types.RpcReadWriter

NewFnReadWriter is a convenience wrapper to turn read and write functions into an RpcReadWriter.

func StatsEndRPC added in v0.1.4

func StatsEndRPC(
	statsHandlers []stats.Handler,
	isClient bool,
	beginTime time.Time,
	appErr error,
	ctx context.Context,
)

func StatsStartServerRPC added in v0.1.4

func StatsStartServerRPC(
	statsHandlers []stats.Handler,
	isClient bool,
	beginTime time.Time,
	method string,
	isClientStream bool,
	isServerStream bool,
	ctx context.Context,
) context.Context

func ToKeyValue

func ToKeyValue(mds ...metadata.MD) []*goatorepo.KeyValue

func ToMetadata

func ToMetadata(kvs []*goatorepo.KeyValue) (metadata.MD, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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