event

package
v0.0.0-...-3fe8b81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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 IssueAddUserAssigneeEvent

type IssueAddUserAssigneeEvent struct {
	Tenant string    `json:"tenant" validate:"required"`
	At     time.Time `json:"at"`
	UserId string    `json:"userId" validate:"required"`
}

type IssueAddUserFollowerEvent

type IssueAddUserFollowerEvent struct {
	Tenant string    `json:"tenant" validate:"required"`
	At     time.Time `json:"at"`
	UserId string    `json:"userId" validate:"required"`
}

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 IssueRemoveUserAssigneeEvent

type IssueRemoveUserAssigneeEvent struct {
	Tenant string    `json:"tenant" validate:"required"`
	At     time.Time `json:"at"`
	UserId string    `json:"userId" validate:"required"`
}

type IssueRemoveUserFollowerEvent

type IssueRemoveUserFollowerEvent struct {
	Tenant string    `json:"tenant" validate:"required"`
	At     time.Time `json:"at"`
	UserId string    `json:"userId" validate:"required"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL