Documentation ¶
Overview ¶
Package srv provides the HTTP server for the backend.
Index ¶
Constants ¶
View Source
const APIPrefix = "api"
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(logger LoggerWithFatal, env Environment, m *model.Model) error
Run is the entry point for this module. It does some preparation and then starts the server.
Types ¶
type CaseHandler ¶
func NewCaseHandler ¶
func NewCaseHandler(logger Logger, m *model.Model) *CaseHandler
func (CaseHandler) NewCase ¶
func (h CaseHandler) NewCase() func(http.ResponseWriter, *http.Request)
func (CaseHandler) RetrieveCases ¶
func (h CaseHandler) RetrieveCases() func(http.ResponseWriter, *http.Request)
func (CaseHandler) ServeHTTP ¶
func (h CaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Environment ¶
type LoggerWithFatal ¶
Click to show internal directories.
Click to hide internal directories.