Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { ExpiredAt time.Time `gorm:"not null; index:idx_retry;"` Hosts string `gorm:"not null; type:varchar(255);"` Path string `gorm:"not null; type:varchar(255);"` Method string `gorm:"type:varchar(255);"` //默认使用POST ContentType string `gorm:"type:varchar(255);"` //默认使用application/json Data []byte }
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func (*Notifier) NewNotifierMessage ¶
func (n *Notifier) NewNotifierMessage(message Message) (*NotifierMessage, error)
type NotifierMessage ¶
type NotifierMessage struct { ID string `gorm:"primaryKey; type:varchar(255);"` ServiceName string `gorm:"index:idx_retry; type:varchar(255);"` SuccessAt *time.Time `gorm:"index:idx_retry"` Message `gorm:"embedded"` FailCount int `gorm:"type:int(11);"` CreatedAt time.Time UpdatedAt time.Time }
func (NotifierMessage) TableName ¶
func (NotifierMessage) TableName() string
TableName overrides the table name used by Message to `yi_notifier_messages`
Click to show internal directories.
Click to hide internal directories.