Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Endpoint is the API endpoint of the service this client action interacts // with. Endpoint = "/" // Name is the service name being implemented. This can be used for e.g. // logging. Name = "cluster/root" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { Logger micrologger.Logger RestClient *resty.Client URL *url.URL }
Config represents the configuration used to create a root service.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new root service by best effort.
type Response ¶
type Response struct { Description string `json:"description"` Name string `json:"name"` Source string `json:"source"` Version VersionResponse `json:"version"` }
Click to show internal directories.
Click to hide internal directories.