routes

package
v0.0.0-...-3ecd118 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParseParam = errors.New("invalid param")

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Env         *mdbx.Env
	Tables      map[string]*mdbxnav.Table
	ValueLength uint
}

func (*Backend) AllTables

func (be *Backend) AllTables(w http.ResponseWriter, r *http.Request)

Returns the preloaded table schema sorted byy table name

func (*Backend) CreateRouter

func (be *Backend) CreateRouter() (chi.Router, error)

func (*Backend) GetValue

func (be *Backend) GetValue(w http.ResponseWriter, r *http.Request)

func (*Backend) TableBackward

func (be *Backend) TableBackward(w http.ResponseWriter, r *http.Request)

func (*Backend) TableForward

func (be *Backend) TableForward(w http.ResponseWriter, r *http.Request)

func (*Backend) TableSearch

func (be *Backend) TableSearch(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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