Documentation ¶
Index ¶
- Variables
- type Envelope
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetCreatedAt() *timestamppb.Timestamp
- func (x *Message) GetData() []byte
- func (x *Message) GetPublisher() *Publisher
- func (x *Message) GetTopic() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Publisher
- func (*Publisher) Descriptor() ([]byte, []int)deprecated
- func (x *Publisher) GetDevice() *Publisher_Device
- func (x *Publisher) GetExternal() *Publisher_External
- func (m *Publisher) GetPublisher() isPublisher_Publisher
- func (*Publisher) ProtoMessage()
- func (x *Publisher) ProtoReflect() protoreflect.Message
- func (x *Publisher) Reset()
- func (x *Publisher) String() string
- type Publisher_Device
- func (*Publisher_Device) Descriptor() ([]byte, []int)deprecated
- func (x *Publisher_Device) GetDeviceId() []byte
- func (x *Publisher_Device) GetEventId() []byte
- func (x *Publisher_Device) GetHardwareId() []byte
- func (x *Publisher_Device) GetJobId() []byte
- func (x *Publisher_Device) GetWrittenAt() *timestamppb.Timestamp
- func (*Publisher_Device) ProtoMessage()
- func (x *Publisher_Device) ProtoReflect() protoreflect.Message
- func (x *Publisher_Device) Reset()
- func (x *Publisher_Device) String() string
- type Publisher_Device_
- type Publisher_External
- func (*Publisher_External) Descriptor() ([]byte, []int)deprecated
- func (x *Publisher_External) GetName() string
- func (*Publisher_External) ProtoMessage()
- func (x *Publisher_External) ProtoReflect() protoreflect.Message
- func (x *Publisher_External) Reset()
- func (x *Publisher_External) String() string
- type Publisher_External_
- type Topic
- type TopicType
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) GetMessage ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶
func (x *Envelope) ProtoReflect() protoreflect.Message
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) GetCreatedAt ¶
func (x *Message) GetCreatedAt() *timestamppb.Timestamp
func (*Message) GetPublisher ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
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) 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
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) ProtoMessage ¶
func (*Topic) ProtoMessage()
func (*Topic) ProtoReflect ¶
func (x *Topic) ProtoReflect() protoreflect.Message
type TopicType ¶
type TopicType int32
func (TopicType) Descriptor ¶
func (TopicType) Descriptor() protoreflect.EnumDescriptor
func (TopicType) EnumDescriptor
deprecated
func (TopicType) Number ¶
func (x TopicType) Number() protoreflect.EnumNumber
func (TopicType) Type ¶
func (TopicType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.