Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "1.0.0"
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
ShortName string
AppName string
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.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
restokit-codegen
command
|
|
|
api
Package api is for API routes.
|
Package api is for API routes. |
Click to show internal directories.
Click to hide internal directories.