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"` NodeURL string `json:"node_url"` PayoutAddress string `json:"payout_address"` }
RegisterRequest contains data needed to connect daemon with lb
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
TokenResponse from lb register endpoint
Click to show internal directories.
Click to hide internal directories.