event

package
v0.0.0-...-b19a234 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemCreate      = "item.create"
	ItemUpdate      = "item.update"
	ItemDelete      = "item.delete"
	ItemPublish     = "item.publish"
	ItemUnpublish   = "item.unpublish"
	AssetCreate     = "asset.create"
	AssetDecompress = "asset.decompress"
	AssetDelete     = "asset.delete"
)

Variables

View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.EventIDFrom
View Source
var IDFromRef = id.EventIDFromRef
View Source
var MustID = id.MustEventID
View Source
var NewID = id.NewEventID

Functions

This section is empty.

Types

type Builder

type Builder[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Builder[T]

func (*Builder[T]) Build

func (b *Builder[T]) Build() (*Event[T], error)

func (*Builder[T]) ID

func (b *Builder[T]) ID(id ID) *Builder[T]

func (*Builder[T]) MustBuild

func (b *Builder[T]) MustBuild() *Event[T]

func (*Builder[T]) NewID

func (b *Builder[T]) NewID() *Builder[T]

func (*Builder[T]) Object

func (b *Builder[T]) Object(o T) *Builder[T]

func (*Builder[T]) Operator

func (b *Builder[T]) Operator(o operator.Operator) *Builder[T]

func (*Builder[T]) Project

func (b *Builder[T]) Project(prj *Project) *Builder[T]

func (*Builder[T]) Timestamp

func (b *Builder[T]) Timestamp(t time.Time) *Builder[T]

func (*Builder[T]) Type

func (b *Builder[T]) Type(t Type) *Builder[T]

type Event

type Event[T any] struct {
	// contains filtered or unexported fields
}

func (*Event[T]) Clone

func (e *Event[T]) Clone() *Event[T]

func (*Event[T]) ID

func (e *Event[T]) ID() ID

func (*Event[T]) Object

func (e *Event[T]) Object() any

func (*Event[T]) Operator

func (e *Event[T]) Operator() operator.Operator

func (*Event[T]) Project

func (e *Event[T]) Project() *Project

func (*Event[T]) Timestamp

func (e *Event[T]) Timestamp() time.Time

func (*Event[T]) Type

func (e *Event[T]) Type() Type

type ID

type ID = id.EventID

type IntegrationID

type IntegrationID = id.IntegrationID

type Project

type Project struct {
	ID    string
	Alias string
}

func (*Project) Clone

func (p *Project) Clone() *Project

type Type

type Type string

type UserID

type UserID = accountdomain.UserID

Jump to

Keyboard shortcuts

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