Documentation ¶
Index ¶
- func NewRouter() *mux.Router
- func StartWebServer(port string)
- type Handler
- func (handler *Handler) DeleteAllRecordings(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
- func (handler *Handler) DeleteRecording(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
- func (handler *Handler) Index(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
- func (handler *Handler) ListRecordings(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
- func (handler *Handler) Options(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
- type RecordingInfo
- type RecordingsResponse
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWebServer ¶
func StartWebServer(port string)
Types ¶
type Handler ¶
type Handler struct {
ServiceName string
}
Handler represents the User API method handler set.
func (*Handler) DeleteAllRecordings ¶
func (*Handler) DeleteRecording ¶
func (*Handler) Index ¶
func (handler *Handler) Index(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
Index is used for Docker Healthcheck commands to indicate whether the http server is up and running to take requests
func (*Handler) ListRecordings ¶
func (handler *Handler) ListRecordings(ctx context.Context, writer http.ResponseWriter, request *http.Request) error
ListRecordings will return a json array of recording filenames
type RecordingInfo ¶
type RecordingsResponse ¶
type RecordingsResponse struct { BaseUrl string `json:"base_url"` ThumbHeight int `json:"thumb_height"` Recordings []RecordingInfo `json:"recordings"` }
func NewRecordingsResponse ¶
func NewRecordingsResponse(count int) RecordingsResponse
Click to show internal directories.
Click to hide internal directories.