Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientOptions ¶
func ClientOptions(options *istiokeepalive.Options, tlsOpts *TLSOptions) ([]grpc.DialOption, error)
ClientOptions returns consistent grpc dial options with custom dial options
func ServerOptions ¶
func ServerOptions(options *istiokeepalive.Options, interceptors ...grpc.UnaryServerInterceptor) []grpc.ServerOption
Types ¶
type ErrorType ¶
type ErrorType string
const ( // This indicates all the errors except the expected errors or graceful termination. UnexpectedError ErrorType = "unexpectedError" // This indicates an expected error when things are operating normally. ExpectedError ErrorType = "expectedError" // This indicates an error which happen when the connection is gracefully terminated. // For example, the peer calls `SendClose()`. GracefulTermination ErrorType = "gracefulTermination" )
func GRPCErrorType ¶
GRPCErrorType checks a gRPC error code and determines its ErrorType. This is basically capturing when the peer disconnects.
Click to show internal directories.
Click to hide internal directories.