コード例 #1
0
ファイル: params.go プロジェクト: snikch/api
// SetContextParams sets the supplied httprouter.Params on the context.
func SetContextParams(context *ctx.Context, params httprouter.Params) {
	context.Set(paramsContextKey, params)
}
コード例 #2
0
ファイル: criteria.go プロジェクト: snikch/api
// SetContextCriteria sets the criteria against a context.
func SetContextCriteria(context *ctx.Context, criteria *Criteria) {
	context.Set(criteriaContextKey, criteria)
}