Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Validate *validator.Validate = validator.New()
Validate validator
Functions ¶
func PostEval ¶
func PostEval(response http.ResponseWriter, request *http.Request)
PostEval Evaluates the given context from payload against the specified CEL expression @Summary Post Evaluation @Description Evaluates the given context from payload against the specified CEL expression @Tags evaluation @Accept json @Produce json @Security apikey @Param payload body model.CelModel true "Context and expression" @Success 201 {object} model.CelResult "Evaluation result" @Failure 400 {object} serror.Serr "client error information as json" @Failure 500 {object} serror.Serr "server error information as json" @Router /evaluate [post]
func PostEvalMany ¶
func PostEvalMany(response http.ResponseWriter, request *http.Request)
PostEvalMany Evaluates a list of context/expression from payload @Summary Post Evaluation Many @Description Evaluates a list of given context from payload against the CEL expression @Tags evaluation @Accept json @Produce json @Security apikey @Param payload body []model.CelModel true "Context and expression" @Success 201 {object} []model.CelResult "Evaluation result" @Failure 400 {object} serror.Serr "client error information as json" @Failure 500 {object} serror.Serr "server error information as json" @Router /evaluatemany [post]
Types ¶
This section is empty.