Browse Source

protocol/packet: json field mappings for identity packet

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
bboozzoo/golang
Maciek Borzecki 7 years ago
parent
commit
a6670d1fcc
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      protocol/packet/identity.go

+ 7
- 7
protocol/packet/identity.go View File

@ -17,13 +17,13 @@ import (
) )
type Identity struct { type Identity struct {
DeviceId string
DeviceName string
DeviceType string
ProtocolVersion uint
IncomingCapabilities []string
OutgoingCapabilities []string
TcpPort uint
DeviceId string `json:"deviceId"`
DeviceName string `json:"deviceName"`
DeviceType string `json:"deviceType"`
ProtocolVersion uint `json:"protocolVersion"`
IncomingCapabilities []string `json:"incomingCapabilities"`
OutgoingCapabilities []string `json:"outgoingCapabilities"`
TcpPort uint `json:"tcpPort"`
} }
func (p *Packet) AsIdentity() (*Identity, error) { func (p *Packet) AsIdentity() (*Identity, error) {


Loading…
Cancel
Save