routes

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBody

func ParseBody(body io.ReadCloser) (sqlds.Options, error)

func SendResources

func SendResources(rw http.ResponseWriter, res interface{}, err error)

func Write

func Write(rw http.ResponseWriter, b []byte)

Types

type ResourceHandler

type ResourceHandler struct {
	API api.Resources
}

func (*ResourceHandler) DefaultRoutes

func (r *ResourceHandler) DefaultRoutes() map[string]func(http.ResponseWriter, *http.Request)

Jump to

Keyboard shortcuts

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