Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal produces the YAML encoding of a request.Request. It is not a generic marshaller - it is hand-written for exactly this struct tree, so that the WASM build doesn't need encoding/json, gopkg.in/yaml.v3, or reflect (which all three pull in). Field order, indentation (4 spaces per level), omitempty behavior, and scalar quoting are written to match gopkg.in/yaml.v3's default output for this struct - see generate_yaml_test.go, which checks that byte-for-byte.
func ValidateAllWASM ¶
ValidateAllWASM is the single entry point the WASM build exposes to runner_page.js's Save JSON button: it builds the Request from the form's JSON dict, hands it to file validation so it can read Testament/text_format and populate AudioData/TextData.AWSS3 from the dropped directory, then validates the result - all within one Go call, so the two validation steps share state as plain pointer passing instead of needing any cross-WASM-call mechanism. Always marshals to YAML, even when there are errors, so the caller can save the file for debugging either way.
Types ¶
type RequestValidator ¶
type RequestValidator struct {
// contains filtered or unexported fields
}
func (*RequestValidator) Depend ¶
func (r *RequestValidator) Depend(req request.Request)
func (*RequestValidator) Prereq ¶
func (r *RequestValidator) Prereq(req *request.Request)
func (*RequestValidator) Validate ¶
func (r *RequestValidator) Validate(req *request.Request)