service

package
v0.0.0-...-a735c6b Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlAPIController

type MysqlAPIController struct {
	// contains filtered or unexported fields
}

A MysqlAPIController binds http requests to an api service and writes the service results to the http response

func (*MysqlAPIController) Routes

func (c *MysqlAPIController) Routes() openapi.Routes

Routes returns all of the api route for the MysqlApiController

type Router

type Router interface {
	Routes() openapi.Routes
}

Router defines the required methods for binding the api requests to a responses for the MysqlApi The Router implementation should parse necessary information from the http request, pass the data to a Servicer to perform the required actions, then write the service results to the http response.

func NewMysqlAPIController

func NewMysqlAPIController(
	db *sql.DB,
	bck backend.Backup,
	strs map[string]backend.Storage,
) Router

NewMysqlAPIController creates a default api controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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