Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthMiddleware ¶
type AuthzMiddleware ¶
type AuthzMiddleware struct {
// contains filtered or unexported fields
}
NewUserMiddleware is a middleware that checks if the user is new.
func NewAuthzMiddleware ¶
func NewAuthzMiddleware(membersDatasoter controllers.MembersDatastore) *AuthzMiddleware
NewAuthzMiddleware creates a new user middleware.
func (*AuthzMiddleware) CheckAuthz ¶
func (k *AuthzMiddleware) CheckAuthz(next http.Handler) http.Handler
type UserMiddleware ¶
type UserMiddleware struct {
// contains filtered or unexported fields
}
NewUserMiddleware is a middleware that checks if the user is new.
func NewUserMiddleware ¶
func NewUserMiddleware(members controllers.MembersDatastore) *UserMiddleware
NewUserMiddleware creates a new user middleware.
func (*UserMiddleware) NewUserMiddlewareCheck ¶
func (k *UserMiddleware) NewUserMiddlewareCheck(next http.Handler) http.Handler
type UserRegistrationNotCompleteError ¶
type UserRegistrationNotCompleteError struct {
UserID string
}
func (*UserRegistrationNotCompleteError) Error ¶
func (userNCE *UserRegistrationNotCompleteError) Error() string
Click to show internal directories.
Click to hide internal directories.