server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server serves the REST API over HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(addr string, h http.Handler) *http.Server

Types

type Handler

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

func NewHandler

func NewHandler(s store.Store, cfg HandlerConfig) *Handler

func (*Handler) CreateRow

func (h *Handler) CreateRow(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteRow

func (h *Handler) DeleteRow(w http.ResponseWriter, r *http.Request)

func (*Handler) GetRow

func (h *Handler) GetRow(w http.ResponseWriter, r *http.Request)

func (*Handler) ListRows

func (h *Handler) ListRows(w http.ResponseWriter, r *http.Request)

func (*Handler) ListTables

func (h *Handler) ListTables(w http.ResponseWriter, r *http.Request)

func (*Handler) OpenAPI

func (h *Handler) OpenAPI(w http.ResponseWriter, r *http.Request)

func (*Handler) Routes

func (h *Handler) Routes() http.Handler

func (*Handler) UpdateRow

func (h *Handler) UpdateRow(w http.ResponseWriter, r *http.Request)

type HandlerConfig

type HandlerConfig struct {
	TokenRequired bool
	Version       string
}

Jump to

Keyboard shortcuts

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