pubsub

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TopicType_name = map[int32]string{
		0: "TOPIC_TYPE_UNKNOWN",
		1: "TOPIC_TYPE_CLOUD",
		2: "TOPIC_TYPE_DEVICE",
		3: "TOPIC_TYPE_DEVICE_MEMORY",
	}
	TopicType_value = map[string]int32{
		"TOPIC_TYPE_UNKNOWN":       0,
		"TOPIC_TYPE_CLOUD":         1,
		"TOPIC_TYPE_DEVICE":        2,
		"TOPIC_TYPE_DEVICE_MEMORY": 3,
	}
)

Enum value maps for TopicType.

View Source
var File_toit_model_pubsub_message_proto protoreflect.FileDescriptor
View Source
var File_toit_model_pubsub_topic_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Id      []byte   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetId

func (x *Envelope) GetId() []byte

func (*Envelope) GetMessage

func (x *Envelope) GetMessage() *Message

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

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

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

type Message

type Message struct {
	Topic     string                 `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Publisher *Publisher             `protobuf:"bytes,2,opt,name=publisher,proto3" json:"publisher,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Data      []byte                 `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetCreatedAt

func (x *Message) GetCreatedAt() *timestamppb.Timestamp

func (*Message) GetData

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

func (*Message) GetPublisher

func (x *Message) GetPublisher() *Publisher

func (*Message) GetTopic

func (x *Message) GetTopic() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Publisher

type Publisher struct {

	// Types that are assignable to Publisher:
	//	*Publisher_Device_
	//	*Publisher_External_
	Publisher isPublisher_Publisher `protobuf_oneof:"publisher"`
	// contains filtered or unexported fields
}

func (*Publisher) Descriptor deprecated

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

Deprecated: Use Publisher.ProtoReflect.Descriptor instead.

func (*Publisher) GetDevice

func (x *Publisher) GetDevice() *Publisher_Device

func (*Publisher) GetExternal

func (x *Publisher) GetExternal() *Publisher_External

func (*Publisher) GetPublisher

func (m *Publisher) GetPublisher() isPublisher_Publisher

func (*Publisher) ProtoMessage

func (*Publisher) ProtoMessage()

func (*Publisher) ProtoReflect

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

func (*Publisher) Reset

func (x *Publisher) Reset()

func (*Publisher) String

func (x *Publisher) String() string

type Publisher_Device

type Publisher_Device struct {
	HardwareId []byte                 `protobuf:"bytes,1,opt,name=hardware_id,json=hardwareId,proto3" json:"hardware_id,omitempty"`
	DeviceId   []byte                 `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	EventId    []byte                 `protobuf:"bytes,3,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	JobId      []byte                 `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	WrittenAt  *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=written_at,json=writtenAt,proto3" json:"written_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Publisher_Device) Descriptor deprecated

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

Deprecated: Use Publisher_Device.ProtoReflect.Descriptor instead.

func (*Publisher_Device) GetDeviceId

func (x *Publisher_Device) GetDeviceId() []byte

func (*Publisher_Device) GetEventId

func (x *Publisher_Device) GetEventId() []byte

func (*Publisher_Device) GetHardwareId

func (x *Publisher_Device) GetHardwareId() []byte

func (*Publisher_Device) GetJobId

func (x *Publisher_Device) GetJobId() []byte

func (*Publisher_Device) GetWrittenAt

func (x *Publisher_Device) GetWrittenAt() *timestamppb.Timestamp

func (*Publisher_Device) ProtoMessage

func (*Publisher_Device) ProtoMessage()

func (*Publisher_Device) ProtoReflect

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

func (*Publisher_Device) Reset

func (x *Publisher_Device) Reset()

func (*Publisher_Device) String

func (x *Publisher_Device) String() string

type Publisher_Device_

type Publisher_Device_ struct {
	Device *Publisher_Device `protobuf:"bytes,1,opt,name=device,proto3,oneof"`
}

type Publisher_External

type Publisher_External struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Publisher_External) Descriptor deprecated

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

Deprecated: Use Publisher_External.ProtoReflect.Descriptor instead.

func (*Publisher_External) GetName

func (x *Publisher_External) GetName() string

func (*Publisher_External) ProtoMessage

func (*Publisher_External) ProtoMessage()

func (*Publisher_External) ProtoReflect

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

func (*Publisher_External) Reset

func (x *Publisher_External) Reset()

func (*Publisher_External) String

func (x *Publisher_External) String() string

type Publisher_External_

type Publisher_External_ struct {
	External *Publisher_External `protobuf:"bytes,2,opt,name=external,proto3,oneof"`
}

type Topic

type Topic struct {
	Type TopicType `protobuf:"varint,1,opt,name=type,proto3,enum=toit.model.pubsub.TopicType" json:"type,omitempty"`
	Name string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Topic) Descriptor deprecated

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

Deprecated: Use Topic.ProtoReflect.Descriptor instead.

func (*Topic) GetName

func (x *Topic) GetName() string

func (*Topic) GetType

func (x *Topic) GetType() TopicType

func (*Topic) ProtoMessage

func (*Topic) ProtoMessage()

func (*Topic) ProtoReflect

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

func (*Topic) Reset

func (x *Topic) Reset()

func (*Topic) String

func (x *Topic) String() string

type TopicType

type TopicType int32
const (
	TopicType_TOPIC_TYPE_UNKNOWN       TopicType = 0
	TopicType_TOPIC_TYPE_CLOUD         TopicType = 1
	TopicType_TOPIC_TYPE_DEVICE        TopicType = 2
	TopicType_TOPIC_TYPE_DEVICE_MEMORY TopicType = 3
)

func (TopicType) Descriptor

func (TopicType) Descriptor() protoreflect.EnumDescriptor

func (TopicType) Enum

func (x TopicType) Enum() *TopicType

func (TopicType) EnumDescriptor deprecated

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

Deprecated: Use TopicType.Descriptor instead.

func (TopicType) Number

func (x TopicType) Number() protoreflect.EnumNumber

func (TopicType) String

func (x TopicType) String() string

func (TopicType) Type

Jump to

Keyboard shortcuts

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