Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( goa.NewErrorClass("unauthorized", 401) // ErrInternalServer is the error returned for internal error. ErrInternalServer = goa.NewErrorClass("internal error", 500) )ErrUnauthorized =
Functions ¶
func NewAdminUserAuthMiddleware ¶
func NewAdminUserAuthMiddleware() goa.Middleware
NewAdminUserAuthMiddleware token check authority type is admin
func NewGeneralUserAuthMiddleware ¶
func NewGeneralUserAuthMiddleware() goa.Middleware
NewGeneralUserAuthMiddleware token check authority type is general
func NewTestModeMiddleware ¶
func NewTestModeMiddleware() goa.Middleware
NewTestModeMiddleware token check none executing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.