internet

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: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSessionNotFound = errors.New("session not found")

ErrSessionNotFound error

Functions

func Init

func Init(srCl SRClient, version string)

Init starts internet http server

Types

type SRClient added in v0.2.1

type SRClient interface {
	CheckSession(apiKey string) (string, error)
	DeleteSession(apiKey string) error
	NewSession(user map[string]interface{}, sessionID string) (string, error)
	AddSubscription(apiKey, connID, uri string, extra interface{}) error
	DeleteConnection(apiKey, connID string) error
	DeleteSubscription(apiKey, connID, uri string) error
}

Jump to

Keyboard shortcuts

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