Documentation ¶
Index ¶
Constants ¶
View Source
const ( Created string = "CREATED" MessageSent string = "MESSAGE_SENT" Approved string = "APPROVED" Declined string = "DECLINED" Finished string = "FINISHED" Deleted string = "DELETED" )
all possible event Statuses
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID uint64 EventType string TaskID uint64 Approver string RecievedAt time.Time Delay time.Duration }
Event represents a struct to store in database
type Message ¶
type Message struct { EventType string `json:"eventtype"` TaskID uint64 `json:"taskid"` Approver string `json:"approver"` RecievedAt time.Time `json:"recievedat"` }
Message represents incoming message from Task and Mail services
Click to show internal directories.
Click to hide internal directories.