Documentation
¶
Index ¶
- Variables
- func ShiftPath(pathIn string) (head, tail string)
- type Server
- func (server *Server) GenerateVirtualFilePath(file library.FileOnDiskRecord, hostNameToUse string, useHTTPS bool) string
- func (server *Server) LookupVirtualFilePath(path string) (uint64, uint32, error)
- func (server *Server) Run()
- func (server *Server) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (server *Server) StartHTTP()
- func (server *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHeader = errors.New("invalid request header")
View Source
var ErrInvalidPath error = errors.New("invalid path")
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GenerateVirtualFilePath ¶
func (*Server) LookupVirtualFilePath ¶
Click to show internal directories.
Click to hide internal directories.