Documentation ¶
Overview ¶
Package grpcthrottlerserver contains the gRPC implementation of the server side of the throttler service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the gRPC server implementation of the Throttler service.
func (*Server) MaxRates ¶
func (s *Server) MaxRates(_ context.Context, request *throttlerdata.MaxRatesRequest) (_ *throttlerdata.MaxRatesResponse, err error)
MaxRates implements the gRPC server interface. It returns the current max rate for each throttler of the process.
func (*Server) SetMaxRate ¶
func (s *Server) SetMaxRate(_ context.Context, request *throttlerdata.SetMaxRateRequest) (_ *throttlerdata.SetMaxRateResponse, err error)
SetMaxRate implements the gRPC server interface. It sets the rate on all throttlers controlled by the manager.
Click to show internal directories.
Click to hide internal directories.