mirror of https://github.com/statping/statping
20 lines
449 B
Go
20 lines
449 B
Go
![]() |
package types
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type Failure struct {
|
||
|
Id int `db:"id,omitempty" json:"id"`
|
||
|
Issue string `db:"issue" json:"issue"`
|
||
|
Method string `db:"method" json:"method,omitempty"`
|
||
|
Service int64 `db:"service" json:"service_id"`
|
||
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
||
|
FailureInterface
|
||
|
}
|
||
|
|
||
|
type FailureInterface interface {
|
||
|
Delete() error
|
||
|
// method functions
|
||
|
Ago() string
|
||
|
ParseError() string
|
||
|
}
|