grpcthrottlerserver

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2016 License: BSD-3-Clause Imports: 6 Imported by: 2

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) MaxRates

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

func (*Server) SetMaxRate

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

Jump to

Keyboard shortcuts

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