sessions

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSubscription

func AddSubscription(apiKey, connID, uri string, extra interface{}) error

AddSubscription sends subscription info to session store.

func All

func All() []*sessionstore.Session

All returns all registered sessions from sessionstore

func CheckSession

func CheckSession(apiKey string) (string, error)

CheckSession creates a new session in serviceRegistry

func DeleteConnection

func DeleteConnection(apiKey, connID string) error

DeleteConnection sends delete connection event to sessions store

func DeleteSession

func DeleteSession(apiKey string) error

DeleteSession delete session with provided apiKey from serviceRegistry

func DeleteSubscription

func DeleteSubscription(apiKey, connID, uri string) error

DeleteSubscription sends delete subscription event to sessions store

func NewSession

func NewSession(user map[string]interface{}, sessionID string) (string, error)

NewSession creates a new session in serviceRegistry

func PublicKey

func PublicKey() *rsa.PublicKey

PublicKey returns RSA public key

func PublicKeyBytes

func PublicKeyBytes() []byte

PublicKeyBytes returns RSA public key as []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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