mysqlexample

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 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:"name"`
}

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