Versions in this module Expand all Collapse all v1 v1.0.1 Jun 5, 2024 v1.0.0 Jun 4, 2024 Changes in this version + var RemoteKeyCode_value = map[string]int32 + func CreateCertificate(name string, hosts []string, certPath string, keyPath string) error + func GetHash(serverPublicKey *rsa.PublicKey, clientPublicKey *rsa.PublicKey, code string) []byte + type RemoteKeyCode int32 + const RemoteKeyCode_KEYCODE_0 + const RemoteKeyCode_KEYCODE_1 + const RemoteKeyCode_KEYCODE_11 + const RemoteKeyCode_KEYCODE_12 + const RemoteKeyCode_KEYCODE_2 + const RemoteKeyCode_KEYCODE_3 + const RemoteKeyCode_KEYCODE_3D_MODE + const RemoteKeyCode_KEYCODE_4 + const RemoteKeyCode_KEYCODE_5 + const RemoteKeyCode_KEYCODE_6 + const RemoteKeyCode_KEYCODE_7 + const RemoteKeyCode_KEYCODE_8 + const RemoteKeyCode_KEYCODE_9 + const RemoteKeyCode_KEYCODE_A + const RemoteKeyCode_KEYCODE_ALL_APPS + const RemoteKeyCode_KEYCODE_ALT_LEFT + const RemoteKeyCode_KEYCODE_ALT_RIGHT + const RemoteKeyCode_KEYCODE_APOSTROPHE + const RemoteKeyCode_KEYCODE_APP_SWITCH + const RemoteKeyCode_KEYCODE_ASSIST + const RemoteKeyCode_KEYCODE_AT + const RemoteKeyCode_KEYCODE_AVR_INPUT + const RemoteKeyCode_KEYCODE_AVR_POWER + const RemoteKeyCode_KEYCODE_B + const RemoteKeyCode_KEYCODE_BACK + const RemoteKeyCode_KEYCODE_BACKSLASH + const RemoteKeyCode_KEYCODE_BOOKMARK + const RemoteKeyCode_KEYCODE_BREAK + const RemoteKeyCode_KEYCODE_BRIGHTNESS_DOWN + const RemoteKeyCode_KEYCODE_BRIGHTNESS_UP + const RemoteKeyCode_KEYCODE_BUTTON_1 + const RemoteKeyCode_KEYCODE_BUTTON_10 + const RemoteKeyCode_KEYCODE_BUTTON_11 + const RemoteKeyCode_KEYCODE_BUTTON_12 + const RemoteKeyCode_KEYCODE_BUTTON_13 + const RemoteKeyCode_KEYCODE_BUTTON_14 + const RemoteKeyCode_KEYCODE_BUTTON_15 + const RemoteKeyCode_KEYCODE_BUTTON_16 + const RemoteKeyCode_KEYCODE_BUTTON_2 + const RemoteKeyCode_KEYCODE_BUTTON_3 + const RemoteKeyCode_KEYCODE_BUTTON_4 + const RemoteKeyCode_KEYCODE_BUTTON_5 + const RemoteKeyCode_KEYCODE_BUTTON_6 + const RemoteKeyCode_KEYCODE_BUTTON_7 + const RemoteKeyCode_KEYCODE_BUTTON_8 + const RemoteKeyCode_KEYCODE_BUTTON_9 + const RemoteKeyCode_KEYCODE_BUTTON_A + const RemoteKeyCode_KEYCODE_BUTTON_B + const RemoteKeyCode_KEYCODE_BUTTON_C + const RemoteKeyCode_KEYCODE_BUTTON_L1 + const RemoteKeyCode_KEYCODE_BUTTON_L2 + const RemoteKeyCode_KEYCODE_BUTTON_MODE + const RemoteKeyCode_KEYCODE_BUTTON_R1 + const RemoteKeyCode_KEYCODE_BUTTON_R2 + const RemoteKeyCode_KEYCODE_BUTTON_SELECT + const RemoteKeyCode_KEYCODE_BUTTON_START + const RemoteKeyCode_KEYCODE_BUTTON_THUMBL + const RemoteKeyCode_KEYCODE_BUTTON_THUMBR + const RemoteKeyCode_KEYCODE_BUTTON_X + const RemoteKeyCode_KEYCODE_BUTTON_Y + const RemoteKeyCode_KEYCODE_BUTTON_Z + const RemoteKeyCode_KEYCODE_C + const RemoteKeyCode_KEYCODE_CALCULATOR + const RemoteKeyCode_KEYCODE_CALENDAR + const RemoteKeyCode_KEYCODE_CALL + const RemoteKeyCode_KEYCODE_CAMERA + const RemoteKeyCode_KEYCODE_CAPS_LOCK + const RemoteKeyCode_KEYCODE_CAPTIONS + const RemoteKeyCode_KEYCODE_CHANNEL_DOWN + const RemoteKeyCode_KEYCODE_CHANNEL_UP + const RemoteKeyCode_KEYCODE_CLEAR + const RemoteKeyCode_KEYCODE_COMMA + const RemoteKeyCode_KEYCODE_CONTACTS + const RemoteKeyCode_KEYCODE_COPY + const RemoteKeyCode_KEYCODE_CTRL_LEFT + const RemoteKeyCode_KEYCODE_CTRL_RIGHT + const RemoteKeyCode_KEYCODE_CUT + const RemoteKeyCode_KEYCODE_D + const RemoteKeyCode_KEYCODE_DEL + const RemoteKeyCode_KEYCODE_DEMO_APP_1 + const RemoteKeyCode_KEYCODE_DEMO_APP_2 + const RemoteKeyCode_KEYCODE_DEMO_APP_3 + const RemoteKeyCode_KEYCODE_DEMO_APP_4 + const RemoteKeyCode_KEYCODE_DPAD_CENTER + const RemoteKeyCode_KEYCODE_DPAD_DOWN + const RemoteKeyCode_KEYCODE_DPAD_DOWN_LEFT + const RemoteKeyCode_KEYCODE_DPAD_DOWN_RIGHT + const RemoteKeyCode_KEYCODE_DPAD_LEFT + const RemoteKeyCode_KEYCODE_DPAD_RIGHT + const RemoteKeyCode_KEYCODE_DPAD_UP + const RemoteKeyCode_KEYCODE_DPAD_UP_LEFT + const RemoteKeyCode_KEYCODE_DPAD_UP_RIGHT + const RemoteKeyCode_KEYCODE_DVR + const RemoteKeyCode_KEYCODE_E + const RemoteKeyCode_KEYCODE_EISU + const RemoteKeyCode_KEYCODE_ENDCALL + const RemoteKeyCode_KEYCODE_ENTER + const RemoteKeyCode_KEYCODE_ENVELOPE + const RemoteKeyCode_KEYCODE_EQUALS + const RemoteKeyCode_KEYCODE_ESCAPE + const RemoteKeyCode_KEYCODE_EXPLORER + const RemoteKeyCode_KEYCODE_F + const RemoteKeyCode_KEYCODE_F1 + const RemoteKeyCode_KEYCODE_F10 + const RemoteKeyCode_KEYCODE_F11 + const RemoteKeyCode_KEYCODE_F12 + const RemoteKeyCode_KEYCODE_F2 + const RemoteKeyCode_KEYCODE_F3 + const RemoteKeyCode_KEYCODE_F4 + const RemoteKeyCode_KEYCODE_F5 + const RemoteKeyCode_KEYCODE_F6 + const RemoteKeyCode_KEYCODE_F7 + const RemoteKeyCode_KEYCODE_F8 + const RemoteKeyCode_KEYCODE_F9 + const RemoteKeyCode_KEYCODE_FEATURED_APP_1 + const RemoteKeyCode_KEYCODE_FEATURED_APP_2 + const RemoteKeyCode_KEYCODE_FEATURED_APP_3 + const RemoteKeyCode_KEYCODE_FEATURED_APP_4 + const RemoteKeyCode_KEYCODE_FOCUS + const RemoteKeyCode_KEYCODE_FORWARD + const RemoteKeyCode_KEYCODE_FORWARD_DEL + const RemoteKeyCode_KEYCODE_FUNCTION + const RemoteKeyCode_KEYCODE_G + const RemoteKeyCode_KEYCODE_GRAVE + const RemoteKeyCode_KEYCODE_GUIDE + const RemoteKeyCode_KEYCODE_H + const RemoteKeyCode_KEYCODE_HEADSETHOOK + const RemoteKeyCode_KEYCODE_HELP + const RemoteKeyCode_KEYCODE_HENKAN + const RemoteKeyCode_KEYCODE_HOME + const RemoteKeyCode_KEYCODE_I + const RemoteKeyCode_KEYCODE_INFO + const RemoteKeyCode_KEYCODE_INSERT + const RemoteKeyCode_KEYCODE_J + const RemoteKeyCode_KEYCODE_K + const RemoteKeyCode_KEYCODE_KANA + const RemoteKeyCode_KEYCODE_KATAKANA_HIRAGANA + const RemoteKeyCode_KEYCODE_L + const RemoteKeyCode_KEYCODE_LANGUAGE_SWITCH + const RemoteKeyCode_KEYCODE_LAST_CHANNEL + const RemoteKeyCode_KEYCODE_LEFT_BRACKET + const RemoteKeyCode_KEYCODE_M + const RemoteKeyCode_KEYCODE_MANNER_MODE + const RemoteKeyCode_KEYCODE_MEDIA_AUDIO_TRACK + const RemoteKeyCode_KEYCODE_MEDIA_CLOSE + const RemoteKeyCode_KEYCODE_MEDIA_EJECT + const RemoteKeyCode_KEYCODE_MEDIA_FAST_FORWARD + const RemoteKeyCode_KEYCODE_MEDIA_NEXT + const RemoteKeyCode_KEYCODE_MEDIA_PAUSE + const RemoteKeyCode_KEYCODE_MEDIA_PLAY + const RemoteKeyCode_KEYCODE_MEDIA_PLAY_PAUSE + const RemoteKeyCode_KEYCODE_MEDIA_PREVIOUS + const RemoteKeyCode_KEYCODE_MEDIA_RECORD + const RemoteKeyCode_KEYCODE_MEDIA_REWIND + const RemoteKeyCode_KEYCODE_MEDIA_SKIP_BACKWARD + const RemoteKeyCode_KEYCODE_MEDIA_SKIP_FORWARD + const RemoteKeyCode_KEYCODE_MEDIA_STEP_BACKWARD + const RemoteKeyCode_KEYCODE_MEDIA_STEP_FORWARD + const RemoteKeyCode_KEYCODE_MEDIA_STOP + const RemoteKeyCode_KEYCODE_MEDIA_TOP_MENU + const RemoteKeyCode_KEYCODE_MENU + const RemoteKeyCode_KEYCODE_META_LEFT + const RemoteKeyCode_KEYCODE_META_RIGHT + const RemoteKeyCode_KEYCODE_MINUS + const RemoteKeyCode_KEYCODE_MOVE_END + const RemoteKeyCode_KEYCODE_MOVE_HOME + const RemoteKeyCode_KEYCODE_MUHENKAN + const RemoteKeyCode_KEYCODE_MUSIC + const RemoteKeyCode_KEYCODE_MUTE + const RemoteKeyCode_KEYCODE_N + const RemoteKeyCode_KEYCODE_NAVIGATE_IN + const RemoteKeyCode_KEYCODE_NAVIGATE_NEXT + const RemoteKeyCode_KEYCODE_NAVIGATE_OUT + const RemoteKeyCode_KEYCODE_NAVIGATE_PREVIOUS + const RemoteKeyCode_KEYCODE_NOTIFICATION + const RemoteKeyCode_KEYCODE_NUM + const RemoteKeyCode_KEYCODE_NUMPAD_0 + const RemoteKeyCode_KEYCODE_NUMPAD_1 + const RemoteKeyCode_KEYCODE_NUMPAD_2 + const RemoteKeyCode_KEYCODE_NUMPAD_3 + const RemoteKeyCode_KEYCODE_NUMPAD_4 + const RemoteKeyCode_KEYCODE_NUMPAD_5 + const RemoteKeyCode_KEYCODE_NUMPAD_6 + const RemoteKeyCode_KEYCODE_NUMPAD_7 + const RemoteKeyCode_KEYCODE_NUMPAD_8 + const RemoteKeyCode_KEYCODE_NUMPAD_9 + const RemoteKeyCode_KEYCODE_NUMPAD_ADD + const RemoteKeyCode_KEYCODE_NUMPAD_COMMA + const RemoteKeyCode_KEYCODE_NUMPAD_DIVIDE + const RemoteKeyCode_KEYCODE_NUMPAD_DOT + const RemoteKeyCode_KEYCODE_NUMPAD_ENTER + const RemoteKeyCode_KEYCODE_NUMPAD_EQUALS + const RemoteKeyCode_KEYCODE_NUMPAD_LEFT_PAREN + const RemoteKeyCode_KEYCODE_NUMPAD_MULTIPLY + const RemoteKeyCode_KEYCODE_NUMPAD_RIGHT_PAREN + const RemoteKeyCode_KEYCODE_NUMPAD_SUBTRACT + const RemoteKeyCode_KEYCODE_NUM_LOCK + const RemoteKeyCode_KEYCODE_O + const RemoteKeyCode_KEYCODE_P + const RemoteKeyCode_KEYCODE_PAGE_DOWN + const RemoteKeyCode_KEYCODE_PAGE_UP + const RemoteKeyCode_KEYCODE_PAIRING + const RemoteKeyCode_KEYCODE_PASTE + const RemoteKeyCode_KEYCODE_PERIOD + const RemoteKeyCode_KEYCODE_PICTSYMBOLS + const RemoteKeyCode_KEYCODE_PLUS + const RemoteKeyCode_KEYCODE_POUND + const RemoteKeyCode_KEYCODE_POWER + const RemoteKeyCode_KEYCODE_PROFILE_SWITCH + const RemoteKeyCode_KEYCODE_PROG_BLUE + const RemoteKeyCode_KEYCODE_PROG_GREEN + const RemoteKeyCode_KEYCODE_PROG_RED + const RemoteKeyCode_KEYCODE_PROG_YELLOW + const RemoteKeyCode_KEYCODE_Q + const RemoteKeyCode_KEYCODE_R + const RemoteKeyCode_KEYCODE_REFRESH + const RemoteKeyCode_KEYCODE_RIGHT_BRACKET + const RemoteKeyCode_KEYCODE_RO + const RemoteKeyCode_KEYCODE_S + const RemoteKeyCode_KEYCODE_SCROLL_LOCK + const RemoteKeyCode_KEYCODE_SEARCH + const RemoteKeyCode_KEYCODE_SEMICOLON + const RemoteKeyCode_KEYCODE_SETTINGS + const RemoteKeyCode_KEYCODE_SHIFT_LEFT + const RemoteKeyCode_KEYCODE_SHIFT_RIGHT + const RemoteKeyCode_KEYCODE_SLASH + const RemoteKeyCode_KEYCODE_SLEEP + const RemoteKeyCode_KEYCODE_SOFT_LEFT + const RemoteKeyCode_KEYCODE_SOFT_RIGHT + const RemoteKeyCode_KEYCODE_SOFT_SLEEP + const RemoteKeyCode_KEYCODE_SPACE + const RemoteKeyCode_KEYCODE_STAR + const RemoteKeyCode_KEYCODE_STB_INPUT + const RemoteKeyCode_KEYCODE_STB_POWER + const RemoteKeyCode_KEYCODE_STEM_1 + const RemoteKeyCode_KEYCODE_STEM_2 + const RemoteKeyCode_KEYCODE_STEM_3 + const RemoteKeyCode_KEYCODE_STEM_PRIMARY + const RemoteKeyCode_KEYCODE_SWITCH_CHARSET + const RemoteKeyCode_KEYCODE_SYM + const RemoteKeyCode_KEYCODE_SYSRQ + const RemoteKeyCode_KEYCODE_SYSTEM_NAVIGATION_DOWN + const RemoteKeyCode_KEYCODE_SYSTEM_NAVIGATION_LEFT + const RemoteKeyCode_KEYCODE_SYSTEM_NAVIGATION_RIGHT + const RemoteKeyCode_KEYCODE_SYSTEM_NAVIGATION_UP + const RemoteKeyCode_KEYCODE_T + const RemoteKeyCode_KEYCODE_TAB + const RemoteKeyCode_KEYCODE_THUMBS_DOWN + const RemoteKeyCode_KEYCODE_THUMBS_UP + const RemoteKeyCode_KEYCODE_TV + const RemoteKeyCode_KEYCODE_TV_ANTENNA_CABLE + const RemoteKeyCode_KEYCODE_TV_AUDIO_DESCRIPTION + const RemoteKeyCode_KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN + const RemoteKeyCode_KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP + const RemoteKeyCode_KEYCODE_TV_CONTENTS_MENU + const RemoteKeyCode_KEYCODE_TV_DATA_SERVICE + const RemoteKeyCode_KEYCODE_TV_INPUT + const RemoteKeyCode_KEYCODE_TV_INPUT_COMPONENT_1 + const RemoteKeyCode_KEYCODE_TV_INPUT_COMPONENT_2 + const RemoteKeyCode_KEYCODE_TV_INPUT_COMPOSITE_1 + const RemoteKeyCode_KEYCODE_TV_INPUT_COMPOSITE_2 + const RemoteKeyCode_KEYCODE_TV_INPUT_HDMI_1 + const RemoteKeyCode_KEYCODE_TV_INPUT_HDMI_2 + const RemoteKeyCode_KEYCODE_TV_INPUT_HDMI_3 + const RemoteKeyCode_KEYCODE_TV_INPUT_HDMI_4 + const RemoteKeyCode_KEYCODE_TV_INPUT_VGA_1 + const RemoteKeyCode_KEYCODE_TV_MEDIA_CONTEXT_MENU + const RemoteKeyCode_KEYCODE_TV_NETWORK + const RemoteKeyCode_KEYCODE_TV_NUMBER_ENTRY + const RemoteKeyCode_KEYCODE_TV_POWER + const RemoteKeyCode_KEYCODE_TV_RADIO_SERVICE + const RemoteKeyCode_KEYCODE_TV_SATELLITE + const RemoteKeyCode_KEYCODE_TV_SATELLITE_BS + const RemoteKeyCode_KEYCODE_TV_SATELLITE_CS + const RemoteKeyCode_KEYCODE_TV_SATELLITE_SERVICE + const RemoteKeyCode_KEYCODE_TV_TELETEXT + const RemoteKeyCode_KEYCODE_TV_TERRESTRIAL_ANALOG + const RemoteKeyCode_KEYCODE_TV_TERRESTRIAL_DIGITAL + const RemoteKeyCode_KEYCODE_TV_TIMER_PROGRAMMING + const RemoteKeyCode_KEYCODE_TV_ZOOM_MODE + const RemoteKeyCode_KEYCODE_U + const RemoteKeyCode_KEYCODE_UNKNOWN + const RemoteKeyCode_KEYCODE_V + const RemoteKeyCode_KEYCODE_VIDEO_APP_1 + const RemoteKeyCode_KEYCODE_VIDEO_APP_2 + const RemoteKeyCode_KEYCODE_VIDEO_APP_3 + const RemoteKeyCode_KEYCODE_VIDEO_APP_4 + const RemoteKeyCode_KEYCODE_VIDEO_APP_5 + const RemoteKeyCode_KEYCODE_VIDEO_APP_6 + const RemoteKeyCode_KEYCODE_VIDEO_APP_7 + const RemoteKeyCode_KEYCODE_VIDEO_APP_8 + const RemoteKeyCode_KEYCODE_VOICE_ASSIST + const RemoteKeyCode_KEYCODE_VOLUME_DOWN + const RemoteKeyCode_KEYCODE_VOLUME_MUTE + const RemoteKeyCode_KEYCODE_VOLUME_UP + const RemoteKeyCode_KEYCODE_W + const RemoteKeyCode_KEYCODE_WAKEUP + const RemoteKeyCode_KEYCODE_WINDOW + const RemoteKeyCode_KEYCODE_X + const RemoteKeyCode_KEYCODE_Y + const RemoteKeyCode_KEYCODE_YEN + const RemoteKeyCode_KEYCODE_Z + const RemoteKeyCode_KEYCODE_ZENKAKU_HANKAKU + const RemoteKeyCode_KEYCODE_ZOOM_IN + const RemoteKeyCode_KEYCODE_ZOOM_OUT + func ParseKeys(data string) []RemoteKeyCode