application

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	VoterStrategyAffirmative = "affirmative"
	VoterStrategyConsensus   = "consensus"
	VoterStrategyUnanimous   = "unanimous"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityService

type SecurityService interface {
	IsLoggedIn(context.Context, *web.Session) bool
	IsLoggedOut(context.Context, *web.Session) bool
	IsGranted(context.Context, *web.Session, string, interface{}) bool
}

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) IsGranted

func (s *SecurityServiceImpl) IsGranted(ctx context.Context, session *web.Session, permission string, object interface{}) bool

func (*SecurityServiceImpl) IsLoggedIn

func (s *SecurityServiceImpl) IsLoggedIn(ctx context.Context, session *web.Session) bool

func (*SecurityServiceImpl) IsLoggedOut

func (s *SecurityServiceImpl) IsLoggedOut(ctx context.Context, session *web.Session) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL