-
Notifications
You must be signed in to change notification settings - Fork 0
/
notifier_webhook.go
33 lines (26 loc) · 1.11 KB
/
notifier_webhook.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package v2
import (
"github.com/jaehoonkim/synapse/pkg/manager/database/vanilla"
)
type NotifierWebhook_essential struct {
//http
Method string `column:"method,default('')" json:"method"`
Url string `column:"url,default('')" json:"url"`
RequestHeaders vanilla.NullKeyValue `column:"request_headers" json:"request_headers,omitempty" swaggertype:"object"`
RequestTimeout uint `column:"request_timeout,default(0)" json:"request_timeout"` // second
}
type NotifierWebhook_property struct {
NotifierWebhook_essential `json:",inline"`
Created vanilla.NullTime `column:"created" json:"created,omitempty" swaggertype:"string"`
Updated vanilla.NullTime `column:"updated" json:"updated,omitempty" swaggertype:"string"`
}
func (NotifierWebhook_property) Type() NotifierType {
return NotifierTypeWebhook
}
func (NotifierWebhook_property) TableName() string {
return "managed_channel_notifier_webhook"
}
type NotifierWebhook struct {
NotifierWebhook_property `json:",inline"`
Uuid string `column:"uuid" json:"uuid,omitempty"` // pk
}