Documentation ¶
Index ¶
- Constants
- type SecurityService
- type SecurityServiceImpl
- func (s *SecurityServiceImpl) Inject(v []voter.SecurityVoter, cfg ...)
- func (s *SecurityServiceImpl) IsGranted(ctx context.Context, session *web.Session, permission string, ...) bool
- func (s *SecurityServiceImpl) IsLoggedIn(ctx context.Context, session *web.Session) bool
- func (s *SecurityServiceImpl) IsLoggedOut(ctx context.Context, session *web.Session) bool
Constants ¶
View Source
const ( VoterStrategyAffirmative = "affirmative" VoterStrategyConsensus = "consensus" VoterStrategyUnanimous = "unanimous" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityService ¶
type SecurityServiceImpl ¶
type SecurityServiceImpl struct {
// contains filtered or unexported fields
}
func (*SecurityServiceImpl) Inject ¶
func (s *SecurityServiceImpl) Inject(v []voter.SecurityVoter, cfg *struct { VoterStrategy string `inject:"config:security.roles.voters.strategy"` AllowIfAllAbstain bool `inject:"config:security.roles.voters.allowIfAllAbstain"` })
func (*SecurityServiceImpl) IsLoggedIn ¶
func (*SecurityServiceImpl) IsLoggedOut ¶
Click to show internal directories.
Click to hide internal directories.