Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Get(ctx context.Context, page, limit int) ([]ServerInfo, error) GetByID(ctx context.Context, identifier string) (Server, error) Create(ctx context.Context, definition Definition) (Server, error) DeleteByID(ctx context.Context, identifier string) error }
API contains methods for load balancer backend server management.
type Definition ¶
type Definition struct { Name string `json:"name"` State common.State `json:"state"` IP string `json:"ip"` Port int `json:"port"` Backend string `json:"backend"` }
Definition describes how a server resource should look like
type Server ¶
type Server struct { CustomerIdentifier string `json:"customer_identifier"` ResellerIdentifier string `json:"reseller_identifier"` Identifier string `json:"identifier"` Name string `json:"name"` IP string `json:"ip"` Port int `json:"port"` Backend backend.BackendInfo `json:"backend"` Check string `json:"check"` }
Server holds the information of a load balancers backend server
type ServerInfo ¶
ServerInfo holds the identifier and the name of a load balancer backend.
Click to show internal directories.
Click to hide internal directories.