api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.2.0

type Server struct {
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) DeleteSetHandler added in v0.2.0

func (a *Server) DeleteSetHandler() http.HandlerFunc

func (*Server) GetSetHandler added in v0.2.0

func (a *Server) GetSetHandler() http.HandlerFunc

func (*Server) GetSetsHandler added in v0.2.0

func (a *Server) GetSetsHandler() http.HandlerFunc

func (*Server) JSONResponse added in v0.2.0

func (a *Server) JSONResponse(w http.ResponseWriter, statusCode int, v any)

func (*Server) ModifySetContentHandler added in v0.2.0

func (a *Server) ModifySetContentHandler() http.HandlerFunc

func (*Server) ModifySetHandler added in v0.2.0

func (a *Server) ModifySetHandler() http.HandlerFunc

func (*Server) NewSetHandler added in v0.2.0

func (a *Server) NewSetHandler() http.HandlerFunc

func (*Server) Start added in v0.2.0

func (a *Server) Start(port string) error

type StandardResponse

type StandardResponse struct {
	Version string            `json:"apiVersion"`
	Context string            `json:"context"`
	Method  string            `json:"method"`
	Params  map[string]string `json:"params,omitempty"`
	Error   any               `json:"error,omitempty"`
	Data    any               `json:"data"`
}

Jump to

Keyboard shortcuts

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