pgservice

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = service.Config{
	Method: "GET",
	Path:   "/pg-example/products",
	Build:  Build,
}

Functions

func Build

func Build(
	requestID meta.RequestId,
	rawHeaders service.RawHeaders,
	rawBody service.RawBody,
	rawParams service.RawParams,
) (
	service.TPL, error,
)

Build godoc @Summary sample simian go pg get @Description one pg endpoint @Tags pg @Accept json @Produce json @Success 200 {object} Products @Router /pg-example/products [get]

Types

type Product

type Product struct {
	ID   string `json:"id" db:"id"`
	Name string `json:"name" db:"name"`
}

type Products

type Products []Product

Jump to

Keyboard shortcuts

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