Documentation
¶
Overview ¶
Original source code: https://github.com/gvalkov/golang-evdev/blob/master/bin/evtest.go
Index ¶
- Constants
- Variables
- func AppendPrefix(s []string) []string
- func DeleteValueFromSlice(s []string, v string) []string
- func MapKeysToStringSlice(m *map[string]int64) []string
- func RunApp()
- func SortLogFields(s []string)
- func ToSort(s []string) []string
- func ToUpper(s []string) []string
- func ToUpperAndSort(s []string) []string
- type Config
- type Rule
Constants ¶
View Source
const ( DEFAULT_DEVICE_PATH = "/dev/input/event*" DEFAULT_EXEC_TIMEOUT = 60 DEFAULT_INPUT_TIMEOUT = 5 DEFAULT_LOG_LEVEL = "INFO" DEFAULT_LOG_TIME_FORMAT = "02.01.2006 15:04:05" DEFAULT_PARALLEL = 1 LOG_CONFIG_ERROR = "config error" LOG_DEVICE_NOT_SET = "input device not set. exit." LOG_DEVICE_OPEN_ERROR = "cannot open input device" LOG_INPUT_TIMEOUT = "input timeout" LOG_MONITOR_EVENTS = "monitor events" LOG_NO_DEVICES = "Cannot find any input devices. Exit!" LOG_NO_VALID_RULES = "no valid rules. exit." LOG_RULE_DEBUG = "rule debug" LOG_RULE_ERROR = "rule error" LOG_RULE_EXEC = "rule exec" LOG_RULE_EXEC_NOT_SET = "exec not set. skip." LOG_RULE_FAILED = "rule failed" LOG_RULE_HOLD_NOT_SET = "hold not set. skip." LOG_RULE_LIMIT = "rule limit" LOG_RULE_MATCHED = "rule matched" LOG_RULE_PRESS_NOT_SET = "press not set. skip." LOG_RULE_SIGNATURE_ERROR = "signature error" LOG_RULE_SUCCESS = "rule success" LOG_RULE_TIMEOUT = "rule timeout" LOG_VALID_RULES_FOUND = "valid rules" CONFIG_SAMPLE = `` /* 912-byte string literal not displayed */ )
Variables ¶
View Source
var ( APP_NAME = "gombokey" APP_VERSION = "devel" )
Functions ¶
func AppendPrefix ¶
append "KEY_" prefix to keys names (A -> KEY_A).
func DeleteValueFromSlice ¶
func MapKeysToStringSlice ¶
func SortLogFields ¶
func SortLogFields(s []string)
func ToUpperAndSort ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.