Documentation ¶
Overview ¶
Package throttlerservice is a generated protocol buffer package.
It is generated from these files:
throttlerservice.proto
It has these top-level messages:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterThrottlerServer ¶
func RegisterThrottlerServer(s *grpc.Server, 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 *throttlerdata.MaxRatesRequest, opts ...grpc.CallOption) (*throttlerdata.MaxRatesResponse, error) // SetMaxRate allows to change the current max rate for all throttlers // of the process. SetMaxRate(ctx context.Context, in *throttlerdata.SetMaxRateRequest, opts ...grpc.CallOption) (*throttlerdata.SetMaxRateResponse, error) }
func NewThrottlerClient ¶
func NewThrottlerClient(cc *grpc.ClientConn) ThrottlerClient
type ThrottlerServer ¶
type ThrottlerServer interface { // MaxRates returns the current max rate for each throttler of the process. MaxRates(context.Context, *throttlerdata.MaxRatesRequest) (*throttlerdata.MaxRatesResponse, error) // SetMaxRate allows to change the current max rate for all throttlers // of the process. SetMaxRate(context.Context, *throttlerdata.SetMaxRateRequest) (*throttlerdata.SetMaxRateResponse, error) }
Click to show internal directories.
Click to hide internal directories.