recall

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotEnabledError = errors.New("recall not enabled")
)

Functions

func GetUserName added in v1.4.0

func GetUserName() (string, error)

func IsRecallEnabled

func IsRecallEnabled(l *logrus.Logger, username string) (bool, error)

Types

type AppResult added in v1.5.0

type AppResult struct {
	Name string
	Path string
}

type ExtractResult

type ExtractResult struct {
	WindowTitle string
	WindowToken string
	Timestamp   time.Time
	Screenshot  []byte
}

type Recall

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

func New

func New(logger *logrus.Logger, userName string) (*Recall, error)

func (*Recall) ExtractApps added in v1.5.0

func (r *Recall) ExtractApps() ([]AppResult, error)

func (*Recall) ExtractImages

func (r *Recall) ExtractImages() ([]ExtractResult, error)

func (*Recall) ExtractWeb

func (r *Recall) ExtractWeb() ([]WebResult, error)

func (*Recall) GrabText added in v1.3.0

func (r *Recall) GrabText() ([]TextGrab, error)

type TextGrab added in v1.3.0

type TextGrab struct {
	ProgramName string
	Contents    string
}

type WebResult

type WebResult struct {
	Timestamp time.Time
	Domain    string
	URL       string
}

Jump to

Keyboard shortcuts

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