Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatedUser ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func NewAuthorizer(db *gorm.DB, asf *session.Factory) *Authorizer
func (Authorizer) Authorize ¶
func (a Authorizer) Authorize(sctx *session.RequestContext) (*AuthenticatedUser, error)
func (Authorizer) CreateAuthorization ¶
func (a Authorizer) CreateAuthorization(sctx *session.RequestContext, user *models.User) error
Click to show internal directories.
Click to hide internal directories.