api

package
v0.0.0-...-8fdf43c Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	App *app.App
}

func (*API) HistoryHandler

func (api *API) HistoryHandler(w http.ResponseWriter, r *http.Request)

func (*API) IndexHandler

func (api *API) IndexHandler(w http.ResponseWriter, r *http.Request)

func (*API) NotifyHandler

func (api *API) NotifyHandler(w http.ResponseWriter, r *http.Request)

func (*API) PingHandler

func (api *API) PingHandler(w http.ResponseWriter, r *http.Request)

func (*API) RecentHandler

func (api *API) RecentHandler(w http.ResponseWriter, r *http.Request)

func (*API) RunAPI

func (api *API) RunAPI()

type JSONResponse

type JSONResponse struct {
	OK    bool   `json:"ok"`
	Error string `json:"error"`
	Data  string `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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