make keylogger optional

This commit is contained in:
KingKDot
2026-05-10 17:06:39 -05:00
parent f5f4c07f0d
commit 05eb7385c1
11 changed files with 78 additions and 16 deletions
@@ -0,0 +1,24 @@
//go:build nokeylogger
// +build nokeylogger
package keylogger
import "time"
type Keylogger struct{}
type FileInfo struct {
Name string
Size int64
Date time.Time
}
func New() *Keylogger { return nil }
func (k *Keylogger) Start() error { return nil }
func (k *Keylogger) Stop() {}
func (k *Keylogger) ListFiles() ([]FileInfo, error) { return nil, nil }
func (k *Keylogger) ReadFile(string) ([]byte, error) { return nil, nil }
func (k *Keylogger) ClearAll() error { return nil }
func (k *Keylogger) DeleteFile(string) error { return nil }
func (k *Keylogger) FlushNow() {}