intranet

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: 14 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 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 Init

func Init(externalSR bool)

Init is a main entry point for the intranet package

func NewSession

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

NewSession creates a new session in serviceRegistry

func OnEvent

func OnEvent(fn func(string, interface{}, []string))

OnEvent sets intranet event handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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