api

package
v0.0.0-...-72b410f Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Start starts the API server

Types

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"error"`
}

ErrorResponse holds an error message

type Handler

type Handler struct {
	Storage storage.Storage
}

func (*Handler) GetHandlers

func (h *Handler) GetHandlers(c echo.Context) error

func (*Handler) GetIncidents

func (h *Handler) GetIncidents(c echo.Context) error

func (*Handler) HandlerSend

func (h *Handler) HandlerSend(c echo.Context) error

type Message

type Message struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

Jump to

Keyboard shortcuts

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