Documentation ¶
Index ¶
- Constants
- func NewIssueAddUserAssigneeEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
- func NewIssueAddUserFollowerEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
- func NewIssueCreateEvent(aggregate eventstore.Aggregate, dataFields model.IssueDataFields, ...) (eventstore.Event, error)
- func NewIssueRemoveUserAssigneeEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
- func NewIssueRemoveUserFollowerEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
- func NewIssueUpdateEvent(aggregate eventstore.Aggregate, dataFields model.IssueDataFields, ...) (eventstore.Event, error)
- type IssueAddUserAssigneeEvent
- type IssueAddUserFollowerEvent
- type IssueCreateEvent
- type IssueRemoveUserAssigneeEvent
- type IssueRemoveUserFollowerEvent
- type IssueUpdateEvent
Constants ¶
View Source
const ( IssueCreateV1 = "V1_ISSUE_CREATE" IssueUpdateV1 = "V1_ISSUE_UPDATE" IssueAddUserAssigneeV1 = "V1_ISSUE_ADD_USER_ASSIGNEE" IssueRemoveUserAssigneeV1 = "V1_ISSUE_REMOVE_USER_ASSIGNEE" IssueAddUserFollowerV1 = "V1_ISSUE_ADD_USER_FOLLOWER" IssueRemoveUserFollowerV1 = "V1_ISSUE_REMOVE_USER_FOLLOWER" )
Variables ¶
This section is empty.
Functions ¶
func NewIssueAddUserAssigneeEvent ¶
func NewIssueAddUserAssigneeEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
func NewIssueAddUserFollowerEvent ¶
func NewIssueAddUserFollowerEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
func NewIssueCreateEvent ¶
func NewIssueCreateEvent(aggregate eventstore.Aggregate, dataFields model.IssueDataFields, source cmnmod.Source, externalSystem cmnmod.ExternalSystem, createdAt, updatedAt time.Time) (eventstore.Event, error)
func NewIssueRemoveUserAssigneeEvent ¶
func NewIssueRemoveUserAssigneeEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
func NewIssueRemoveUserFollowerEvent ¶
func NewIssueRemoveUserFollowerEvent(aggregate eventstore.Aggregate, userId string, at time.Time) (eventstore.Event, error)
func NewIssueUpdateEvent ¶
func NewIssueUpdateEvent(aggregate eventstore.Aggregate, dataFields model.IssueDataFields, source string, externalSystem cmnmod.ExternalSystem, updatedAt time.Time) (eventstore.Event, error)
Types ¶
type IssueCreateEvent ¶
type IssueCreateEvent struct { Tenant string `json:"tenant" validate:"required"` GroupId string `json:"groupId"` Subject string `json:"subject" validate:"required_without=Description"` Description string `json:"description" validate:"required_without=Subject"` Status string `json:"status"` Priority string `json:"priority"` ReportedByOrganizationId string `json:"reportedByOrganizationId,omitempty"` SubmittedByOrganizationId string `json:"submittedByOrganizationId,omitempty"` SubmittedByUserId string `json:"submittedByUserId,omitempty"` Source string `json:"source"` AppSource string `json:"appSource"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` ExternalSystem cmnmod.ExternalSystem `json:"externalSystem,omitempty"` }
type IssueUpdateEvent ¶
type IssueUpdateEvent struct { Tenant string `json:"tenant" validate:"required"` GroupId string `json:"groupId"` Subject string `json:"subject" validate:"required_without=Description"` Description string `json:"description" validate:"required_without=Subject"` Status string `json:"status"` Priority string `json:"priority"` UpdatedAt time.Time `json:"updatedAt"` Source string `json:"source"` ExternalSystem cmnmod.ExternalSystem `json:"externalSystem,omitempty"` }
Click to show internal directories.
Click to hide internal directories.