throttlerservicev18grpc

package
v1.3.0-20231211191728-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Throttler_MaxRates_FullMethodName            = "/vitess.throttlerservice.v18.Throttler/MaxRates"
	Throttler_SetMaxRate_FullMethodName          = "/vitess.throttlerservice.v18.Throttler/SetMaxRate"
	Throttler_GetConfiguration_FullMethodName    = "/vitess.throttlerservice.v18.Throttler/GetConfiguration"
	Throttler_UpdateConfiguration_FullMethodName = "/vitess.throttlerservice.v18.Throttler/UpdateConfiguration"
	Throttler_ResetConfiguration_FullMethodName  = "/vitess.throttlerservice.v18.Throttler/ResetConfiguration"
)

Variables

View Source
var Throttler_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vitess.throttlerservice.v18.Throttler",
	HandlerType: (*ThrottlerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MaxRates",
			Handler:    _Throttler_MaxRates_Handler,
		},
		{
			MethodName: "SetMaxRate",
			Handler:    _Throttler_SetMaxRate_Handler,
		},
		{
			MethodName: "GetConfiguration",
			Handler:    _Throttler_GetConfiguration_Handler,
		},
		{
			MethodName: "UpdateConfiguration",
			Handler:    _Throttler_UpdateConfiguration_Handler,
		},
		{
			MethodName: "ResetConfiguration",
			Handler:    _Throttler_ResetConfiguration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vitess/throttlerservice/v18/throttlerservice.proto",
}

Throttler_ServiceDesc is the grpc.ServiceDesc for Throttler service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterThrottlerServer

func RegisterThrottlerServer(s grpc.ServiceRegistrar, srv ThrottlerServer)

Types

type ThrottlerClient

type ThrottlerClient interface {
	// MaxRates returns the current max rate for each throttler of the process.
	MaxRates(ctx context.Context, in *v18.MaxRatesRequest, opts ...grpc.CallOption) (*v18.MaxRatesResponse, error)
	// SetMaxRate allows to change the current max rate for all throttlers
	// of the process.
	SetMaxRate(ctx context.Context, in *v18.SetMaxRateRequest, opts ...grpc.CallOption) (*v18.SetMaxRateResponse, error)
	// GetConfiguration returns the configuration of the MaxReplicationlag module
	// for the given throttler or all throttlers if "throttler_name" is empty.
	GetConfiguration(ctx context.Context, in *v18.GetConfigurationRequest, opts ...grpc.CallOption) (*v18.GetConfigurationResponse, error)
	// UpdateConfiguration (partially) updates the configuration of the
	// MaxReplicationlag module for the given throttler or all throttlers if
	// "throttler_name" is empty.
	// If "copy_zero_values" is true, fields with zero values will be copied
	// as well.
	UpdateConfiguration(ctx context.Context, in *v18.UpdateConfigurationRequest, opts ...grpc.CallOption) (*v18.UpdateConfigurationResponse, error)
	// ResetConfiguration resets the configuration of the MaxReplicationlag module
	// to the initial configuration for the given throttler or all throttlers if
	// "throttler_name" is empty.
	ResetConfiguration(ctx context.Context, in *v18.ResetConfigurationRequest, opts ...grpc.CallOption) (*v18.ResetConfigurationResponse, error)
}

ThrottlerClient is the client API for Throttler service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewThrottlerClient

func NewThrottlerClient(cc grpc.ClientConnInterface) ThrottlerClient

type ThrottlerServer

type ThrottlerServer interface {
	// MaxRates returns the current max rate for each throttler of the process.
	MaxRates(context.Context, *v18.MaxRatesRequest) (*v18.MaxRatesResponse, error)
	// SetMaxRate allows to change the current max rate for all throttlers
	// of the process.
	SetMaxRate(context.Context, *v18.SetMaxRateRequest) (*v18.SetMaxRateResponse, error)
	// GetConfiguration returns the configuration of the MaxReplicationlag module
	// for the given throttler or all throttlers if "throttler_name" is empty.
	GetConfiguration(context.Context, *v18.GetConfigurationRequest) (*v18.GetConfigurationResponse, error)
	// UpdateConfiguration (partially) updates the configuration of the
	// MaxReplicationlag module for the given throttler or all throttlers if
	// "throttler_name" is empty.
	// If "copy_zero_values" is true, fields with zero values will be copied
	// as well.
	UpdateConfiguration(context.Context, *v18.UpdateConfigurationRequest) (*v18.UpdateConfigurationResponse, error)
	// ResetConfiguration resets the configuration of the MaxReplicationlag module
	// to the initial configuration for the given throttler or all throttlers if
	// "throttler_name" is empty.
	ResetConfiguration(context.Context, *v18.ResetConfigurationRequest) (*v18.ResetConfigurationResponse, error)
}

ThrottlerServer is the server API for Throttler service. All implementations should embed UnimplementedThrottlerServer for forward compatibility

type UnimplementedThrottlerServer

type UnimplementedThrottlerServer struct {
}

UnimplementedThrottlerServer should be embedded to have forward compatible implementations.

func (UnimplementedThrottlerServer) GetConfiguration

func (UnimplementedThrottlerServer) MaxRates

func (UnimplementedThrottlerServer) ResetConfiguration

func (UnimplementedThrottlerServer) SetMaxRate

func (UnimplementedThrottlerServer) UpdateConfiguration

type UnsafeThrottlerServer

type UnsafeThrottlerServer interface {
	// contains filtered or unexported methods
}

UnsafeThrottlerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ThrottlerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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