Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventTarget ¶
type EventTarget struct { Type string `json:"type"` Address string `json:"address"` AuthHeader string `json:"auth_header,omitempty"` SkipCertVerify bool `json:"skip_cert_verify"` PayloadFormat string `json:"payload_format,omitempty"` }
EventTarget defines the structure of target a notification send to
type Policy ¶
type Policy struct { ID int64 `orm:"pk;auto;column(id)" json:"id"` Name string `orm:"column(name)" json:"name"` Description string `orm:"column(description)" json:"description"` ProjectID int64 `orm:"column(project_id)" json:"project_id"` TargetsDB string `orm:"column(targets)" json:"-"` Targets []EventTarget `orm:"-" json:"targets"` EventTypesDB string `orm:"column(event_types)" json:"-"` EventTypes []string `orm:"-" json:"event_types"` Creator string `orm:"column(creator)" json:"creator"` CreationTime time.Time `orm:"column(creation_time);auto_now_add" json:"creation_time" sort:"default:desc"` UpdateTime time.Time `orm:"column(update_time);auto_now_add" json:"update_time"` Enabled bool `orm:"column(enabled)" json:"enabled"` }
Policy ...
func (*Policy) ConvertFromDBModel ¶
ConvertFromDBModel convert from DB model data to struct data
func (*Policy) ConvertToDBModel ¶
ConvertToDBModel convert struct data in notification policy to DB model data
Click to show internal directories.
Click to hide internal directories.