api

package
v0.0.0-...-0ebd481 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorInvalidAccountRef = "ACCOUNT_API_INVALID_ACCOUNT_REF"
)

Variables

This section is empty.

Functions

func AddRestfulHandler

func AddRestfulHandler(router *mux.Router, connection *sql.DB, loggers ...logs.LevelLogger)

AddRestfulHandler adds handlers to the provided :router

func GetDELETEHandler

func GetDELETEHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)

GetDELETEHandler returns the path string and the associated handler for that path

func GetGETHandler

func GetGETHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)

func GetPOSTHandler

func GetPOSTHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)

GetPOSTHandler is a wrapper that handles passing of the database connection instance to the required handler

func GetPUTHandler

func GetPUTHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)

Types

This section is empty.

Jump to

Keyboard shortcuts

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