nfcgate_proto

package
v0.0.0-...-38f27e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NFCData_DataSource_name = map[int32]string{
		0: "READER",
		1: "CARD",
	}
	NFCData_DataSource_value = map[string]int32{
		"READER": 0,
		"CARD":   1,
	}
)

Enum value maps for NFCData_DataSource.

View Source
var (
	NFCData_DataType_name = map[int32]string{
		0: "INITIAL",
		1: "CONTINUATION",
	}
	NFCData_DataType_value = map[string]int32{
		"INITIAL":      0,
		"CONTINUATION": 1,
	}
)

Enum value maps for NFCData_DataType.

View Source
var (
	ServerData_Opcode_name = map[int32]string{
		0: "OP_PSH",
		1: "OP_SYN",
		2: "OP_ACK",
		3: "OP_FIN",
	}
	ServerData_Opcode_value = map[string]int32{
		"OP_PSH": 0,
		"OP_SYN": 1,
		"OP_ACK": 2,
		"OP_FIN": 3,
	}
)

Enum value maps for ServerData_Opcode.

View Source
var File_nfcgate_proto_c2c_proto protoreflect.FileDescriptor
View Source
var File_nfcgate_proto_c2s_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type NFCData

type NFCData struct {

	// If data is coming from a NFC Card or a NFC Reader
	DataSource NFCData_DataSource `` /* 159-byte string literal not displayed */
	// If data is initial card data or continuation
	DataType NFCData_DataType `` /* 151-byte string literal not displayed */
	// Unix timestamp in millis
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The actual bytes to be sent
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Message for passing NFC data between clients

func (*NFCData) Descriptor deprecated

func (*NFCData) Descriptor() ([]byte, []int)

Deprecated: Use NFCData.ProtoReflect.Descriptor instead.

func (*NFCData) GetData

func (x *NFCData) GetData() []byte

func (*NFCData) GetDataSource

func (x *NFCData) GetDataSource() NFCData_DataSource

func (*NFCData) GetDataType

func (x *NFCData) GetDataType() NFCData_DataType

func (*NFCData) GetTimestamp

func (x *NFCData) GetTimestamp() int64

func (*NFCData) ProtoMessage

func (*NFCData) ProtoMessage()

func (*NFCData) ProtoReflect

func (x *NFCData) ProtoReflect() protoreflect.Message

func (*NFCData) Reset

func (x *NFCData) Reset()

func (*NFCData) String

func (x *NFCData) String() string

type NFCData_DataSource

type NFCData_DataSource int32
const (
	NFCData_READER NFCData_DataSource = 0
	NFCData_CARD   NFCData_DataSource = 1
)

func (NFCData_DataSource) Descriptor

func (NFCData_DataSource) Enum

func (NFCData_DataSource) EnumDescriptor deprecated

func (NFCData_DataSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use NFCData_DataSource.Descriptor instead.

func (NFCData_DataSource) Number

func (NFCData_DataSource) String

func (x NFCData_DataSource) String() string

func (NFCData_DataSource) Type

type NFCData_DataType

type NFCData_DataType int32
const (
	NFCData_INITIAL      NFCData_DataType = 0
	NFCData_CONTINUATION NFCData_DataType = 1
)

func (NFCData_DataType) Descriptor

func (NFCData_DataType) Enum

func (NFCData_DataType) EnumDescriptor deprecated

func (NFCData_DataType) EnumDescriptor() ([]byte, []int)

Deprecated: Use NFCData_DataType.Descriptor instead.

func (NFCData_DataType) Number

func (NFCData_DataType) String

func (x NFCData_DataType) String() string

func (NFCData_DataType) Type

type ServerData

type ServerData struct {

	// Describes intent of the sender
	Opcode ServerData_Opcode `` /* 132-byte string literal not displayed */
	// Binary blob containing the message content
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Session management messages

func (*ServerData) Descriptor deprecated

func (*ServerData) Descriptor() ([]byte, []int)

Deprecated: Use ServerData.ProtoReflect.Descriptor instead.

func (*ServerData) GetData

func (x *ServerData) GetData() []byte

func (*ServerData) GetOpcode

func (x *ServerData) GetOpcode() ServerData_Opcode

func (*ServerData) ProtoMessage

func (*ServerData) ProtoMessage()

func (*ServerData) ProtoReflect

func (x *ServerData) ProtoReflect() protoreflect.Message

func (*ServerData) Reset

func (x *ServerData) Reset()

func (*ServerData) String

func (x *ServerData) String() string

type ServerData_Opcode

type ServerData_Opcode int32
const (
	ServerData_OP_PSH ServerData_Opcode = 0
	ServerData_OP_SYN ServerData_Opcode = 1
	ServerData_OP_ACK ServerData_Opcode = 2
	ServerData_OP_FIN ServerData_Opcode = 3
)

func (ServerData_Opcode) Descriptor

func (ServerData_Opcode) Enum

func (ServerData_Opcode) EnumDescriptor deprecated

func (ServerData_Opcode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServerData_Opcode.Descriptor instead.

func (ServerData_Opcode) Number

func (ServerData_Opcode) String

func (x ServerData_Opcode) String() string

func (ServerData_Opcode) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL