server

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION         = "/v1"
	DOC_CREATE      = VERSION + "/doc/create/"
	DOC_GET         = VERSION + "/doc/get/"
	DOC_LIST        = VERSION + "/doc/list"
	SESSION_CONNECT = VERSION + "/session/connect/"
	SESSION_CREATE  = VERSION + "/session/create/"
	SESSION_LIST    = VERSION + "/session/list"
	SESSION_GET     = VERSION + "/session/get"
	SESSION_EDIT    = VERSION + "/session/edit"
	SESSION_UPDATE  = VERSION + "/session/update"
)
View Source
const (
	DEFAULT_COOKIE_TIMEOUT = 5 * time.Minute
)

Variables

View Source
var ErrBadFormat = errors.New("Bad format, expecting an object with a command property but got")
View Source
var ErrCommandFormat = errors.New("Bad command format, expecting")

Functions

func MemoryStorage

func MemoryStorage(id, content string) hist.DocStorage

Types

type LeisureService

type LeisureService struct {
	// contains filtered or unexported fields
}

func Initialize

func Initialize(id string, mux *http.ServeMux, storageFactory func(string, string) hist.DocStorage) *LeisureService

func NewWebService

func NewWebService(id string, storageFactory func(string, string) hist.DocStorage) *LeisureService

type LeisureSession

type LeisureSession struct {
	*hist.Session
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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