Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenTypeAccess = "access" TokenTypeAccessTTL = time.Duration(15 * time.Minute) )
Variables ¶
View Source
var ( DefaultHTTPRequestTimeout = 1 * time.Second ErrForbidden = errors.New("forbidden request") )
View Source
var (
MsgStatusOK = []byte("{\"status\": \"OK\"}")
)
JSON messages
Functions ¶
Types ¶
type ParsedToken ¶
type Server ¶
Server is struct with HTTP server and UserService
type StatusRecorder ¶
type StatusRecorder struct { http.ResponseWriter Status int }
func (*StatusRecorder) WriteHeader ¶
func (r *StatusRecorder) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.