Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TeardownHTTP ¶
TeardownHTTP for cleanup of test scaffolding
Types ¶
type Middleware ¶
type Middleware func(fasthttp.RequestHandler) fasthttp.RequestHandler
type Restokit ¶
type Restokit struct { Router *fasthttprouter.Router Server *fasthttp.Server Listener net.Listener Logger *logrus.Entry HealthCheck fasthttp.RequestHandler ReadinessCheck fasthttp.RequestHandler // contains filtered or unexported fields }
Restokit is the REST framework common building block. The system involves simple codegen tricks.
func NewRestokit ¶
NewRestokit creates a new restokit with the specified address
func ScaffoldHTTP ¶
ScaffoldHTTP creates an in-memory listener restokit with http client.
func (*Restokit) AddGlobalMiddleware ¶
func (r *Restokit) AddGlobalMiddleware(fn Middleware)
AddGlobalMiddleware to the middleware stack. Only works before starting.
Click to show internal directories.
Click to hide internal directories.