event

package
v0.0.0-...-890a17a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEvent

type BaseEvent struct {
	CreatedAt      time.Time        `json:"createdAt"`
	AppSource      string           `json:"appSource"`
	Source         string           `json:"source"`
	LoggedInUserId string           `json:"loggedInUserId"`
	EventName      string           `json:"eventName" validate:"required"`
	Tenant         string           `json:"tenant" validate:"required"`
	EntityId       string           `json:"entityId" validate:"required"`
	EntityType     model.EntityType `json:"entityType" validate:"required"`
}

type BaseEventAccessor

type BaseEventAccessor interface {
	GetBaseEvent() BaseEvent
	SetEntityId(entityId string)
}

type BaseRequest

type BaseRequest struct {
	ObjectID       string        `json:"objectID" validate:"required"`
	Tenant         string        `json:"tenant" validate:"required"`
	LoggedInUserId string        `json:"loggedInUserId"`
	AppSource      string        `json:"appSource"`
	SourceFields   common.Source `json:"sourceFields"`
}

Deprecated

func NewBaseRequest

func NewBaseRequest(objectID, tenant, loggedInUserId string, sourceFields common.Source) BaseRequest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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