api

package
Version: v0.0.0-...-f92f1a8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 15 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 {
	// contains filtered or unexported fields
}

func New

func New(addr string, path string, debug bool) (*API, error)

func (*API) Close

func (a *API) Close() error

func (*API) Open

func (a *API) Open() error

type Handler

type Handler struct {
	Store interface {
		Open() error
		CreateCollection(string) (*collection.Collection, error)
		Collection(string) *collection.Collection
	}
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(debug bool) *Handler

func (*Handler) Create

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

func (*Handler) CreateCollection

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

func (*Handler) Delete

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

func (*Handler) Read

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

func (*Handler) ServeHTTP

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

func (*Handler) Update

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL