Documentation
¶
Index ¶
- type Observation
- type TemplateCtx
- func (tc *TemplateCtx) HttpDo(r *http.Request) (any, error)
- func (tc *TemplateCtx) HttpRequest(method, url string, tmpl string, headers ...string) (any, error)
- func (tc *TemplateCtx) Post(url string, tmpl string, headers ...string) (any, error)
- func (tc *TemplateCtx) Read(r io.ReadCloser) (any, error)
- func (tc *TemplateCtx) Run(ctx context.Context) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observation ¶
type TemplateCtx ¶
type TemplateCtx struct {
// The template id
Id string `json:"id"`
Template string `json:"template"`
Params map[string]any `json:"params"`
// contains filtered or unexported fields
}
func New ¶
func New() *TemplateCtx
func (*TemplateCtx) HttpRequest ¶
func (*TemplateCtx) Read ¶
func (tc *TemplateCtx) Read(r io.ReadCloser) (any, error)
Click to show internal directories.
Click to hide internal directories.