Documentation ¶
Index ¶
Constants ¶
View Source
const PukaTokenHeader = "X-Puka-Token"
PukaTokenHeader is the HTTP header used for auth.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS(c api2go.APIContexter, w http.ResponseWriter, r *http.Request)
CORS sets the neccessary headers.
func NewAuthenticator ¶
func NewAuthenticator(tok string) api2go.HandlerFunc
NewAuthenticator returns a api2go middleware handler function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.