notifier

package
v0.0.0-...-3b3aaaf Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: ISC Imports: 11 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDebugNotifier

func SetupDebugNotifier(notifiers *sync.Map)

SetupDebugNotifier configures a notifier to log all touch events

func SetupLibnotifyNotifier

func SetupLibnotifyNotifier(notifiers *sync.Map)

SetupLibnotifyNotifier configures a notifier to show all touch requests with libnotify

func SetupStdoutNotifier

func SetupStdoutNotifier(notifiers *sync.Map)

SetupStdoutNotifier configures a notifier to log to stdout

func SetupUnixSocketNotifier

func SetupUnixSocketNotifier(notifiers *sync.Map, exits *sync.Map)

SetupUnixSocketNotifier configures a unix socket to transmit touch requests to other apps

Types

type Message

type Message string
const (
	GPG_ON   Message = "GPG_1"
	GPG_OFF  Message = "GPG_0"
	U2F_ON   Message = "U2F_1"
	U2F_OFF  Message = "U2F_0"
	HMAC_ON  Message = "MAC_1"
	HMAC_OFF Message = "MAC_0"
)

All messages have a fixed length of 5 chars to simplify code on the receiving side

Jump to

Keyboard shortcuts

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