Documentation ¶
Index ¶
Constants ¶
View Source
const ( API_VERSION = "v0" DOCS_ROUTE = "/docs/" )
Variables ¶
This section is empty.
Functions ¶
func ConfigureGRPC ¶
ConfigureGRPC configures a GRPC Server w/ the given opts
func NewGRPC ¶
func NewGRPC(incpts ...Interceptor) *grpc.Server
NewGRPC builds a grpc.Server w/ the given inceptors registered in order
Types ¶
type Interceptor ¶
type Interceptor interface { HandleUnary(context.Context, interface{}, *grpc.UnaryServerInfo, grpc.UnaryHandler) (interface{}, error) HandleStream(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error }
Click to show internal directories.
Click to hide internal directories.