server

package
v0.0.0-...-381c896 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package server is a http server to view and access recorded episodes

Index

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 NewServer

func NewServer(port, dir, rev string) *Server

NewServer creates a new 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

func (*Server) Start

func (s *Server) Start()

Start binds endpoints with methods and starts the server

Jump to

Keyboard shortcuts

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