Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionIfc ¶
type SessionIfc interface {
// Embedded interface(s)
json.Marshaler
json.Unmarshaler
// Get this session's ID
Id() SessionId
// Get the Identity for this Session
Identity() identsdk.IdentityIfc
// Set name-value metadata pair for this Session
Set(name, value string) SessionIfc
// Get value for named metadata for this Session
Get(name string) *string
// Check if named metadata is set for this Session
Has(name ...string) bool
// Drop named metadata (if set) for this Session
Drop(name ...string) SessionIfc
// Get list of metadata names set for this Session
List() []string
}
type SessionManagerIfc ¶
type SessionManagerIfc interface {
// Embeded interface(s)
dep.DependencyInjectableIfc
startable.StartableIfc
// Our own interface
GetSessionForIdentity(identity identsdk.IdentityIfc) (SessionIfc, error)
GetSessionForId(sessionId SessionId) (SessionIfc, error)
Save(session SessionIfc) error
}
Click to show internal directories.
Click to hide internal directories.