Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct { Handler string `firestore:"handler-name,omitempty" json:"handler-name,omitempty"` CalculatedVariables []string `firestore:"calculated-variables,omitempty" json:"calculated-variables,omitempty"` SessionVariables map[string]string `firestore:"session-variables,omitempty" json:"mapped-variables,omitempty"` Prototype string `firestore:"prototype,omitempty" json:"prototype,omitempty"` // contains filtered or unexported fields }
func (*Template) Execute ¶
Execute infers arguments from the provided prototype, checks the provided map for required arguments, and then Executes the template.
func (*Template) MapSessionVariables ¶
func (t *Template) MapSessionVariables(wr *cx.WebhookRequest) map[string]string
Extracts Session Variables
type TemplateCache ¶
type TemplateCache struct { AgentName string Cache TemplateDefinitions // contains filtered or unexported fields }
func (*TemplateCache) CacheCopier ¶
func (c *TemplateCache) CacheCopier(w io.Writer)
func (*TemplateCache) Listen ¶
func (c *TemplateCache) Listen(ctx context.Context, client *firestore.Client)
Listen listen's for updates to string template definitions in Firestore and updates the template cache in a concurrent safe manner. It returns a channel which is used to sync completion of the initial data load.
func (*TemplateCache) Store ¶
func (c *TemplateCache) Store(ep string, tmp Template)
type TemplateDefinitions ¶
Separated type for testing purposes.
Click to show internal directories.
Click to hide internal directories.