Documentation ¶
Index ¶
- func DisableEverythingStreamServerInterceptor() grpc.StreamServerInterceptor
- func DisableEverythingUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func IsHealthCheckEndpoint(methodName string) bool
- func ParseFullMethodName(fullMethodName string) (packageName, serviceName, methodName string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableEverythingStreamServerInterceptor ¶
func DisableEverythingStreamServerInterceptor() grpc.StreamServerInterceptor
DisableEverythingStreamServerInterceptor makes all streaming RPCs return UNAVAILABLE. This is the nuclear option to stop all client requests and should be used sparingly.
func DisableEverythingUnaryServerInterceptor ¶
func DisableEverythingUnaryServerInterceptor() grpc.UnaryServerInterceptor
DisableEverythingUnaryServerInterceptor makes all unary RPCs return UNAVAILABLE. This is the nuclear option to stop all client requests and should be used sparingly.
func IsHealthCheckEndpoint ¶
IsHealthCheckEndpoint returns whether a method is the health check endpoint
func ParseFullMethodName ¶
func ParseFullMethodName(fullMethodName string) (packageName, serviceName, methodName string, err error)
ParseFullMethodName parses a gRPC full method name into its components
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.