Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶ added in v0.4.4
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is responsible for rendering templates
type RequestWrapper ¶ added in v0.3.0
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.