Add basic filestack webhook.

This commit is contained in:
François de Metz
2016-06-28 19:26:41 +02:00
parent a8f9eb23cc
commit 4176375480
5 changed files with 157 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
package filestack
import "strconv"
type DialogEvent struct {
Action string `json:"action"`
TimeStamp int64 `json:"timestamp"`
Id int `json:"id"`
}
func (de *DialogEvent) Tags() map[string]string {
return map[string]string{
"action": de.Action,
}
}
func (de *DialogEvent) Fields() map[string]interface{} {
return map[string]interface{}{
"id": strconv.Itoa(de.Id),
}
}