Documentation ¶
Overview ¶
package server contains the server abstractions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRootDecoy ¶
func HandleRootDecoy(c echo.Context) error
func NewEchoServer ¶
NewEchoServer returns a configured Echo server.
Types ¶
type Handler ¶
type Handler struct { Collector model.GeolocatingCollector Submitter model.Submitter }
Handler holds methods to handle the different server endpoints.
func NewHandler ¶
func NewHandler(c model.GeolocatingCollector, s model.Submitter) *Handler
func (*Handler) CreateReport ¶
CreateReport creates a new report from client submission.
Click to show internal directories.
Click to hide internal directories.