validator

package
v0.25.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module .

Functions

func ProvideFlowcontrolHandler

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) CheckWithValues added in v0.10.0

func (c *CommonHandler) CheckWithValues(ctx context.Context, services []string, controlPoint string, labels map[string]string) *flowcontrolv1.CheckResponse

CheckWithValues is a dummy function for creating *flowcontrolv1.CheckResponse from given parameters.

type ConstructorIn

type ConstructorIn struct {
	fx.In
}

ConstructorIn .

type FlowControlHandler

type FlowControlHandler struct {
	flowcontrolv1.UnimplementedFlowControlServiceServer

	CommonHandler check.HandlerWithValues
}

FlowControlHandler implements FlowControlService.

func (*FlowControlHandler) Check

Check is a dummy Check handler.

type TraceHandler

type TraceHandler struct {
	tracev1.UnimplementedTraceServiceServer
}

TraceHandler implements ExportTraceService.

func (TraceHandler) Export

Export is a dummy Export handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL