Documentation
¶
Index ¶
- Constants
- Variables
- type Mongo
- func (this *Mongo) DeleteByDefinitionId(id string) error
- func (this *Mongo) DeleteIncidentByDefinitionId(id string) error
- func (this *Mongo) DeleteIncidentByInstanceId(id string) error
- func (this *Mongo) DeleteOnIncidentByDefinitionId(definitionId string) error
- func (this *Mongo) GetOnIncident(definitionId string) (handler messages.OnIncident, exists bool, err error)
- func (this *Mongo) SaveIncident(incident messages.Incident) error
- func (this *Mongo) SaveOnIncident(handler messages.OnIncident) error
Constants ¶
View Source
const TIMEOUT = 10 * time.Second
Variables ¶
View Source
var OnIncidentBson = getBsonFieldObject[messages.OnIncident]()
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) DeleteByDefinitionId ¶
func (*Mongo) DeleteIncidentByDefinitionId ¶
func (*Mongo) DeleteIncidentByInstanceId ¶
func (*Mongo) DeleteOnIncidentByDefinitionId ¶
func (*Mongo) GetOnIncident ¶
func (*Mongo) SaveOnIncident ¶
func (this *Mongo) SaveOnIncident(handler messages.OnIncident) error
Click to show internal directories.
Click to hide internal directories.