Categorygithub.com/cespedes/api
modulepackage
0.1.1
Repository: https://github.com/cespedes/api.git
Documentation: pkg.go.dev

# README

api

api is a Go library for building RESTful API servers

# Functions

Get retrieves a value from a given key in this Request.
GetListenAddress returns the address used by Serve in the execution of this Request.
Handler returns a http.Handler from a handler function.
HandlerWS returns a handler that tries to establish a Websocket connection, and calls handlerWS on success.
HTTPError returns an error with an embedded HTTP status code.
NewClient creates a new Client ready to use.
NewServer allocates and returns a new Server.
Output sends a JSON-encoded output.
Set assigns a value to a given key for this Request.

# Structs

Client is a way to connect to 3rd party API servers.
Conn represents a Websocket connection.
Server is an HTTP request multiplexer.

# Interfaces

No description provided by the author