Documentation ¶
Overview ¶
Package server is a http server to view and access recorded episodes
Index ¶
- type Server
- func (s *Server) DownloadEpisodeHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) DownloadRecordHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) HealthHandler(w http.ResponseWriter, _ *http.Request)
- func (s *Server) IndexHandler(w http.ResponseWriter, _ *http.Request)
- func (s *Server) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the main struct for the server
func (*Server) DownloadEpisodeHandler ¶
func (s *Server) DownloadEpisodeHandler(w http.ResponseWriter, r *http.Request)
DownloadEpisodeHandler zips files for a signle episode directory and downloads it to user
func (*Server) DownloadRecordHandler ¶
func (s *Server) DownloadRecordHandler(w http.ResponseWriter, r *http.Request)
DownloadRecordHandler allows user to download a single record
func (*Server) HealthHandler ¶
func (s *Server) HealthHandler(w http.ResponseWriter, _ *http.Request)
HealthHandler for server
func (*Server) IndexHandler ¶
func (s *Server) IndexHandler(w http.ResponseWriter, _ *http.Request)
IndexHandler to view recorded episodes
Click to show internal directories.
Click to hide internal directories.