modulepackage
0.1.0
Repository: https://github.com/andrexus/go-hetzner-robot.git
Documentation: pkg.go.dev
# README
go-hetzner-robot
# Functions
CheckResponse checks the API response for errors, and returns them if present.
DoRequest submits an HTTP request.
DoRequestWithClient submits an HTTP request using the specified client.
New returns a new Hetzner Robot API client instance.
NewClient returns a new Hetzner Robot API client.
SetBaseURL is a client option for setting the base URL.
SetUserAgent is a client option for setting the user agent.
# Structs
Client manages communication with Hetzner Robot API.
An ErrorResponse reports the error caused by an API request.
OrderServiceOp handles communication with the order related methods of the Hetzner Robot API.
Product represents a Hetzner Robot Product.
No description provided by the author
Response is a Hetzner Robot response.
Server represents a Hetzner ordered Server.
ServerServiceOp handles communication with the server related methods of the Hetzner Robot API.
# Interfaces
OrderService is an interface for interfacing with the order endpoints of the Hetzner Robot API See: https://robot.your-server.de/doc/webservice/en.html#get-order-server-product.
ServerService is an interface for interfacing with the order endpoints of the Hetzner Robot API See: https://robot.your-server.de/doc/webservice/en.html#get-order-server-product.
# Type aliases
ClientOpt are options for New.
RequestCompletionCallback defines the type of the request callback function.