Add basic filestack webhook.
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user