template

package
v0.0.0-...-7ff62be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	ValidateDeclareTicketRules(c *gin.Context)
	ValidateScenarios(c *gin.Context)
	ValidateEventFilterRules(c *gin.Context)
	GetEnvVars(c *gin.Context)
}

func NewApi

func NewApi(validator validator.Validator, templateConfigProvider config.TemplateConfigProvider) API

type Request

type Request struct {
	Text string `json:"text"`
}

type Response

type Response struct {
	IsValid  bool                  `json:"is_valid"`
	Err      *validator.ErrReport  `json:"err,omitempty"`
	Warnings []validator.WrnReport `json:"warnings,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL