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 ¶
Click to show internal directories.
Click to hide internal directories.