pb

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EncryptionAlgo_name = map[int32]string{
		0: "ENCRYPTION_NONE",
		1: "ENCRYPTION_XSALSA20_POLY1305",
		2: "ENCRYPTION_AES_GCM",
	}
	EncryptionAlgo_value = map[string]int32{
		"ENCRYPTION_NONE":              0,
		"ENCRYPTION_XSALSA20_POLY1305": 1,
		"ENCRYPTION_AES_GCM":           2,
	}
)

Enum value maps for EncryptionAlgo.

View Source
var File_pb_tuna_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConnectionMetadata

type ConnectionMetadata struct {
	EncryptionAlgo           EncryptionAlgo `` /* 127-byte string literal not displayed */
	PublicKey                []byte         `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Nonce                    []byte         `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	IsMeasurement            bool           `protobuf:"varint,4,opt,name=is_measurement,json=isMeasurement,proto3" json:"is_measurement,omitempty"`
	MeasurementBytesDownlink uint32         `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConnectionMetadata) Descriptor deprecated

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

Deprecated: Use ConnectionMetadata.ProtoReflect.Descriptor instead.

func (*ConnectionMetadata) GetEncryptionAlgo

func (x *ConnectionMetadata) GetEncryptionAlgo() EncryptionAlgo

func (*ConnectionMetadata) GetIsMeasurement

func (x *ConnectionMetadata) GetIsMeasurement() bool
func (x *ConnectionMetadata) GetMeasurementBytesDownlink() uint32

func (*ConnectionMetadata) GetNonce

func (x *ConnectionMetadata) GetNonce() []byte

func (*ConnectionMetadata) GetPublicKey

func (x *ConnectionMetadata) GetPublicKey() []byte

func (*ConnectionMetadata) ProtoMessage

func (*ConnectionMetadata) ProtoMessage()

func (*ConnectionMetadata) ProtoReflect

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

func (*ConnectionMetadata) Reset

func (x *ConnectionMetadata) Reset()

func (*ConnectionMetadata) String

func (x *ConnectionMetadata) String() string

type EncryptionAlgo

type EncryptionAlgo int32
const (
	EncryptionAlgo_ENCRYPTION_NONE              EncryptionAlgo = 0
	EncryptionAlgo_ENCRYPTION_XSALSA20_POLY1305 EncryptionAlgo = 1
	EncryptionAlgo_ENCRYPTION_AES_GCM           EncryptionAlgo = 2
)

func (EncryptionAlgo) Descriptor

func (EncryptionAlgo) Enum

func (x EncryptionAlgo) Enum() *EncryptionAlgo

func (EncryptionAlgo) EnumDescriptor deprecated

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

Deprecated: Use EncryptionAlgo.Descriptor instead.

func (EncryptionAlgo) Number

func (EncryptionAlgo) String

func (x EncryptionAlgo) String() string

func (EncryptionAlgo) Type

type ServiceMetadata

type ServiceMetadata struct {
	Ip              string   `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	TcpPort         uint32   `protobuf:"varint,2,opt,name=tcp_port,json=tcpPort,proto3" json:"tcp_port,omitempty"`
	UdpPort         uint32   `protobuf:"varint,3,opt,name=udp_port,json=udpPort,proto3" json:"udp_port,omitempty"`
	ServiceId       uint32   `protobuf:"varint,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	ServiceTcp      []uint32 `protobuf:"varint,5,rep,packed,name=service_tcp,json=serviceTcp,proto3" json:"service_tcp,omitempty"`
	ServiceUdp      []uint32 `protobuf:"varint,6,rep,packed,name=service_udp,json=serviceUdp,proto3" json:"service_udp,omitempty"`
	Price           string   `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"`
	BeneficiaryAddr string   `protobuf:"bytes,8,opt,name=beneficiary_addr,json=beneficiaryAddr,proto3" json:"beneficiary_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceMetadata) Descriptor deprecated

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

Deprecated: Use ServiceMetadata.ProtoReflect.Descriptor instead.

func (*ServiceMetadata) GetBeneficiaryAddr

func (x *ServiceMetadata) GetBeneficiaryAddr() string

func (*ServiceMetadata) GetIp

func (x *ServiceMetadata) GetIp() string

func (*ServiceMetadata) GetPrice

func (x *ServiceMetadata) GetPrice() string

func (*ServiceMetadata) GetServiceId

func (x *ServiceMetadata) GetServiceId() uint32

func (*ServiceMetadata) GetServiceTcp

func (x *ServiceMetadata) GetServiceTcp() []uint32

func (*ServiceMetadata) GetServiceUdp

func (x *ServiceMetadata) GetServiceUdp() []uint32

func (*ServiceMetadata) GetTcpPort

func (x *ServiceMetadata) GetTcpPort() uint32

func (*ServiceMetadata) GetUdpPort

func (x *ServiceMetadata) GetUdpPort() uint32

func (*ServiceMetadata) ProtoMessage

func (*ServiceMetadata) ProtoMessage()

func (*ServiceMetadata) ProtoReflect

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

func (*ServiceMetadata) Reset

func (x *ServiceMetadata) Reset()

func (*ServiceMetadata) String

func (x *ServiceMetadata) String() string

type StreamMetadata

type StreamMetadata struct {
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	PortId    uint32 `protobuf:"varint,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	IsPayment bool   `protobuf:"varint,3,opt,name=is_payment,json=isPayment,proto3" json:"is_payment,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMetadata) Descriptor deprecated

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

Deprecated: Use StreamMetadata.ProtoReflect.Descriptor instead.

func (*StreamMetadata) GetIsPayment

func (x *StreamMetadata) GetIsPayment() bool

func (*StreamMetadata) GetPortId

func (x *StreamMetadata) GetPortId() uint32

func (*StreamMetadata) GetServiceId

func (x *StreamMetadata) GetServiceId() uint32

func (*StreamMetadata) ProtoMessage

func (*StreamMetadata) ProtoMessage()

func (*StreamMetadata) ProtoReflect

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

func (*StreamMetadata) Reset

func (x *StreamMetadata) Reset()

func (*StreamMetadata) String

func (x *StreamMetadata) String() string

Jump to

Keyboard shortcuts

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