grpcthrottlerserver

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause 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 StartServer

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

StartServer registers the 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