pb

package
v0.0.0-...-8886596 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetIntroduction

func (x *Envelope) GetIntroduction() *Introduction

func (*Envelope) GetMessage

func (x *Envelope) GetMessage() *Message

func (*Envelope) GetPayload

func (m *Envelope) GetPayload() isEnvelope_Payload

func (*Envelope) GetPing

func (x *Envelope) GetPing() string

func (*Envelope) GetPong

func (x *Envelope) GetPong() string

func (*Envelope) GetWireAnnouncement

func (x *Envelope) GetWireAnnouncement() *BasicWireInfo

func (*Envelope) GetWireList

func (x *Envelope) GetWireList() *WireList

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAttachment

func (x *Message) GetAttachment() *Message_Attachment

func (*Message) GetText

func (x *Message) GetText() 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 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 (*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) Enum

func (Message_AttachmentType) EnumDescriptor deprecated

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

Deprecated: Use Message_AttachmentType.Descriptor instead.

func (Message_AttachmentType) Number

func (Message_AttachmentType) String

func (x Message_AttachmentType) String() string

func (Message_AttachmentType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use WireList.ProtoReflect.Descriptor instead.

func (*WireList) GetWires

func (x *WireList) GetWires() []*BasicWireInfo

func (*WireList) ProtoMessage

func (*WireList) ProtoMessage()

func (*WireList) ProtoReflect

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

func (*WireList) Reset

func (x *WireList) Reset()

func (*WireList) String

func (x *WireList) String() string

Jump to

Keyboard shortcuts

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