server

package
v0.0.0-...-c2ccda8 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCurrentUser = errors.New("no current user")
View Source
var NilSession = Session{}

Functions

func New

func New(dataroot, ocrserver string, password []byte) (*mux.Router, error)

Types

type Server

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

type Session

type Session struct {
	ID       int
	Email    string
	Password secret
}

Session is the content of the session cookie

Jump to

Keyboard shortcuts

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