simpleapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package simpleapi implements a very bare-bones API for mutating labeler's state.

Handler accepts a POST request, with a partially populated label as JSON in the request body. It doesn't provide any authentication whatsoever, so make sure you're limiting who can access it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(server *server.Server) *Handler

New returns HTTP handler to serve requests.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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