Documentation ¶
Index ¶
Constants ¶
View Source
const ExposeHeaderCORSHeader = "Access-Control-Expose-Headers"
View Source
const ExposeHeaderCORSValue = "Authorization"
View Source
const HeaderCORSHeader = "Access-Control-Allow-Headers"
View Source
const HeaderCORSValue = "Content-Type, Authorization"
View Source
const MaxAgeCORSHeader = "Access-Control-Max-Age"
View Source
const MaxAgeCORSValue = "600"
View Source
const MethodCORSHeader = "Access-Control-Allow-Methods"
View Source
const MethodCORSValue = "GET, PUT, POST, PATCH, DELETE"
View Source
const OriginCORSHeader = "Access-Control-Allow-Origin"
View Source
const OriginCORSValue = "*"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cors ¶
type Cors struct {
// contains filtered or unexported fields
}
Cors is a middleware handler that allows handler functions to be callable cross-origin
type HandlerContext ¶
func (*HandlerContext) UserLoginHandler ¶
func (ctx *HandlerContext) UserLoginHandler(w http.ResponseWriter, r *http.Request)
UserLoginHandler handles requests for logging in user and returns a session ID. Also handles request for logging out a user
func (*HandlerContext) UserSignUpHandler ¶
func (ctx *HandlerContext) UserSignUpHandler(w http.ResponseWriter, r *http.Request)
UserSignUpHandler handles requests for creating a new customer
Click to show internal directories.
Click to hide internal directories.