activity

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	// contains filtered or unexported fields
}

func NewActivity

func NewActivity(id umid.UMID, db database.DB, activities universe.Activities) *Activity

func (*Activity) GetActivities

func (a *Activity) GetActivities() universe.Activities

func (*Activity) GetCreatedAt

func (a *Activity) GetCreatedAt() time.Time

func (*Activity) GetData

func (a *Activity) GetData() *entry.ActivityData

func (*Activity) GetEntry

func (a *Activity) GetEntry() *entry.Activity

func (*Activity) GetID

func (a *Activity) GetID() umid.UMID

func (*Activity) GetObjectID

func (a *Activity) GetObjectID() umid.UMID

func (*Activity) GetType

func (a *Activity) GetType() *entry.ActivityType

func (*Activity) GetUserID

func (a *Activity) GetUserID() umid.UMID

func (*Activity) Initialize

func (a *Activity) Initialize(ctx types.NodeContext) error

func (*Activity) LoadFromEntry

func (a *Activity) LoadFromEntry(entry *entry.Activity) error

func (*Activity) SetCreatedAt

func (a *Activity) SetCreatedAt(createdAt time.Time, updateDB bool) error

func (*Activity) SetData

func (a *Activity) SetData(modifyFn modify.Fn[entry.ActivityData], updateDB bool) (*entry.ActivityData, error)

func (*Activity) SetObjectID

func (a *Activity) SetObjectID(objectID umid.UMID, updateDB bool) error

func (*Activity) SetType

func (a *Activity) SetType(activityType *entry.ActivityType, updateDB bool) error

func (*Activity) SetUserID

func (a *Activity) SetUserID(userID umid.UMID, updateDB bool) error

Jump to

Keyboard shortcuts

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