Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is the primary interface for fast-shortener
func InitAPI ¶
func InitAPI(config *config.Configuration) *API
InitAPI creates an API from a given configuration
func (*API) RequestHandler ¶
func (a *API) RequestHandler(ctx *fasthttp.RequestCtx)
RequestHandler serves all requests to the API
Click to show internal directories.
Click to hide internal directories.