handlers

package
v0.0.0-...-f2f9183 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllHandler

func GetAllHandler(c *cache.TemplateCache) func(w http.ResponseWriter, r *http.Request)

func RegisterHandlers

func RegisterHandlers(c *cache.TemplateCache)

func TestEndpoint1Handler

func TestEndpoint1Handler(c *cache.TemplateCache) func(w http.ResponseWriter, r *http.Request)

func TestEndpoint2Handler

func TestEndpoint2Handler(c *cache.TemplateCache) func(w http.ResponseWriter, r *http.Request)

func UpdateAllHandler

func UpdateAllHandler(fs *firestore.Client) func(w http.ResponseWriter, r *http.Request)

Types

type WebhookManager

type WebhookManager struct {
	cx.WebhookRequest
	cx.WebhookResponse
	Cache        *cache.TemplateCache
	Template     cache.Template
	VariablesMap map[string]string
}

func (*WebhookManager) ExecuteTemplate

func (wm *WebhookManager) ExecuteTemplate() bytes.Buffer

func (*WebhookManager) Initialize

func (wm *WebhookManager) Initialize(c *cache.TemplateCache, ep string, r *http.Request)

func (*WebhookManager) MapCalculated

func (wm *WebhookManager) MapCalculated(name, value string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL