Documentation ¶
Overview ¶
Package screenshot monitors filesystem events for screenshots added to directories and emits a screenshot event
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Screenshot ¶
type Screenshot struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Timestamp time.Time `json:"timestamp"` OpName string `json:"op_name"` Description string `json:"description"` Filename string `json:"filename"` Hash string `json:"hash"` LocalPath string `json:"local_path"` }
Screenshot describes a screenshot event
func (*Screenshot) GetDescription ¶
func (sc *Screenshot) GetDescription() (ok bool, err error)
GetDescription gets a description string from user input via UI textbox
func (*Screenshot) HashFile ¶
func (sc *Screenshot) HashFile() error
HashFile hashes a file with md5 and adds the hash to a Screenshot
func (*Screenshot) Rename ¶
func (sc *Screenshot) Rename(oldName string)
Rename renames a screenshot to a given description
Click to show internal directories.
Click to hide internal directories.