Documentation
¶
Index ¶
- Variables
- type BasicWireInfo
- func (*BasicWireInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BasicWireInfo) GetId() string
- func (x *BasicWireInfo) GetName() string
- func (*BasicWireInfo) ProtoMessage()
- func (x *BasicWireInfo) ProtoReflect() protoreflect.Message
- func (x *BasicWireInfo) Reset()
- func (x *BasicWireInfo) String() string
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)deprecated
- func (x *Envelope) GetIntroduction() *Introduction
- func (x *Envelope) GetMessage() *Message
- func (m *Envelope) GetPayload() isEnvelope_Payload
- func (x *Envelope) GetPing() string
- func (x *Envelope) GetPong() string
- func (x *Envelope) GetWireAnnouncement() *BasicWireInfo
- func (x *Envelope) GetWireList() *WireList
- func (*Envelope) ProtoMessage()
- func (x *Envelope) ProtoReflect() protoreflect.Message
- func (x *Envelope) Reset()
- func (x *Envelope) String() string
- type Envelope_Introduction
- type Envelope_Message
- type Envelope_Ping
- type Envelope_Pong
- type Envelope_WireAnnouncement
- type Envelope_WireList
- type Introduction
- func (*Introduction) Descriptor() ([]byte, []int)deprecated
- func (x *Introduction) GetDisplayedName() string
- func (x *Introduction) GetId() string
- func (x *Introduction) GetPublicKey() []byte
- func (x *Introduction) GetWires() []*BasicWireInfo
- func (*Introduction) ProtoMessage()
- func (x *Introduction) ProtoReflect() protoreflect.Message
- func (x *Introduction) Reset()
- func (x *Introduction) String() string
- type Message
- type Message_Attachment
- func (*Message_Attachment) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Attachment) GetData() *anypb.Any
- func (x *Message_Attachment) GetType() Message_AttachmentType
- func (*Message_Attachment) ProtoMessage()
- func (x *Message_Attachment) ProtoReflect() protoreflect.Message
- func (x *Message_Attachment) Reset()
- func (x *Message_Attachment) String() string
- type Message_AttachmentType
- func (Message_AttachmentType) Descriptor() protoreflect.EnumDescriptor
- func (x Message_AttachmentType) Enum() *Message_AttachmentType
- func (Message_AttachmentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_AttachmentType) Number() protoreflect.EnumNumber
- func (x Message_AttachmentType) String() string
- func (Message_AttachmentType) Type() protoreflect.EnumType
- type WireList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Message_AttachmentType_name = map[int32]string{ 0: "IMAGE", 1: "VIDEO", 2: "AUDIO", } Message_AttachmentType_value = map[string]int32{ "IMAGE": 0, "VIDEO": 1, "AUDIO": 2, } )
Enum value maps for Message_AttachmentType.
View Source
var File_internal_proto_pb_homewire_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BasicWireInfo ¶
type BasicWireInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*BasicWireInfo) Descriptor
deprecated
func (*BasicWireInfo) Descriptor() ([]byte, []int)
Deprecated: Use BasicWireInfo.ProtoReflect.Descriptor instead.
func (*BasicWireInfo) GetId ¶
func (x *BasicWireInfo) GetId() string
func (*BasicWireInfo) GetName ¶
func (x *BasicWireInfo) GetName() string
func (*BasicWireInfo) ProtoMessage ¶
func (*BasicWireInfo) ProtoMessage()
func (*BasicWireInfo) ProtoReflect ¶
func (x *BasicWireInfo) ProtoReflect() protoreflect.Message
func (*BasicWireInfo) Reset ¶
func (x *BasicWireInfo) Reset()
func (*BasicWireInfo) String ¶
func (x *BasicWireInfo) String() string
type Envelope ¶
type Envelope struct { // Types that are assignable to Payload: // // *Envelope_Ping // *Envelope_Pong // *Envelope_Introduction // *Envelope_WireAnnouncement // *Envelope_WireList // *Envelope_Message Payload isEnvelope_Payload `protobuf_oneof:"Payload"` // contains filtered or unexported fields }
func (*Envelope) Descriptor
deprecated
func (*Envelope) GetIntroduction ¶
func (x *Envelope) GetIntroduction() *Introduction
func (*Envelope) GetMessage ¶
func (*Envelope) GetPayload ¶
func (m *Envelope) GetPayload() isEnvelope_Payload
func (*Envelope) GetWireAnnouncement ¶
func (x *Envelope) GetWireAnnouncement() *BasicWireInfo
func (*Envelope) GetWireList ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶
func (x *Envelope) ProtoReflect() protoreflect.Message
type Envelope_Introduction ¶
type Envelope_Introduction struct {
Introduction *Introduction `protobuf:"bytes,3,opt,name=introduction,proto3,oneof"`
}
type Envelope_Message ¶
type Envelope_Message struct {
Message *Message `protobuf:"bytes,6,opt,name=message,proto3,oneof"`
}
type Envelope_Ping ¶
type Envelope_Ping struct {
Ping string `protobuf:"bytes,1,opt,name=ping,proto3,oneof"`
}
type Envelope_Pong ¶
type Envelope_Pong struct {
Pong string `protobuf:"bytes,2,opt,name=pong,proto3,oneof"`
}
type Envelope_WireAnnouncement ¶
type Envelope_WireAnnouncement struct {
WireAnnouncement *BasicWireInfo `protobuf:"bytes,4,opt,name=wireAnnouncement,proto3,oneof"`
}
type Envelope_WireList ¶
type Envelope_WireList struct {
WireList *WireList `protobuf:"bytes,5,opt,name=wireList,proto3,oneof"`
}
type Introduction ¶
type Introduction struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayedName string `protobuf:"bytes,2,opt,name=displayedName,proto3" json:"displayedName,omitempty"` PublicKey []byte `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Wires []*BasicWireInfo `protobuf:"bytes,4,rep,name=wires,proto3" json:"wires,omitempty"` // contains filtered or unexported fields }
func (*Introduction) Descriptor
deprecated
func (*Introduction) Descriptor() ([]byte, []int)
Deprecated: Use Introduction.ProtoReflect.Descriptor instead.
func (*Introduction) GetDisplayedName ¶
func (x *Introduction) GetDisplayedName() string
func (*Introduction) GetId ¶
func (x *Introduction) GetId() string
func (*Introduction) GetPublicKey ¶
func (x *Introduction) GetPublicKey() []byte
func (*Introduction) GetWires ¶
func (x *Introduction) GetWires() []*BasicWireInfo
func (*Introduction) ProtoMessage ¶
func (*Introduction) ProtoMessage()
func (*Introduction) ProtoReflect ¶
func (x *Introduction) ProtoReflect() protoreflect.Message
func (*Introduction) Reset ¶
func (x *Introduction) Reset()
func (*Introduction) String ¶
func (x *Introduction) String() string
type Message ¶
type Message struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Attachment *Message_Attachment `protobuf:"bytes,2,opt,name=attachment,proto3,oneof" json:"attachment,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetAttachment ¶
func (x *Message) GetAttachment() *Message_Attachment
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Attachment ¶
type Message_Attachment struct { Type Message_AttachmentType `protobuf:"varint,1,opt,name=type,proto3,enum=Message_AttachmentType" json:"type,omitempty"` Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Message_Attachment) Descriptor
deprecated
func (*Message_Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Message_Attachment.ProtoReflect.Descriptor instead.
func (*Message_Attachment) GetData ¶
func (x *Message_Attachment) GetData() *anypb.Any
func (*Message_Attachment) GetType ¶
func (x *Message_Attachment) GetType() Message_AttachmentType
func (*Message_Attachment) ProtoMessage ¶
func (*Message_Attachment) ProtoMessage()
func (*Message_Attachment) ProtoReflect ¶
func (x *Message_Attachment) ProtoReflect() protoreflect.Message
func (*Message_Attachment) Reset ¶
func (x *Message_Attachment) Reset()
func (*Message_Attachment) String ¶
func (x *Message_Attachment) String() string
type Message_AttachmentType ¶
type Message_AttachmentType int32
const ( Message_IMAGE Message_AttachmentType = 0 Message_VIDEO Message_AttachmentType = 1 Message_AUDIO Message_AttachmentType = 2 )
func (Message_AttachmentType) Descriptor ¶
func (Message_AttachmentType) Descriptor() protoreflect.EnumDescriptor
func (Message_AttachmentType) Enum ¶
func (x Message_AttachmentType) Enum() *Message_AttachmentType
func (Message_AttachmentType) EnumDescriptor
deprecated
func (Message_AttachmentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_AttachmentType.Descriptor instead.
func (Message_AttachmentType) Number ¶
func (x Message_AttachmentType) Number() protoreflect.EnumNumber
func (Message_AttachmentType) String ¶
func (x Message_AttachmentType) String() string
func (Message_AttachmentType) Type ¶
func (Message_AttachmentType) Type() protoreflect.EnumType
type WireList ¶
type WireList struct { Wires []*BasicWireInfo `protobuf:"bytes,1,rep,name=wires,proto3" json:"wires,omitempty"` // contains filtered or unexported fields }
func (*WireList) Descriptor
deprecated
func (*WireList) GetWires ¶
func (x *WireList) GetWires() []*BasicWireInfo
func (*WireList) ProtoMessage ¶
func (*WireList) ProtoMessage()
func (*WireList) ProtoReflect ¶
func (x *WireList) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.