Documentation
¶
Index ¶
- type DB
- func (s DB) ByDate(from, to time.Time) ([]models.Incident, error)
- func (s DB) Create(incident models.Incident) (models.Incident, error)
- func (s DB) Creator() func(u *url.URL) (Store, error)
- func (s DB) Delete(guid string) error
- func (s DB) Detect(u *url.URL) bool
- func (s DB) GetDb() *gorm.DB
- func (s DB) Persistents() ([]models.Incident, error)
- func (s DB) Ping() error
- func (s DB) Read(guid string) (models.Incident, error)
- func (s DB) Subscribe(email string) error
- func (s DB) Subscribers() ([]string, error)
- func (s DB) Unsubscribe(email string) error
- func (s DB) Update(guid string, incident models.Incident) (models.Incident, error)
- type Local
- func (l Local) ByDate(from, to time.Time) ([]models.Incident, error)
- func (l Local) Create(incident models.Incident) (models.Incident, error)
- func (l Local) Creator() func(u *url.URL) (Store, error)
- func (l Local) Delete(guid string) error
- func (l Local) Detect(u *url.URL) bool
- func (l Local) Persistents() ([]models.Incident, error)
- func (l Local) Ping() error
- func (l Local) Read(guid string) (models.Incident, error)
- func (l Local) Subscribe(email string) error
- func (l Local) Subscribers() ([]string, error)
- func (l Local) Unsubscribe(email string) error
- func (l Local) Update(guid string, incident models.Incident) (models.Incident, error)
- type Replicate
- func (m *Replicate) ByDate(from, to time.Time) ([]models.Incident, error)
- func (m *Replicate) Create(incident models.Incident) (models.Incident, error)
- func (m *Replicate) Creator() func(u *url.URL) (Store, error)
- func (m *Replicate) Delete(guid string) error
- func (m *Replicate) Detect(u *url.URL) bool
- func (m *Replicate) Persistents() ([]models.Incident, error)
- func (m *Replicate) Ping() error
- func (m *Replicate) Read(guid string) (models.Incident, error)
- func (m *Replicate) Subscribe(email string) error
- func (m *Replicate) Subscribers() ([]string, error)
- func (m *Replicate) Unsubscribe(email string) error
- func (m *Replicate) Update(guid string, incident models.Incident) (models.Incident, error)
- type Retry
- func (m Retry) ByDate(from, to time.Time) ([]models.Incident, error)
- func (m Retry) Create(incident models.Incident) (models.Incident, error)
- func (m Retry) Creator() func(u *url.URL) (Store, error)
- func (m Retry) Delete(guid string) error
- func (m Retry) Detect(u *url.URL) bool
- func (m Retry) Persistents() ([]models.Incident, error)
- func (m Retry) Ping() error
- func (m Retry) Read(guid string) (models.Incident, error)
- func (m Retry) Subscribe(email string) error
- func (m Retry) Subscribers() ([]string, error)
- func (m Retry) Unsubscribe(email string) error
- func (m Retry) Update(guid string, incident models.Incident) (models.Incident, error)
- type S3
- func (s *S3) ByDate(from, to time.Time) ([]models.Incident, error)
- func (s *S3) Create(incident models.Incident) (models.Incident, error)
- func (s *S3) Creator() func(u *url.URL) (Store, error)
- func (s *S3) Delete(guid string) error
- func (s S3) Detect(u *url.URL) bool
- func (s S3) Persistents() ([]models.Incident, error)
- func (s *S3) Ping() error
- func (s *S3) Read(guid string) (models.Incident, error)
- func (s S3) Subscribe(email string) error
- func (s S3) Subscribers() ([]string, error)
- func (s S3) Unsubscribe(email string) error
- func (s *S3) Update(guid string, incident models.Incident) (models.Incident, error)
- type Store
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (DB) Subscribers ¶
func (DB) Unsubscribe ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (Local) Subscribers ¶
func (Local) Unsubscribe ¶
type Replicate ¶
type Replicate struct {
// contains filtered or unexported fields
}
func NewReplicate ¶
func NewReplicateWithWaits ¶
func (*Replicate) Persistents ¶ added in v1.6.1
func (*Replicate) Subscribers ¶
func (*Replicate) Unsubscribe ¶
type Retry ¶
type Retry struct {
// contains filtered or unexported fields
}
func NewRetryWithSleepTime ¶
func (Retry) Subscribers ¶
func (Retry) Unsubscribe ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func (S3) Subscribers ¶
func (S3) Unsubscribe ¶
type Store ¶
type Store interface { Creator() func(u *url.URL) (Store, error) Detect(u *url.URL) bool Create(incident models.Incident) (models.Incident, error) Update(guid string, incident models.Incident) (models.Incident, error) Delete(guid string) error Read(guid string) (models.Incident, error) ByDate(from, to time.Time) ([]models.Incident, error) Persistents() ([]models.Incident, error) Subscribe(email string) error Unsubscribe(email string) error Subscribers() ([]string, error) Ping() error }
type Subscriber ¶
type Subscriber struct {
Email string `gorm:"primary_key"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.