events

package
v0.4.22-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ChunkEvent

func ChunkEvent(snapshotID [32]byte, checksum [32]byte) Chunk

func (Chunk) Timestamp

func (e Chunk) Timestamp() time.Time

type ChunkCorrupted

type ChunkCorrupted struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ChunkCorruptedEvent

func ChunkCorruptedEvent(snapshotID [32]byte, checksum [32]byte) ChunkCorrupted

func (ChunkCorrupted) Timestamp

func (e ChunkCorrupted) Timestamp() time.Time

type ChunkMissing

type ChunkMissing struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ChunkMissingEvent

func ChunkMissingEvent(snapshotID [32]byte, checksum [32]byte) ChunkMissing

func (ChunkMissing) Timestamp

func (e ChunkMissing) Timestamp() time.Time

type ChunkOK

type ChunkOK struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ChunkOKEvent

func ChunkOKEvent(snapshotID [32]byte, checksum [32]byte) ChunkOK

func (ChunkOK) Timestamp

func (e ChunkOK) Timestamp() time.Time

type Directory

type Directory struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func DirectoryEvent

func DirectoryEvent(snapshotID [32]byte, pathname string) Directory

func (Directory) Timestamp

func (e Directory) Timestamp() time.Time

type DirectoryCorrupted

type DirectoryCorrupted struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func DirectoryCorruptedEvent

func DirectoryCorruptedEvent(snapshotID [32]byte, pathname string) DirectoryCorrupted

func (DirectoryCorrupted) Timestamp

func (e DirectoryCorrupted) Timestamp() time.Time

type DirectoryError

type DirectoryError struct {
	SnapshotID [32]byte
	Pathname   string
	Message    string
	// contains filtered or unexported fields
}

func DirectoryErrorEvent

func DirectoryErrorEvent(snapshotID [32]byte, pathname string, message string) DirectoryError

func (DirectoryError) Timestamp

func (e DirectoryError) Timestamp() time.Time

type DirectoryMissing

type DirectoryMissing struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func DirectoryMissingEvent

func DirectoryMissingEvent(snapshotID [32]byte, pathname string) DirectoryMissing

func (DirectoryMissing) Timestamp

func (e DirectoryMissing) Timestamp() time.Time

type DirectoryOK

type DirectoryOK struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func DirectoryOKEvent

func DirectoryOKEvent(snapshotID [32]byte, pathname string) DirectoryOK

func (DirectoryOK) Timestamp

func (e DirectoryOK) Timestamp() time.Time

type Done

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

func DoneEvent

func DoneEvent() Done

func (Done) Timestamp

func (e Done) Timestamp() time.Time

type Error

type Error struct {
	SnapshotID [32]byte
	Message    string
	// contains filtered or unexported fields
}

func ErrorEvent

func ErrorEvent(snapshotID [32]byte, message string) Error

func (Error) Timestamp

func (e Error) Timestamp() time.Time

type Event

type Event interface {
	Timestamp() time.Time
}

type File

type File struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func FileEvent

func FileEvent(snapshotID [32]byte, pathname string) File

func (File) Timestamp

func (e File) Timestamp() time.Time

type FileCorrupted

type FileCorrupted struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func FileCorruptedEvent

func FileCorruptedEvent(snapshotID [32]byte, pathname string) FileCorrupted

func (FileCorrupted) Timestamp

func (e FileCorrupted) Timestamp() time.Time

type FileError

type FileError struct {
	SnapshotID [32]byte
	Pathname   string
	Message    string
	// contains filtered or unexported fields
}

func FileErrorEvent

func FileErrorEvent(snapshotID [32]byte, pathname string, message string) FileError

func (FileError) Timestamp

func (e FileError) Timestamp() time.Time

type FileMissing

type FileMissing struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func FileMissingdEvent

func FileMissingdEvent(snapshotID [32]byte, pathname string) FileMissing

func (FileMissing) Timestamp

func (e FileMissing) Timestamp() time.Time

type FileOK

type FileOK struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func FileOKEvent

func FileOKEvent(snapshotID [32]byte, pathname string) FileOK

func (FileOK) Timestamp

func (e FileOK) Timestamp() time.Time

type Object

type Object struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ObjectEvent

func ObjectEvent(snapshotID [32]byte, checksum [32]byte) Object

func (Object) Timestamp

func (e Object) Timestamp() time.Time

type ObjectCorrupted

type ObjectCorrupted struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ObjectCorruptedEvent

func ObjectCorruptedEvent(snapshotID [32]byte, checksum [32]byte) ObjectCorrupted

func (ObjectCorrupted) Timestamp

func (e ObjectCorrupted) Timestamp() time.Time

type ObjectMissing

type ObjectMissing struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ObjectMissingEvent

func ObjectMissingEvent(snapshotID [32]byte, checksum [32]byte) ObjectMissing

func (ObjectMissing) Timestamp

func (e ObjectMissing) Timestamp() time.Time

type ObjectOK

type ObjectOK struct {
	SnapshotID [32]byte
	Checksum   [32]byte
	// contains filtered or unexported fields
}

func ObjectOKEvent

func ObjectOKEvent(snapshotID [32]byte, checksum [32]byte) ObjectOK

func (ObjectOK) Timestamp

func (e ObjectOK) Timestamp() time.Time

type Path

type Path struct {
	SnapshotID [32]byte
	Pathname   string
	// contains filtered or unexported fields
}

func PathEvent

func PathEvent(snapshotID [32]byte, pathname string) Path

func (Path) Timestamp

func (e Path) Timestamp() time.Time

type PathError

type PathError struct {
	SnapshotID [32]byte
	Pathname   string
	Message    string
	// contains filtered or unexported fields
}

func PathErrorEvent

func PathErrorEvent(snapshotID [32]byte, pathname string, message string) PathError

func (PathError) Timestamp

func (e PathError) Timestamp() time.Time

type Receiver

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

func New

func New() *Receiver

func (*Receiver) Close

func (er *Receiver) Close()

func (*Receiver) Listen

func (er *Receiver) Listen() <-chan interface{}

func (*Receiver) Send

func (er *Receiver) Send(event interface{})

type Start

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

func StartEvent

func StartEvent() Start

func (Start) Timestamp

func (e Start) Timestamp() time.Time

type Warning

type Warning struct {
	SnapshotID [32]byte
	Message    string
	// contains filtered or unexported fields
}

func WarningEvent

func WarningEvent(snapshotID [32]byte, message string) Warning

func (Warning) Timestamp

func (e Warning) Timestamp() time.Time

Jump to

Keyboard shortcuts

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