transport

package
v1.0.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChunkSize = 1024

	ErrRequestInconsistent       = errors.New("the request is inconsistent")
	ErrRecvTimeout               = errors.New("receive timeout during data wrap")
	ErrUnknownRequest            = errors.New("unknown request error")
	ErrInvalidHealthCheckRequest = errors.New("request has only one: HealthCheckRequest")
	ErrUnknownResponse           = errors.New("unknown response error")

	ErrWatcherCloseTimeout = errors.New("close watcher timeout")
)

Functions

func DecodeHealthCheckRequest

func DecodeHealthCheckRequest(ctx context.Context, r interface{}) (interface{}, error)

func DecodeUpdateRequest

func DecodeUpdateRequest(ctx context.Context, r interface{}) (interface{}, error)

func DecodeViewRequest

func DecodeViewRequest(ctx context.Context, r interface{}) (interface{}, error)

func DecodeWatchRequest

func DecodeWatchRequest(ctx context.Context, r interface{}) (interface{}, error)

func EncodeHealthCheckResponse

func EncodeHealthCheckResponse(_ context.Context, r interface{}) (interface{}, error)

func EncodeUpdateResponse

func EncodeUpdateResponse(_ context.Context, r interface{}) (interface{}, error)

func EncodeViewResponse

func EncodeViewResponse(_ context.Context, r interface{}) (interface{}, error)

func EncodeWatchResponse

func EncodeWatchResponse(_ context.Context, r interface{}) (interface{}, error)

func NewGRPCHandlers

func NewGRPCHandlers(ctx context.Context, endpoints endpoint.BifrostEndpoints) *gRPCHandlers

Types

This section is empty.

Jump to

Keyboard shortcuts

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