Versions in this module Expand all Collapse all v1 v1.0.1 Jun 28, 2018 Changes in this version + var ErrMalformedData = errors.New("malformed data") + var ErrSessionNotFound = errors.New("session not found") + var ErrWrongPrevSession = errors.New("wrong previous session") + func CORS(validator OriginValidator) func(http.Handler) http.Handler + type OriginValidator func(string) bool + type Server struct + func New(bus *usb.USB, logWriter io.Writer, mw, dmw *memorywriter.MemoryWriter, ...) (*Server, error) + func (s *Server) Acquire(w http.ResponseWriter, r *http.Request) + func (s *Server) Call(w http.ResponseWriter, r *http.Request) + func (s *Server) Close() error + func (s *Server) Enumerate(w http.ResponseWriter, r *http.Request) + func (s *Server) Info(w http.ResponseWriter, r *http.Request) + func (s *Server) Listen(w http.ResponseWriter, r *http.Request) + func (s *Server) Post(w http.ResponseWriter, r *http.Request) + func (s *Server) Release(w http.ResponseWriter, r *http.Request) + func (s *Server) Run() error + func (s *Server) StatusPage(w http.ResponseWriter, r *http.Request)