Documentation ¶
Index ¶
- Constants
- func FourCCAsString(fourCC uint32) string
- type AckInfo
- type ConnectModule
- type DantePacket
- type DantePacketCommand
- type DantePacketHandler
- type DockLinkLayer
- type DockModule
- type LoadPackageModule
- type MNPConnectionLayer
- type MNPPacketLayer
- type OutstandingPacket
- type Packet
- type PacketType
- type Range
- type StorageModule
- type Value
Constants ¶
View Source
const ( CONN_IDLE = iota CONN_INITIATE CONN_DESKTOP_INFO CONN_WHICH_ICONS CONN_SET_TIMEOUT CONN_PASSWORD CONN_UP )
View Source
const ( SESSION_NONE byte = 0 SESSION_SETTING_UP byte = 1 SESSION_SYNCHRONIZE byte = 2 SESSION_RESTORE byte = 3 SESSION_LOAD_PACKAGE byte = 4 SESSION_TEST_COMM byte = 5 SESSION_LOAD_PATCH byte = 6 SESSION_UPDATING_STORES byte = 7 )
View Source
const ( DESKTOP_MAC byte = 0 DESKTOP_WIN byte = 1 PROTOCOL_VERSION byte = 10 DOCK_TIMEOUT byte = 5 )
View Source
const ( BACKUP_ICON byte = 1 RESTORE_ICON byte = 2 INSTALL_ICON byte = 4 IMPORT_ICON byte = 8 SYNC_ICON byte = 16 KEYBOARD_ICON byte = 32 ALL_ICONS byte = 63 )
View Source
const ( APP_DATA = 0x00000001 APP_QUIT = 0x00000002 APP_DISCONNECT = 0x00000003 APP_GET_DEFAULT_STORE = 0x00000004 APP_GET_STORE_NAMES = 0x00000005 APP_QUERY_SOUP = 0x00000006 APP_CURSOR_FREE = 0x00000007 APP_CURSOR_NEXT = 0x00000008 APP_CURSOR_ENTRY = 0x00000009 APP_SET_CURRENT_STORE = 0x0000000a APP_SET_CURRENT_SOUP = 0x0000000b APP_GET_SOUP_NAMES = 0x0000000c APP_DELETE_ENTRIES = 0x0000000d APP_ADD_ENTRY = 0x0000000e APP_SEND_SOUP = 0x0000000f LAST_APP_COMMAND = 0x32323232 NEWT = 0x6e657774 DOCK = 0x646f636b LONGDATA = 0x6c647461 REF_RESULT = 0x72656620 QUERY = 0x71757279 CURSOR_GOTO_KEY = 0x676f746f CURSOR_MAP = 0x636d6170 CURSOR_ENTRY = 0x63727372 CURSOR_MOVE = 0x6d6f7665 CURSOR_NEXT = 0x6e657874 CURSOR_PREV = 0x70726576 CURSOR_RESET = 0x72736574 CURSOR_RESET_TO_END = 0x72656e64 CURSOR_COUNT_ENTRIES = 0x636e7420 CURSOR_WHICH_END = 0x77686368 CURSOR_FREE = 0x63667265 KEYBOARD_CHAR = 0x6b626463 DESKTOP_INFO = 0x64696e66 KEYBOARD_STRING = 0x6b626473 START_KEYBOARD_PASSTHROUGH = 0x6b796264 DEFAULT_STORE = 0x64667374 APP_NAMES = 0x6170706e IMPORT_PARAMETER_SLIP_RESULT = 0x69736c72 PACKAGE_INFO = 0x70696e66 SET_BASE_ID = 0x62617365 BACKUP_IDS = 0x62696473 BACKUP_SOUP_DONE = 0x6273646e SOUP_NOT_DIRTY = 0x6e646972 SYNCHRONIZE = 0x73796e63 CALL_RESULT = 0x63726573 REMOVE_PACKAGE = 0x726d7670 RESULT_STRING = 0x72657373 SOURCE_VERSION = 0x73766572 ADD_ENTRY_WITH_UNIQUE_ID = 0x61756e69 GET_PACKAGE_INFO = 0x6770696e GET_DEFAULT_STORE = 0x67646673 CREATE_DEFAULT_SOUP = 0x63647370 GET_APP_NAMES = 0x67617070 REG_PROTOCOL_EXTENSION = 0x70657874 REMOVE_PROTOCOL_EXTENSION = 0x72706578 SET_STORE_SIGNATURE = 0x73736967 SET_SOUP_SIGNATURE = 0x73736f73 IMPORT_PARAMETERS_SLIP = 0x69736c70 GET_PASSWORD = 0x67707764 SEND_SOUP = 0x736e6473 BACKUP_SOUP = 0x626b7370 SET_STORE_NAME = 0x73736e61 CALL_GLOBAL_FUNCTION = 0x6367666e CALL_ROOT_METHOD = 0x63726d64 SET_VBO_COMPRESSION = 0x6376626f RESTORE_PATCH = 0x72706174 OPERATION_DONE = 0x6f70646e OPERATION_CANCELED = 0x6f70636e OP_CANCELED_ACK = 0x6f636161 REF_TEST = 0x72747374 UNKNOWN_COMMAND = 0x756e6b6e PASSWORD = 0x70617373 NEWTON_NAME = 0x6e616d65 NEWTON_INFO = 0x6e696e66 INITIATE_DOCKING = 0x646f636b WHICH_ICONS = 0x7769636e REQUEST_TO_SYNC = 0x7373796e SYNC_OPTIONS = 0x736f7074 GET_SYNC_OPTIONS = 0x6773796e SYNC_RESULTS = 0x73726573 SET_STORE_GET_NAMES = 0x7373676e SET_SOUP_GET_INFO = 0x73736769 GET_CHANGED_INDEX = 0x63696478 GET_CHANGED_INFO = 0x63696e66 REQUEST_TO_BROWSE = 0x72746272 GET_DEVICES = 0x67646576 GET_DEFAULT_PATH = 0x64707468 GET_FILES_AND_FOLDERS = 0x6766696c SET_PATH = 0x73707468 GET_FILE_INFO = 0x6766696e INTERNAL_STORE = 0x6973746f RESOLVE_ALIAS = 0x72616c69 GET_FILTERS = 0x67666c74 SET_FILTER = 0x73666c74 SET_DRIVE = 0x73647276 DEVICES = 0x64657673 FILTERS = 0x66696c74 PATH = 0x70617468 FILES_AND_FOLDERS = 0x66696c65 FILE_INFO = 0x66696e66 GET_INTERNAL_STORE = 0x67697374 ALIAS_RESOLVED = 0x616c6972 IMPORT_FILE = 0x696d7074 SET_TRANSLATOR = 0x7472616e TRANSLATOR_LIST = 0x74726e6c IMPORTING = 0x64696d70 SOUPS_CHANGED = 0x73636867 SET_STORE_TO_DEFAULT = 0x73646566 LOAD_PACKAGE_FILE = 0x6c70666c RESTORE_FILE = 0x7273666c GET_RESTORE_OPTIONS = 0x67726f70 RESTORE_ALL = 0x72616c6c RESTORE_OPTIONS = 0x726f7074 RESTORE_PACKAGE = 0x72706b67 REQUEST_TO_RESTORE = 0x72727374 REQUEST_TO_INSTALL = 0x72696e73 REQUEST_TO_DOCK = 0x7274646b CURRENT_TIME = 0x74696d65 STORE_NAMES = 0x73746f72 SOUP_NAMES = 0x736f7570 SOUP_IDS = 0x73696473 CHANGED_IDS = 0x63696473 RESULT = 0x64726573 ADDED_ID = 0x61646964 ENTRY = 0x656e7472 PACKAGE_ID_LIST = 0x70696473 PACKAGE = 0x61706b67 INDEX_DESCRIPTION = 0x696e6478 INHERITANCE = 0x64696e68 PATCHES = 0x70617463 LAST_SYNC_TIME = 0x73746d65 GET_STORE_NAMES = 0x6773746f GET_SOUP_NAMES = 0x67657473 SET_CURRENT_STORE = 0x7373746f SET_CURRENT_SOUP = 0x73736f75 GET_SOUP_IDS = 0x67696473 DELETE_ENTRIES = 0x64656c65 ADD_ENTRY = 0x61646465 RETURN_ENTRY = 0x72657465 RETURN_CHANGED_ENTRY = 0x7263656e EMPTY_SOUP = 0x65736f75 DELETE_SOUP = 0x64736f75 LOAD_PACKAGE = 0x6c706b67 GET_PACKAGE_IDS = 0x67706964 BACKUP_PACKAGES = 0x62706b67 DISCONNECT = 0x64697363 DELETE_ALL_PACKAGES = 0x64706b67 GET_INDEX_DESCRIPTION = 0x67696e64 CREATE_SOUP = 0x63736f70 GET_INHERITANCE = 0x67696e68 SET_TIMEOUT = 0x7374696d GET_PATCHES = 0x67706174 DELETE_PKG_DIR = 0x64706b64 GET_SOUP_INFO = 0x6773696e CHANGED_ENTRY = 0x63656e74 TEST = 0x74657374 HELLO = 0x68656c6f SOUP_INFO = 0x73696e66 )
View Source
const ( LOAD_PACKAGE_IDLE = iota LOAD_PACKAGE_UP )
View Source
const ( IDLE = iota LINK_REQUEST DATA_PHASE DISCONNECTING )
View Source
const ( LR byte = 1 LD byte = 2 LT byte = 4 LA byte = 5 )
View Source
const ( OUTSIDE_PACKET = iota START_SYN START_DLE INSIDE_PACKET DLE_IN_PACKET END_ETX END_CRC1 PACKET_END )
View Source
const ( SYN byte = 22 DLE byte = 16 STX byte = 2 ETX byte = 3 )
View Source
const ( STORAGE_IDLE = iota STORAGE_GET_DEFAULT_STORE STORAGE_GET_STORE_NAMES STORAGE_QUERY_SOUP )
Variables ¶
This section is empty.
Functions ¶
func FourCCAsString ¶
Types ¶
type ConnectModule ¶
type ConnectModule struct { DockModule // contains filtered or unexported fields }
func ConnectModuleNew ¶
func ConnectModuleNew(toDockLink chan DantePacket, sessionType byte) *ConnectModule
type DantePacket ¶
type DantePacket struct { DantePacketCommand // contains filtered or unexported fields }
func DantePacketFromBinary ¶
func DantePacketFromBinary(packet []byte) *DantePacket
func DantePacketNew ¶
func DantePacketNew(command uint32, data []byte) *DantePacket
func (*DantePacket) ToBinary ¶
func (packet *DantePacket) ToBinary() []byte
type DantePacketCommand ¶
type DantePacketCommand struct {
// contains filtered or unexported fields
}
func (DantePacketCommand) Matches ¶
func (value DantePacketCommand) Matches(input interface{}) bool
type DantePacketHandler ¶
type DantePacketHandler interface {
FromDockLink() chan DantePacket
}
type DockLinkLayer ¶
type DockLinkLayer struct { FromMNPConnection chan []byte ToMNPConnection chan []byte FromApplication chan DantePacket ToApplication chan DantePacket // contains filtered or unexported fields }
func DockLinkLayerNew ¶
func DockLinkLayerNew(fromMNPConnection chan []byte, toMNPConnection chan []byte) *DockLinkLayer
func (*DockLinkLayer) AddModule ¶
func (layer *DockLinkLayer) AddModule(channel chan DantePacket)
type DockModule ¶
type DockModule struct { ToDockLink chan DantePacket FromDockLink chan DantePacket // contains filtered or unexported fields }
func (*DockModule) DockModuleInit ¶
func (module *DockModule) DockModuleInit(toDockLink chan DantePacket, data interface{})
type LoadPackageModule ¶
type LoadPackageModule struct { DockModule // contains filtered or unexported fields }
func LoadPackageModuleNew ¶
func LoadPackageModuleNew(toDockLink chan DantePacket, packageData []byte) *LoadPackageModule
type MNPConnectionLayer ¶
type MNPConnectionLayer struct { FromDockLink chan []byte ToDockLink chan []byte FromPacketLayer chan Packet ToPacketLayer chan []byte // contains filtered or unexported fields }
func MNPConnectionLayerNew ¶
func MNPConnectionLayerNew(fromPacketLayer chan Packet, toPacketLayer chan []byte) *MNPConnectionLayer
type MNPPacketLayer ¶
type MNPPacketLayer struct { FromConnection chan []byte ToConnection chan Packet // contains filtered or unexported fields }
func MNPPacketLayerNew ¶
func MNPPacketLayerNew(name string, speed int) *MNPPacketLayer
type OutstandingPacket ¶
type OutstandingPacket struct {
// contains filtered or unexported fields
}
type PacketType ¶
type PacketType struct {
// contains filtered or unexported fields
}
func (PacketType) Matches ¶
func (packetType PacketType) Matches(input interface{}) bool
type StorageModule ¶
type StorageModule struct {
DockModule
}
func StorageModuleNew ¶
func StorageModuleNew(toDockLink chan DantePacket) *StorageModule
Click to show internal directories.
Click to hide internal directories.