Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeJSONStringValues ¶ added in v0.8.0
Types ¶
type Context ¶
type Context struct {
Args map[string]any `json:"args"`
Config map[string]string `json:"config"`
Request RequestWrapper `json:"request"`
Response ResponseWrapper `json:"response"`
Env func(string) string `json:"-"` // Function to get environment variables
}
Context represents the template context
func AssembleTemplateContext ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is responsible for rendering templates
type RequestWrapper ¶
type RequestWrapper struct {
Headers map[string]string `json:"headers"`
Query map[string]string `json:"query"`
Cookies map[string]string `json:"cookies"`
Path map[string]string `json:"path"`
Body map[string]any `json:"body"`
}
Context represents the template context
type ResponseWrapper ¶
Context represents the template context
Click to show internal directories.
Click to hide internal directories.