Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_BLUETOOTH_PLACEHOLDER = "bluetooth herpader" BLUETOOTH_TYPE = "Bluetooth" )
View Source
const ( DefaultNfcPlaceholder = "nfc herpader" NFCType = "NFC" )
View Source
const ( WebsocketType = "WebSocket" // host tlvHelper position HostTlvType = 0 UseTlsTlvType = 1 // indicate tls is used UseTlsEnumValueTrue = 0 // indicate tls is not used UseTlsEnumFalse = 1 // port tlvHelper position PortTlvType = 2 // default wss port DefaultTlsPort = 443 // default ws port DefaultNoTlsPort = 80 )
View Source
const (
DefaultWebrtcPlaceholder = "webrtc herpader"
)
View Source
const PLACEHOLDER_TLV_TYPE = 0
Variables ¶
This section is empty.
Functions ¶
func EncodedPlaceHolderTlv ¶
generate a placeholder tlv, return a byte slice representing tlv
func PlaceHolderTlv ¶
encode a placeholder tlv for python-parity tests
Types ¶
type BluetoothLocation ¶
type BluetoothLocation struct {
PlaceholderString string
}
func BluetoothLocationFromTlv ¶
func BluetoothLocationFromTlv(tlv util.Tlv) (loc BluetoothLocation, err error)
func NewBluetoothLocation ¶
func NewBluetoothLocation() BluetoothLocation
func (BluetoothLocation) EncodedTlv ¶
func (loc BluetoothLocation) EncodedTlv() []byte
func (BluetoothLocation) Tlv ¶
func (loc BluetoothLocation) Tlv() []tlvHelper.Record
func (BluetoothLocation) ToObject ¶
func (loc BluetoothLocation) ToObject() map[string]interface{}
func (BluetoothLocation) Type ¶
func (loc BluetoothLocation) Type() tlvHelper.Type
type NfcLocation ¶
type NfcLocation struct {
PlaceholderString string
}
func NewNfcLocation ¶
func NewNfcLocation() NfcLocation
func NfcLocationFromTlv ¶
func NfcLocationFromTlv(tlv util.Tlv) (loc NfcLocation, err error)
func (NfcLocation) EncodedTlv ¶
func (loc NfcLocation) EncodedTlv() []byte
func (NfcLocation) Tlv ¶
func (loc NfcLocation) Tlv() []tlv.Record
func (NfcLocation) ToObject ¶
func (loc NfcLocation) ToObject() map[string]interface{}
func (NfcLocation) Type ¶
func (loc NfcLocation) Type() tlv.Type
type WebrtcLocation ¶
type WebrtcLocation struct {
PlaceholderString string
}
func NewWebRtcLocation ¶
func NewWebRtcLocation() WebrtcLocation
func WebRtcLocationFromTlv ¶
func WebRtcLocationFromTlv(tlv util.Tlv) (loc WebrtcLocation, err error)
func (WebrtcLocation) EncodedTlv ¶
func (loc WebrtcLocation) EncodedTlv() []byte
func (WebrtcLocation) Tlv ¶
func (loc WebrtcLocation) Tlv() []tlv.Record
func (WebrtcLocation) ToObject ¶
func (loc WebrtcLocation) ToObject() map[string]interface{}
func (WebrtcLocation) Type ¶
func (loc WebrtcLocation) Type() tlv.Type
type WebsocketLocation ¶
type WebsocketLocation struct {
// contains filtered or unexported fields
}
func NewWebsocketLocation ¶
func NewWebsocketLocation(host string, useTls bool) WebsocketLocation
new websocket location
func NewWebsocketLocationPort ¶
func NewWebsocketLocationPort(host string, useTls bool, port int) WebsocketLocation
func WebsocketLocationFromTlv ¶
func WebsocketLocationFromTlv(tlv util.Tlv) (wsl WebsocketLocation, err error)
func (WebsocketLocation) EncodedTlv ¶
func (ws WebsocketLocation) EncodedTlv() []byte
func (WebsocketLocation) IsTls ¶
func (ws WebsocketLocation) IsTls() bool
func (WebsocketLocation) Tlv ¶
func (ws WebsocketLocation) Tlv() []tlvHelper.Record
func (WebsocketLocation) ToObject ¶
func (ws WebsocketLocation) ToObject() map[string]interface{}
func (WebsocketLocation) ToString ¶
func (ws WebsocketLocation) ToString() string
func (WebsocketLocation) Type ¶
func (ws WebsocketLocation) Type() tlvHelper.Type
Click to show internal directories.
Click to hide internal directories.