Documentation ¶
Index ¶
- func RunGetWithHeaders(path string, headers map[string]string, handler RequestFunc, ...)
- func RunGetWithMiddlewares(path string, mws []gin.HandlerFunc, handler RequestFunc, reply ResponseFunc)
- func RunPostWithMiddlewares(path, body string, mws []gin.HandlerFunc, handler RequestFunc, ...)
- func RunRequest(rc RequestConfig)
- func RunSimpleGet(path string, handler RequestFunc, reply ResponseFunc)
- func RunSimplePost(path, body string, handler RequestFunc, reply ResponseFunc)
- type RequestConfig
- type RequestFunc
- type ResponseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGetWithHeaders ¶
func RunGetWithHeaders(path string, headers map[string]string, handler RequestFunc, reply ResponseFunc)
func RunGetWithMiddlewares ¶
func RunGetWithMiddlewares(path string, mws []gin.HandlerFunc, handler RequestFunc, reply ResponseFunc)
func RunPostWithMiddlewares ¶
func RunPostWithMiddlewares(path, body string, mws []gin.HandlerFunc, handler RequestFunc, reply ResponseFunc)
func RunRequest ¶
func RunRequest(rc RequestConfig)
func RunSimpleGet ¶
func RunSimpleGet(path string, handler RequestFunc, reply ResponseFunc)
func RunSimplePost ¶
func RunSimplePost(path, body string, handler RequestFunc, reply ResponseFunc)
Types ¶
type RequestConfig ¶
type RequestConfig struct { Method string Path string Body string Headers map[string]string Middlewares []gin.HandlerFunc Handler RequestFunc Finaliser ResponseFunc }
type RequestFunc ¶
request handling func type to replace gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.