events

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 {
	Path string
	Info os.FileInfo
	Type FileEventType
}

func NewFileEvent

func NewFileEvent(path string, eventType FileEventType, info os.FileInfo) FileEvent

type FileEventType

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

	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