events

package
v0.0.0-...-9073f78 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	JobRoleCreateV1 = "V1_JOB_ROLE_CREATE"
)

Variables

This section is empty.

Functions

func NewJobRoleCreateEvent

func NewJobRoleCreateEvent(aggregate eventstore.Aggregate, command *model.CreateJobRoleCommand) (eventstore.Event, error)

Types

type JobRoleCreateEvent

type JobRoleCreateEvent struct {
	Tenant        string     `json:"tenant" validate:"required"`
	StartedAt     *time.Time `json:"startedAt,omitempty"`
	EndedAt       *time.Time `json:"endedAt,omitempty"`
	JobTitle      string     `json:"jobTitle" validate:"required"`
	Description   *string    `json:"description,omitempty"`
	Primary       bool       `json:"primary"`
	Source        string     `json:"source"`
	SourceOfTruth string     `json:"sourceOfTruth"`
	AppSource     string     `json:"appSource"`
	CreatedAt     time.Time  `json:"createdAt"`
	UpdatedAt     time.Time  `json:"updatedAt"`
}

type JobRoleUpdateEvent

type JobRoleUpdateEvent struct {
	Tenant        string     `json:"tenant" validate:"required"`
	StartedAt     *time.Time `json:"startedAt,omitempty"`
	EndedAt       *time.Time `json:"endedAt,omitempty"`
	JobTitle      *string    `json:"jobTitle,omitempty"`
	Description   *string    `json:"description"`
	Primary       *bool      `json:"primary"`
	SourceOfTruth string     `json:"sourceOfTruth"`
	UpdatedAt     time.Time  `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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