Skip to content

Inputs

Here is a list of the built-in dependencies that can be used right away as input parameters:

TypeMaps To
*mvc.ApplicationCurrent MVC Application
iris.ContextCurrent Iris Context
*sessions.SessionCurrent Iris Session
context.Contextctx.Request().Context()
*http.Requestctx.Request()
http.ResponseWriterctx.ResponseWriter()
http.Headerctx.Request().Header
time.Timetime.Now()
*golog.LoggerIris Logger
net.IPnet.ParseIP(ctx.RemoteAddr())
mvc.Codectx.GetStatusCode() int
mvc.Errctx.GetErr() error
iris/context.Userctx.User()
string,
int, int8, int16, int32, int64,
uint, uint8, uint16, uint32, uint64,
float, float32, float64,
bool,
slicePath Parameter
StructRequest Body of JSON, XML, YAML, Form, URL Query, Protobuf, MsgPack

Built with excellence by Hellenic Development, delivering enterprise-grade solutions.