Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountAllMessagesByReference ¶
CountAllMessagesByReference : Count by Reference
func RemoveAllMessagesByReference ¶
func RemoveAllMessagesByReference(reference string)
RemoveAllMessagesByReference : Remove Messages by Reference
Types ¶
type Event ¶
type Event struct { EventID string `json:"eventId,omitempty"` Subject string `json:"subject"` Channel map[string]bool `json:"channel"` Recipient []string `json:"recipient"` UnmappedData map[string]string `json:"unmappedData"` EventType string `json:"eventType"` Description string `json:"description"` DateCreated time.Time `json:"dateCreated,omitempty"` }
Event struct
type Message ¶
type Message struct { ID bson.ObjectId `bson:"_id,omitempty"` MessageID string `bson:"messageId,omitempty"` Reference string `bson:"reference,omitempty"` AlertID string `bson:"alertId,omitempty"` UnmappedData map[string]string `json:"unmappedData"` Subject string `bson:"subject,omitempty"` Content string `bson:"content,omitempty"` Recipient string `bson:"recipient,omitempty"` FileAttached string `bson:"fileAttached,omitempty"` MessageResponse MessageResponse `bson:"messageResponse,omitempty"` DateCreated time.Time `bson:"dateCreated,omitempty"` }
Message struct
func FindAllMessagesByReference ¶
FindAllMessagesByReference : Find messages by Reference
func (Message) FindMessage ¶
FindMessage : Find Message by ID
func (*Message) IndexMessage ¶
IndexMessage : Index Message
func (*Message) RemoveMessage ¶
RemoveMessage : Remove Message by ID
func (*Message) UpdateResponse ¶
func (message *Message) UpdateResponse(ID string, response MessageResponse) (Message, error)
UpdateResponse : Update Message with Response
Click to show internal directories.
Click to hide internal directories.