Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHTTPSererForOneRequest ¶
func StartHTTPSererForOneRequest(port int, callback HandlerFunc)
StartHTTPSererForOneRequest starts a HTTP server to serve only one request. After one request, it shuts itself down.
Types ¶
type ClientError ¶
type ClientError struct {
Message string
}
ClientError occurs when an error happened somewhere in any of the client calls. I'm lazy.
func (ClientError) Error ¶
func (e ClientError) Error() string
type HandlerFunc ¶
HandlerFunc is the function that will be called when a request lands on the server.
type JSONClient ¶
type JSONClient struct {
// contains filtered or unexported fields
}
JSONClient is a client with automatic JSON parsing.
func NewJSONClient ¶
func NewJSONClient(options NewClientOptions) *JSONClient
NewJSONClient creates a new JSONClient.
type NewClientOptions ¶
NewClientOptions are the default options to create a new Client.
Click to show internal directories.
Click to hide internal directories.