sr

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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