Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(service contracts.AuthService) *Auth
func (*Auth) Handle ¶
func (a *Auth) Handle(interface{}) web.HandlerFunc
type Cors ¶
type Cors struct {
// contains filtered or unexported fields
}
func NewCors ¶
func NewCors(cfg http.CorsConfig) *Cors
func (*Cors) Handle ¶
func (h *Cors) Handle(interface{}) web.HandlerFunc
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(app contracts.Application, cfg Config) *Service
func (*Service) Global ¶
func (s *Service) Global() []web.HandlerFunc
type StartSession ¶
type StartSession struct {
// contains filtered or unexported fields
}
func NewStartSession ¶
func NewStartSession(service contracts.SessionService) *StartSession
func (*StartSession) Handle ¶
func (m *StartSession) Handle(interface{}) web.HandlerFunc
type UserHasPermission ¶
type UserHasPermission struct {
// contains filtered or unexported fields
}
func NewUserHasPermission ¶
func NewUserHasPermission(service contracts.AuthService) *UserHasPermission
func (*UserHasPermission) Handle ¶
func (a *UserHasPermission) Handle(param interface{}) web.HandlerFunc
type UserHasPermissionParam ¶
type UserHasPermissionParam struct {
NeededPermission string
}
type UserHasRole ¶
type UserHasRole struct {
// contains filtered or unexported fields
}
func NewUserHasRole ¶
func NewUserHasRole(service contracts.AuthService) *UserHasRole
func (*UserHasRole) Handle ¶
func (a *UserHasRole) Handle(param interface{}) web.HandlerFunc
type UserHasRoleParam ¶
type UserHasRoleParam struct {
Roles []string
}
type VerifyCSRFToken ¶
type VerifyCSRFToken struct {
// contains filtered or unexported fields
}
func NewVerifyCSRFToken ¶
func NewVerifyCSRFToken(cfg http.CSRFConfig, sessionService contracts.SessionService) (*VerifyCSRFToken, error)
func (*VerifyCSRFToken) Handle ¶
func (m *VerifyCSRFToken) Handle(interface{}) web.HandlerFunc
Click to show internal directories.
Click to hide internal directories.