Categorygithub.com/alex-eftimie/api-controller
modulepackage
0.0.0-20210706230528-75bcb3ffa4e8
Repository: https://github.com/alex-eftimie/api-controller.git
Documentation: pkg.go.dev

# README

Golang Simple API

Golang Simple API is small library to enable simple Authenticated API calls

Install

go get "github.com/Alex-Eftimie/api-controller

Import

import apicontroller "github.com/Alex-Eftimie/api-controller"

Example

Check the examples dir for a complete working example

# Packages

No description provided by the author

# Functions

NewController creates a new HTTP API controller.

# Constants

KeyAuthID returns the context Value of the Auth set by the defaultAuthMiddleware func on successful auth.

# Structs

Controller runs the controller.

# Type aliases

AuthCallback is the function called when doing bearer authentication.
HTTPHandler is the handler that is called when path is accessed.