Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Address string `yaml:"address" json:"address"` Port int `yaml:"port" json:"port"` Username string `yaml:"username" json:"-"` Password string `yaml:"password" json:"-"` }
func (*Endpoint) IsReachable ¶
IsReachable checks if the endpoint is reachable within 5 sec
func (*Endpoint) Request ¶
Request prepares a new request for the given resourcePath and executes it. Url for the request is build by the given resourcePath, and the Endpoint details (url => 'https://<endpoint.address>:<endpoint.port>/<resourcePath>')
A context with 10sec timeout for the request is build. BasicAuth with username and password set. Returns err if something went wrong. Result is given as []byte.
Click to show internal directories.
Click to hide internal directories.