Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(ProvideFlowControlHandler), fx.Invoke(Register), )
Module .
Functions ¶
func ProvideFlowControlHandler ¶ added in v1.2.0
func ProvideFlowControlHandler(in ConstructorIn) (flowcontrolv1.FlowControlServiceServer, error)
ProvideFlowControlHandler .
func Register ¶
func Register(server *grpc.Server, handler flowcontrolv1.FlowControlServiceServer)
Register registers flowcontrol service on a gRPC server.
Types ¶
type CommonHandler ¶ added in v0.10.0
type CommonHandler struct { check.HandlerWithValues Rejects int64 Rejected int64 }
CommonHandler implements common.HandlerWithValues.
func (*CommonHandler) CheckRequest ¶ added in v1.2.0
func (c *CommonHandler) CheckRequest(ctx context.Context, requestContext iface.RequestContext, ) *flowcontrolv1.CheckResponse
CheckRequest is a dummy function for creating *flowcontrolv1.CheckResponse from given parameters.
type FlowControlHandler ¶
type FlowControlHandler struct { flowcontrolv1.UnimplementedFlowControlServiceServer CommonHandler check.HandlerWithValues }
FlowControlHandler implements FlowControlService.
func (*FlowControlHandler) Check ¶
func (f *FlowControlHandler) Check(ctx context.Context, req *flowcontrolv1.CheckRequest) (*flowcontrolv1.CheckResponse, error)
Check is a dummy Check handler.
type TraceHandler ¶
type TraceHandler struct {
tracev1.UnimplementedTraceServiceServer
}
TraceHandler implements ExportTraceService.
func (TraceHandler) Export ¶
func (t TraceHandler) Export(ctx context.Context, req *tracev1.ExportTraceServiceRequest) (*tracev1.ExportTraceServiceResponse, error)
Export is a dummy Export handler.
Click to show internal directories.
Click to hide internal directories.