Versions in this module Expand all Collapse all v0 v0.0.1 Sep 1, 2020 Changes in this version + const AbsoluteURI + const Empty + const MediaType + const NFCForumExternalType + const NFCForumWellKnownType + const Reserved + const Unchanged + const Unknown + type Message struct + Records []*Record + func NewAbsoluteURIMessage(typeURI string, payload []byte) *Message + func NewExternalMessage(extType string, payload []byte) *Message + func NewMediaMessage(mimeType string, payload []byte) *Message + func NewMessage(tnf byte, rtype string, id string, payload RecordPayload) *Message + func NewMessageFromRecords(records ...*Record) *Message + func NewSmartPosterMessage(msgPayload *Message) *Message + func NewTextMessage(textVal, language string) *Message + func NewURIMessage(uriVal string) *Message + func (m *Message) Inspect() string + func (m *Message) Marshal() ([]byte, error) + func (m *Message) String() string + func (m *Message) Unmarshal(buf []byte) (rLen int, err error) + type Record struct + func NewAbsoluteURIRecord(typeURI string, payload []byte) *Record + func NewExternalRecord(extType string, payload []byte) *Record + func NewMediaRecord(mimeType string, payload []byte) *Record + func NewRecord(tnf byte, typ string, id string, payload RecordPayload) *Record + func NewSmartPosterRecord(msg *Message) *Record + func NewTextRecord(textVal, language string) *Record + func NewURIRecord(uriVal string) *Record + func (r *Record) Empty() bool + func (r *Record) ID() string + func (r *Record) Inspect() string + func (r *Record) MB() bool + func (r *Record) ME() bool + func (r *Record) Marshal() ([]byte, error) + func (r *Record) Payload() (RecordPayload, error) + func (r *Record) SetMB(b bool) + func (r *Record) SetME(b bool) + func (r *Record) String() string + func (r *Record) TNF() byte + func (r *Record) Type() string + func (r *Record) Unmarshal(buf []byte) (rLen int, err error) + type RecordPayload interface + Len func() int + Marshal func() []byte + String func() string + Type func() string + Unmarshal func(buf []byte) + type SmartPosterPayload struct + Message *Message + func NewSmartPosterPayload(msg *Message) *SmartPosterPayload + func (sp *SmartPosterPayload) Len() int + func (sp *SmartPosterPayload) Marshal() []byte + func (sp *SmartPosterPayload) String() string + func (sp *SmartPosterPayload) Type() string + func (sp *SmartPosterPayload) Unmarshal(buf []byte)