client

package
v0.0.0-...-4e3790f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0, CC-BY-4.0, MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// LocalAddress exposes the local address that is used if we run with DNS disabled
	LocalAddress = ":30025"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RatelimiterClient

type RatelimiterClient interface {
	Client() grpc_ratelimiter_v1.RatelimiterClient
	Close() error
}

RatelimiterClient is a client interface for interacting with the training metrics service.

func NewRatelimiterClient

func NewRatelimiterClient() (RatelimiterClient, error)

NewRatelimiterClient create a new load-balanced client to talk to the ratelimiter service. If the dns_server config option is set to 'disabled', it will default to the pre-defined LocalPort of the service.

func NewRatelimiterClientFromExisting

func NewRatelimiterClientFromExisting(rl grpc_ratelimiter_v1.RatelimiterClient) (RatelimiterClient, error)

NewRatelimiterClientFromExisting creates a wrapper around an existing client. Used at least for mock clients. noinspection GoUnusedExportedFunction

func NewRatelimiterClientWithAddress

func NewRatelimiterClientWithAddress(addr string) (RatelimiterClient, error)

NewRatelimiterClientWithAddress create a new load-balanced client to talk to the ratelimiter service. If the dns_server config option is set to 'disabled', it will default to the pre-defined LocalPort of the service.

Jump to

Keyboard shortcuts

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