Documentation ¶
Index ¶
- Constants
- func AddRestfulHandler(router *mux.Router, connection *sql.DB, loggers ...logs.LevelLogger)
- func GetDELETEHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)
- func GetGETHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)
- func GetPOSTHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)
- func GetPUTHandler(connection *sql.DB, logger logs.LevelLogger) (string, http.HandlerFunc)
Constants ¶
View Source
const (
ErrorInvalidAccountRef = "ACCOUNT_API_INVALID_ACCOUNT_REF"
)
Variables ¶
This section is empty.
Functions ¶
func AddRestfulHandler ¶
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.
Click to show internal directories.
Click to hide internal directories.