Documentation
¶
Index ¶
- Variables
- func GetSessionID(ctx context.Context) string
- func GetSessionRevokeCode(ctx context.Context) string
- func MustExecCheckSession(s *usersystem.UserSystem, session *usersystem.Session) bool
- func MustExecGetSession(s *usersystem.UserSystem, st usersystem.SessionType, id string) *usersystem.Session
- func MustExecInitPayloads(s *usersystem.UserSystem, ctx context.Context, st usersystem.SessionType, ...) *authority.Payloads
- func MustExecOnSessionActive(s *usersystem.UserSystem, session *usersystem.Session)
- func MustExecRevokeSession(s *usersystem.UserSystem, session *usersystem.Session) bool
- func WrapCheckSession(h func(ctx context.Context, session *usersystem.Session) bool) *herbsystem.Action
- func WrapGetSession(h func(st usersystem.SessionType, id string) *usersystem.Session) *herbsystem.Action
- func WrapInitPayloads(h func(context.Context, usersystem.SessionType, string, *authority.Payloads)) *herbsystem.Action
- func WrapOnSessionActive(h func(*usersystem.Session)) *herbsystem.Action
- func WrapRevokeSession(h func(st usersystem.SessionType, code string) bool) *herbsystem.Action
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandCheckSession = herbsystem.Command("checksession")
View Source
var CommandGetSession = herbsystem.Command("getsession")
View Source
var CommandInitPayloads = herbsystem.Command("initpayloads")
View Source
var CommandOnSessionActive = herbsystem.Command("onsessionactive")
View Source
var CommandRevokeSession = herbsystem.Command("revokesession")
View Source
var ContextKeyCheckSessionResult = usersystem.ContextKey("usersession.result")
View Source
var ContextKeySessionID = usersystem.ContextKey("sessionid")
View Source
var ContextSessionRevokeCode = usersystem.ContextKey("sessionrevokecode")
Functions ¶
func GetSessionID ¶
func GetSessionRevokeCode ¶
func MustExecCheckSession ¶
func MustExecCheckSession(s *usersystem.UserSystem, session *usersystem.Session) bool
func MustExecGetSession ¶
func MustExecGetSession(s *usersystem.UserSystem, st usersystem.SessionType, id string) *usersystem.Session
func MustExecInitPayloads ¶
func MustExecInitPayloads(s *usersystem.UserSystem, ctx context.Context, st usersystem.SessionType, uid string) *authority.Payloads
func MustExecOnSessionActive ¶
func MustExecOnSessionActive(s *usersystem.UserSystem, session *usersystem.Session)
func MustExecRevokeSession ¶
func MustExecRevokeSession(s *usersystem.UserSystem, session *usersystem.Session) bool
func WrapCheckSession ¶
func WrapCheckSession(h func(ctx context.Context, session *usersystem.Session) bool) *herbsystem.Action
func WrapGetSession ¶
func WrapGetSession(h func(st usersystem.SessionType, id string) *usersystem.Session) *herbsystem.Action
func WrapInitPayloads ¶
func WrapInitPayloads(h func(context.Context, usersystem.SessionType, string, *authority.Payloads)) *herbsystem.Action
func WrapOnSessionActive ¶
func WrapOnSessionActive(h func(*usersystem.Session)) *herbsystem.Action
func WrapRevokeSession ¶
func WrapRevokeSession(h func(st usersystem.SessionType, code string) bool) *herbsystem.Action
Types ¶
Click to show internal directories.
Click to hide internal directories.