client

package
v0.0.0-...-e1a27db Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

This section is empty.

Types

type TrainingDataClient

type TrainingDataClient interface {
	Client() grpc_training_data_v1.TrainingDataClient
	Close() error
}

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

func NewTrainingDataClient

func NewTrainingDataClient() (TrainingDataClient, error)

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

func NewTrainingDataClientFromExisting

func NewTrainingDataClientFromExisting(tds grpc_training_data_v1.TrainingDataClient) (TrainingDataClient, error)

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

func NewTrainingDataClientWithAddress

func NewTrainingDataClientWithAddress(addr string) (TrainingDataClient, error)

NewTrainingDataClientWithAddress create a new load-balanced client to talk to the training metrics 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