Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Mapper = make(map[string]Creator)
Functions ¶
Types ¶
type Metadata ¶ added in v1.1.3
type Metadata struct { Type MetadataType Hostname string Port uint16 // Cmd is valid only if Type is MetadataTypeMsg. Cmd MetadataCmd Cipher string IsClient bool }
func ParseMetadata ¶ added in v1.1.6
type MetadataCmd ¶
type MetadataCmd uint8
const ( MetadataCmdPing MetadataCmd = iota MetadataCmdSyncPassages MetadataCmdResponse )
type MetadataType ¶ added in v1.1.3
type MetadataType int
const ( MetadataTypeIPv4 MetadataType = iota MetadataTypeIPv6 MetadataTypeDomain MetadataTypeMsg MetadataTypeInvalid )
Click to show internal directories.
Click to hide internal directories.