events

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileEvent

type FileEvent struct {
	Info   domain.FileInfo
	Type   FileEventType
	Bucket string
	DbID   string
}

func NewFileEvent

func NewFileEvent(info domain.FileInfo, eventType FileEventType, bucket, dbID string) FileEvent

type FileEventType

type FileEventType string
const (
	FileAdded            FileEventType = "FileAdded"
	FileDeleted          FileEventType = "FileDeleted"
	FileUpdated          FileEventType = "FileUpdated"
	FileBackupInProgress FileEventType = "FileBackupInProgress"
	FileBackupReady      FileEventType = "FileBackupReady"

	FileRestored  FileEventType = "FileRestored"
	FileRestoring FileEventType = "FileRestoring"

	FolderAdded   FileEventType = "FolderAdded"
	FolderDeleted FileEventType = "FolderDeleted"
	// NOTE: not sure if this needs to be specific to rename or copy
	FolderUpdated FileEventType = "FolderUpdated"
)

type Invitation added in v0.0.11

type Invitation struct {
	InviterPublicKey string
	InvitationID     string
	Status           InvitationStatus
	ItemPaths        []string
}

type InvitationStatus added in v0.0.11

type InvitationStatus int
const (
	Pending InvitationStatus = 0
	Accepted
	Rejected
)

type NotificationEvent added in v0.0.11

type NotificationEvent struct {
	Subject       string
	Body          string
	RelatedObject interface{}
	Type          NotificationType
	CreatedAt     int64
	ReadAt        int64
}

type NotificationType added in v0.0.11

type NotificationType int
const (
	InvitationType NotificationType = 0
)

type TextileEvent

type TextileEvent struct {
	BucketName string
}

func NewTextileEvent

func NewTextileEvent(bucketname string) TextileEvent

Jump to

Keyboard shortcuts

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