Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL *url.URL Token string Ping PingService Metrics MetricsService // contains filtered or unexported fields }
Client used to communicate with vedran load balancer
type MetricsService ¶
MetricsService is used for sending node metrics to load balancer
type PingService ¶
PingService is used for pinging load balancer to confirm daemon is alive
type RegisterRequest ¶
type RegisterRequest struct { ID string `json:"id"` ConfigHash string `json:"config_hash"` PayoutAddress string `json:"payout_address"` }
RegisterRequest contains data needed to connect daemon with lb
type RegisterResponse ¶ added in v0.2.0
type RegisterResponse struct { Token string `json:"token"` TunnelServerAddress string `json:"tunnel_server_address"` }
RegisterResponse from lb register endpoint
Click to show internal directories.
Click to hide internal directories.