api

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAdminRouter

func InitAdminRouter(api common.APIHelper)

func InitSourcesRouter

func InitSourcesRouter(apiHelper common.APIHelper)

func InitTestRouter

func InitTestRouter(api common.APIHelper)

func ReadInputRecords

func ReadInputRecords(r heligo.Request) ([]database.Record, error)

func TableCreateHandler

func TableCreateHandler(c context.Context, w http.ResponseWriter, r heligo.Request) (int, error)

func TableDeleteHandler

func TableDeleteHandler(c context.Context, w http.ResponseWriter, r heligo.Request) (int, error)

func TableGetHandler

func TableGetHandler(c context.Context, w http.ResponseWriter, r heligo.Request) (int, error)

func TableListHandler

func TableListHandler(c context.Context, w http.ResponseWriter, r heligo.Request) (int, error)

func TableUpdateHandler

func TableUpdateHandler(c context.Context, w http.ResponseWriter, r heligo.Request) (int, error)

func WriteBadRequest

func WriteBadRequest(w http.ResponseWriter, err error) (int, error)

func WriteError

func WriteError(w http.ResponseWriter, err error) (int, error)

func WriteServerError

func WriteServerError(w http.ResponseWriter, err error) (int, error)

Types

type Data

type Data map[string]any

Jump to

Keyboard shortcuts

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