Documentation ¶
Index ¶
Constants ¶
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.