github.com/enbility/spine-go@v0.7.0/model/datagram.go (about)

     1  package model
     2  
     3  type Datagram struct {
     4  	Datagram DatagramType `json:"datagram"`
     5  }
     6  
     7  type DatagramType struct {
     8  	Header  HeaderType  `json:"header"`
     9  	Payload PayloadType `json:"payload"`
    10  }
    11  
    12  type HeaderType struct {
    13  	SpecificationVersion *SpecificationVersionType   `json:"specificationVersion,omitempty"`
    14  	AddressSource        *FeatureAddressType         `json:"addressSource,omitempty"`
    15  	AddressDestination   *FeatureAddressType         `json:"addressDestination,omitempty"`
    16  	AddressOriginator    *FeatureAddressType         `json:"addressOriginator,omitempty"`
    17  	MsgCounter           *MsgCounterType             `json:"msgCounter,omitempty"`
    18  	MsgCounterReference  *MsgCounterType             `json:"msgCounterReference,omitempty"`
    19  	CmdClassifier        *CmdClassifierType          `json:"cmdClassifier,omitempty"`
    20  	AckRequest           *bool                       `json:"ackRequest,omitempty"`
    21  	Timestamp            *AbsoluteOrRelativeTimeType `json:"timestamp,omitempty"`
    22  }
    23  
    24  type PayloadType struct {
    25  	Cmd []CmdType `json:"cmd"`
    26  }