api

package
v0.0.0-...-56114fe Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeverHandler

func FeverHandler(d *storage.Database) http.HandlerFunc

FeverHandler returns a new Fever handler.

func GReaderHandler

func GReaderHandler(d *storage.Database) http.HandlerFunc

GReaderHandler returns a new GReader handler.

Types

type Api

type Api interface {
	Handler(d *storage.Database) func(w http.ResponseWriter, r *http.Request)
	// contains filtered or unexported methods
}

Api is an interface that REST APIs should implement.

type Fever

type Fever struct {
}

Fever is an implementation of the Fever API.

func (Fever) Handler

func (a Fever) Handler(d *storage.Database) http.HandlerFunc

Handler returns a handler function that implements the Fever API.

type GReader

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

GReader is an implementation of the GReader API.

func (GReader) Handler

func (a GReader) Handler() http.HandlerFunc

Handler returns a handler function that implements the GReader API.

Jump to

Keyboard shortcuts

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