Exemplo n.º 1
0
Arquivo: params.go Projeto: snikch/api
// SetContextParams sets the supplied httprouter.Params on the context.
func SetContextParams(context *ctx.Context, params httprouter.Params) {
	context.Set(paramsContextKey, params)
}
Exemplo n.º 2
0
// SetContextCriteria sets the criteria against a context.
func SetContextCriteria(context *ctx.Context, criteria *Criteria) {
	context.Set(criteriaContextKey, criteria)
}