Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("auth", fx.Provide(NewAuthorizationService), )
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type Authorization ¶
type Authorization struct {
// contains filtered or unexported fields
}
func NewAuthorizationService ¶
func NewAuthorizationService(deps AuthorizationServiceDeps) *Authorization
type AuthorizationServiceDeps ¶
type AuthorizationServiceDeps struct { fx.In Logger *logger.Logger Service AuthService }
type Policy ¶
type Policy interface { GetCondition() sql.StringNullable GetAction() access.Action GetEffect() access.Effect GetResource() sql.StringNullable }
type Resource ¶
type Resource interface {
ResourceName() sql.StringNullable
}
Click to show internal directories.
Click to hide internal directories.