activity

package
v1.53.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: AGPL-3.0 Imports: 1 Imported by: 5 modules, 21 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentActivity

type DocumentActivity struct {
	ID           int       `json:"id"`
	OrgID        string    `json:"orgId"`
	LabelID      string    `json:"folderId"`
	DocumentID   string    `json:"documentId"`
	UserID       string    `json:"userId"`
	Firstname    string    `json:"firstname"`
	Lastname     string    `json:"lastname"`
	ActivityType int       `json:"activityType"`
	Created      time.Time `json:"created"`
}

DocumentActivity represents an activity taken against a document.

type SourceType

type SourceType int

SourceType details where the activity occured.

const (
	// SourceTypeSpace indicates activity against a space.
	SourceTypeSpace SourceType = 1

	// SourceTypeDocument indicates activity against a document.
	SourceTypeDocument SourceType = 2
)

type Type

type Type int

Type determines type of user activity

const (
	// TypeCreated records user document creation
	TypeCreated Type = 1

	// TypeRead states user has read document
	TypeRead Type = 2

	// TypeEdited states user has editing document
	TypeEdited Type = 3

	// TypeDeleted records user deleting space/document
	TypeDeleted Type = 4

	// TypeArchived records user archiving space/document
	TypeArchived Type = 5

	// TypeApproved records user approval of document
	TypeApproved Type = 6

	// TypeReverted records user content roll-back to previous version
	TypeReverted Type = 7

	// TypePublishedTemplate records user creating new document template
	TypePublishedTemplate Type = 8

	// TypePublishedBlock records user creating reusable content block
	TypePublishedBlock Type = 9

	// TypeFeedback records user providing document feedback
	TypeFeedback Type = 10
)

type UserActivity

type UserActivity struct {
	ID           uint64     `json:"-"`
	OrgID        string     `json:"orgId"`
	UserID       string     `json:"userId"`
	LabelID      string     `json:"folderId"`
	SourceID     string     `json:"sourceId"`
	SourceName   string     `json:"sourceName"` // e.g. Document or Space name
	SourceType   SourceType `json:"sourceType"`
	ActivityType Type       `json:"activityType"`
	Created      time.Time  `json:"created"`
}

UserActivity represents an activity undertaken by a user.

Jump to

Keyboard shortcuts

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