Links

Inputs

Here is a list of the built-in dependencies that can be used right away as input parameters:
Type
Maps To
​*mvc.Application​
Current MVC Application
​iris.Context​
Current Iris Context
​*sessions.Session​
Current Iris Session
​context.Context​
​*http.Request​
ctx.Request()
ctx.ResponseWriter()
​http.Header​
ctx.Request().Header
​time.Time​
time.Now()
​*golog.Logger​
Iris Logger
​net.IP​
net.ParseIP(ctx.RemoteAddr())
​mvc.Code​
ctx.GetStatusCode() int
​mvc.Err​
ctx.GetErr() error
​iris/context.User​
ctx.User()
string,
​
int, int8, int16, int32, int64,
​
uint, uint8, uint16, uint32, uint64,
​
float, float32, float64,
​
bool,
​
slice
​Path Parameter​
Struct
​Request Body of JSON, XML, YAML, Form, URL Query, Protobuf, MsgPack