Documentation ¶
Index ¶
- Variables
- func HandleRoute(route string, get interface{}, post interface{}, put interface{}, ...)
- func InitBeautyPrinter(basePath string, requestsPath string, responsesPath string)
- func TestDeleteEndpoint(path string, body interface{}, responseStruct interface{}, idToken string) error
- func TestGetEndpoint(path string, responseStruct interface{}, idToken string) error
- func TestPostEndpoint(path string, body interface{}, responseStruct interface{}, idToken string) error
- func TestPutEndpoint(path string, body interface{}, responseStruct interface{}, idToken string) error
- func WrapEndpointHandlers(handlers EndpointHandlers) func(http.ResponseWriter, *http.Request)
- type AuthInterface
- type EndpointHandlers
Constants ¶
This section is empty.
Variables ¶
View Source
var BeautyPrint *beautyPrinter
View Source
var ReportErrorFunc func(err error, r *http.Request) error
Functions ¶
func HandleRoute ¶
func HandleRoute(route string, get interface{}, post interface{}, put interface{}, delete interface{})
func InitBeautyPrinter ¶
func TestDeleteEndpoint ¶
func TestGetEndpoint ¶
func TestPostEndpoint ¶
func TestPutEndpoint ¶
func WrapEndpointHandlers ¶
func WrapEndpointHandlers(handlers EndpointHandlers) func(http.ResponseWriter, *http.Request)
Types ¶
type AuthInterface ¶
type EndpointHandlers ¶
type EndpointHandlers struct { Get interface{} Post interface{} Put interface{} Delete interface{} }
Click to show internal directories.
Click to hide internal directories.