Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGroupKeyAuthMiddleware ¶
func AddGroupKeyAuthMiddleware(g *echo.Group)
Types ¶
type ApiKey ¶
type ApiKey struct { ID uint32 `path:"apikeyid" gorm:"primaryKey;autoIncrement"` Key string `path:"apikey" gorm:"uniqueIndex;not null"` Policy datatypes.JSON DeletedAt gorm.DeletedAt `gorm:"index"` }
func (*ApiKey) Conditions ¶
func (ak *ApiKey) Conditions(s service, a action) (Conditions, error)
type AuthContext ¶
type AuthContext struct { echo.Context ApiKeyID uint32 }
func (*AuthContext) DumpKeyID ¶
func (ac *AuthContext) DumpKeyID()
type Conditions ¶
type Conditions []Condition
Click to show internal directories.
Click to hide internal directories.