Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllCodes = []connect.Code{ connect.CodeCanceled, connect.CodeUnknown, connect.CodeInvalidArgument, connect.CodeDeadlineExceeded, connect.CodeNotFound, connect.CodeAlreadyExists, connect.CodePermissionDenied, connect.CodeResourceExhausted, connect.CodeFailedPrecondition, connect.CodeAborted, connect.CodeOutOfRange, connect.CodeUnimplemented, connect.CodeInternal, connect.CodeUnavailable, connect.CodeDataLoss, connect.CodeUnauthenticated, } )
Functions ¶
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(reportable ServerReportable) connect.UnaryInterceptorFunc
Types ¶
type CallMeta ¶
type CallMeta struct { ReqOrNil any Typ connect.StreamType Service string Method string IsClient bool }
func (CallMeta) FullMethod ¶
type ClientReportable ¶
type CommonReportableFunc ¶
CommonReportableFunc helper allows an easy way to implement reporter with common client and server logic.
func (CommonReportableFunc) ClientReporter ¶
func (CommonReportableFunc) ServerReporter ¶
type ConnectType ¶
type ConnectType string
const ( Unary ConnectType = "unary" ClientStream ConnectType = "client_stream" ServerStream ConnectType = "server_stream" BidiStream ConnectType = "bidi_stream" )
type NoopReporter ¶
type NoopReporter struct{}
func (NoopReporter) PostMsgReceive ¶
func (NoopReporter) PostMsgReceive(connect.AnyRequest, error, time.Duration)
func (NoopReporter) PostMsgSend ¶
func (NoopReporter) PostMsgSend(connect.AnyResponse, error, time.Duration)
Click to show internal directories.
Click to hide internal directories.