rpc

package
v0.0.0-...-d4659c6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallAllReplicas

func CallAllReplicas(ctx context.Context, clients []interface{}, replicaFuncs []CallFunc, request interface{}) (reply interface{}, err error)

TODO: move previous tests for calling all replicas to this package

func ContextPropagationUnaryClientInterceptor

func ContextPropagationUnaryClientInterceptor() grpc.UnaryClientInterceptor

func ContextPropagationUnaryServerInterceptor

func ContextPropagationUnaryServerInterceptor() grpc.UnaryServerInterceptor

Types

type CallFunc

type CallFunc func(ctx context.Context, client interface{}, request interface{}, opts ...grpc.CallOption) (interface{}, error)

Jump to

Keyboard shortcuts

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