Documentation ¶
Index ¶
- Constants
- func Filename(r *http.Request) (fn string)
- type Server
- func (s *Server) Command(name string, w http.ResponseWriter, r *http.Request)
- func (s *Server) Delete(name string, w http.ResponseWriter, r *http.Request)
- func (s *Server) Download(name string, w http.ResponseWriter, r *http.Request)
- func (s *Server) Err(code int, r *http.Request, w http.ResponseWriter)
- func (s *Server) Get(name string, w http.ResponseWriter, r *http.Request, writeBody bool)
- func (s *Server) ReadOnly(w http.ResponseWriter, r *http.Request)
- func (s *Server) ReadWrite(w http.ResponseWriter, r *http.Request)
- func (s *Server) Rename(name string, w http.ResponseWriter, r *http.Request)
- func (s *Server) Run()
- func (s *Server) Save(name string, w http.ResponseWriter, r *http.Request)
- func (s *Server) StatsJson(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const (
ERROR_PAGE = "<html><head><title>%s</title></head><body><center><h1>%d %s</h1></center><hr><center>" + cnst.SIGN + "</center></body></html>\n"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ReadOnly ¶
func (s *Server) ReadOnly(w http.ResponseWriter, r *http.Request)
Http handler for read-only server
func (*Server) ReadWrite ¶
func (s *Server) ReadWrite(w http.ResponseWriter, r *http.Request)
Http handler for read-write server
Click to show internal directories.
Click to hide internal directories.