# README
About
This package is a utils package that helps guarantee consistency and ease for inserting the other packages in this library as interceptors into gRPC unary and stream calls.
Usage
l := &logging.Logger{}
t := &tracing.Tracer{}
streamOpts := StreamOptions{
Logger: l,
Tracer: t,
}
unaryOpts := UnaryOptions{
Logger: l,
Tracer: t,
}
// create protocol server with chained interceptors
g := grpc.NewServer(
NewGRPCChainedStreamInterceptor(streamOts),
NewGRPCChainedUnaryInterceptor(unaryOpts),
)
# Packages
No description provided by the author
# Functions
NewGRPCChainedStreamInterceptor creates new stream interceptors from each package in this library that gets passed in to the options block, then chains them in a consistent order into a single stream interceptor.
NewGRPCChainedUnaryInterceptor creates new unary interceptors from each package in this library that gets passed in to the options block, then chains them in a consistent order into a single unary interceptor.
# Structs
StreamOptions wraps the input for stream interceptor chain creation.
UnaryOptions wraps the input for unary interceptor chain creation.