routes

package
v0.0.0-...-6a1a954 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddObject

func AddObject(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

function that returns form template and handles create operation

func DeleteObject

func DeleteObject(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

function that handles delete operation

func EditObject

func EditObject(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

function that returns form template and handles update operation

func ListObjects

func ListObjects(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

function that returns objects of a table

func ListTables

func ListTables(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

function that retrieves & returns table names from the database

func SetEmbedder

func SetEmbedder(_embedder *embed.FS)

Types

type Paginator

type Paginator struct {
	Offset       int
	Objects      []any
	TableName    string
	TotalObjects int
	ShowCheckBox bool
	HasMore      bool
}

Jump to

Keyboard shortcuts

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