mysqlexample

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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:   "/mysql-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 Submit a configdata request @Description Retrieves configdata records @Tags Settings @ID configdata @Accept json @Produce json @Param configdata body configdata true "ConfigData" @Success 204 "No Content" @Failure 503 {object} errors.ErrorResult "Connectivity Issue" @Router /configdata [get]

Types

type Product

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

type Service

type Service struct {
	ID meta.RequestId
}

func (Service) Result

func (s Service) Result() (interface{}, error)

Jump to

Keyboard shortcuts

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