Documentation
¶
Index ¶
- type SessionRegistry
- func (*SessionRegistry) AddSubscription(apiKey, connID, uri string, extra interface{}) error
- func (*SessionRegistry) CheckSession(apiKey string) (string, error)
- func (*SessionRegistry) DeleteConnection(apiKey, connID string) error
- func (*SessionRegistry) DeleteSession(apiKey string) error
- func (*SessionRegistry) DeleteSubscription(apiKey, connID, uri string) error
- func (*SessionRegistry) NewSession(user map[string]interface{}, sessionID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionRegistry ¶
type SessionRegistry struct{}
func SR ¶
func SR() *SessionRegistry
func (*SessionRegistry) AddSubscription ¶
func (*SessionRegistry) AddSubscription(apiKey, connID, uri string, extra interface{}) error
AddSubscription sends subscription info to session store.
func (*SessionRegistry) CheckSession ¶
func (*SessionRegistry) CheckSession(apiKey string) (string, error)
CheckSession creates a new session in serviceRegistry
func (*SessionRegistry) DeleteConnection ¶
func (*SessionRegistry) DeleteConnection(apiKey, connID string) error
DeleteConnection sends delete connection event to sessions store
func (*SessionRegistry) DeleteSession ¶
func (*SessionRegistry) DeleteSession(apiKey string) error
DeleteSession delete session with provided apiKey from serviceRegistry
func (*SessionRegistry) DeleteSubscription ¶
func (*SessionRegistry) DeleteSubscription(apiKey, connID, uri string) error
DeleteSubscription sends delete subscription event to sessions store
func (*SessionRegistry) NewSession ¶
func (*SessionRegistry) NewSession(user map[string]interface{}, sessionID string) (string, error)
NewSession creates a new session in serviceRegistry
Click to show internal directories.
Click to hide internal directories.