grpcthrottlerserver

package
v3.0.0-rc.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

func RegisterServer

func RegisterServer(s *grpc.Server, m throttler.Manager)

RegisterServer registers a new throttler server instance with the gRPC server.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the gRPC server implementation of the Throttler service.

func NewServer

func NewServer(m throttler.Manager) *Server

NewServer creates a new RPC server for a given throttler manager.

func (*Server) GetConfiguration

GetConfiguration implements the gRPC server interface.

func (*Server) MaxRates

MaxRates implements the gRPC server interface. It returns the current max rate for each throttler of the process.

func (*Server) ResetConfiguration

ResetConfiguration implements the gRPC server interface.

func (*Server) SetMaxRate

SetMaxRate implements the gRPC server interface. It sets the rate on all throttlers controlled by the manager.

func (*Server) UpdateConfiguration

UpdateConfiguration implements the gRPC server interface.

Jump to

Keyboard shortcuts

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