Documentation ¶
Index ¶
- Variables
- type Clipboard
- type Data
- type Device
- type EncryptedMessage
- type GreetMessage
- func (*GreetMessage) Descriptor() ([]byte, []int)deprecated
- func (x *GreetMessage) GetDevice() *Device
- func (x *GreetMessage) GetPort() uint32
- func (x *GreetMessage) GetPublicKey() []byte
- func (x *GreetMessage) GetVersion() string
- func (*GreetMessage) ProtoMessage()
- func (x *GreetMessage) ProtoReflect() protoreflect.Message
- func (x *GreetMessage) Reset()
- func (x *GreetMessage) String() string
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetClipboardProvider() Clipboard
- func (x *Header) GetCreated() *timestamppb.Timestamp
- func (x *Header) GetFrom() int64
- func (x *Header) GetID() int64
- func (x *Header) GetMimeType() Mime
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
- type Message
- type Mime
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mime_name = map[int32]string{ 0: "TEXT", 1: "IMAGE", } Mime_value = map[string]int32{ "TEXT": 0, "IMAGE": 1, } )
Enum value maps for Mime.
View Source
var ( Clipboard_name = map[int32]string{ 0: "XClip", 1: "XSel", 2: "WlClipboard", 4: "MasOsStd", 5: "WindowsNT10", 6: "Null", } Clipboard_value = map[string]int32{ "XClip": 0, "XSel": 1, "WlClipboard": 2, "MasOsStd": 4, "WindowsNT10": 5, "Null": 6, } )
Enum value maps for Clipboard.
View Source
var File_device_proto protoreflect.FileDescriptor
View Source
var File_encrypted_proto protoreflect.FileDescriptor
View Source
var File_greetmessage_proto protoreflect.FileDescriptor
View Source
var File_header_proto protoreflect.FileDescriptor
View Source
var File_message_proto protoreflect.FileDescriptor
View Source
var File_publickey_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Clipboard ¶
type Clipboard int32
ClipboardProvider represents the clipboard provider Used to identify the clipboard provider
func (Clipboard) Descriptor ¶
func (Clipboard) Descriptor() protoreflect.EnumDescriptor
func (Clipboard) EnumDescriptor
deprecated
func (Clipboard) Number ¶
func (x Clipboard) Number() protoreflect.EnumNumber
func (Clipboard) Type ¶
func (Clipboard) Type() protoreflect.EnumType
type Data ¶
type Data struct { Raw []byte `protobuf:"bytes,1,opt,name=Raw,proto3" json:"Raw,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"` // contains filtered or unexported fields }
Data represents the clipboard data and hash
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Device ¶
type Device struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Arch string `protobuf:"bytes,2,opt,name=Arch,proto3" json:"Arch,omitempty"` ID int64 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
Device represents the device information
func (*Device) Descriptor
deprecated
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type EncryptedMessage ¶
type EncryptedMessage struct { Message []byte `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*EncryptedMessage) Descriptor
deprecated
func (*EncryptedMessage) Descriptor() ([]byte, []int)
Deprecated: Use EncryptedMessage.ProtoReflect.Descriptor instead.
func (*EncryptedMessage) GetMessage ¶
func (x *EncryptedMessage) GetMessage() []byte
func (*EncryptedMessage) ProtoMessage ¶
func (*EncryptedMessage) ProtoMessage()
func (*EncryptedMessage) ProtoReflect ¶
func (x *EncryptedMessage) ProtoReflect() protoreflect.Message
func (*EncryptedMessage) Reset ¶
func (x *EncryptedMessage) Reset()
func (*EncryptedMessage) String ¶
func (x *EncryptedMessage) String() string
type GreetMessage ¶
type GreetMessage struct { Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` Device *Device `protobuf:"bytes,3,opt,name=Device,proto3" json:"Device,omitempty"` Port uint32 `protobuf:"varint,5,opt,name=Port,proto3" json:"Port,omitempty"` PublicKey []byte `protobuf:"bytes,6,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` // contains filtered or unexported fields }
GreetMessage represents the greeting message Used to shake hands with other nodes
func (*GreetMessage) Descriptor
deprecated
func (*GreetMessage) Descriptor() ([]byte, []int)
Deprecated: Use GreetMessage.ProtoReflect.Descriptor instead.
func (*GreetMessage) GetDevice ¶
func (x *GreetMessage) GetDevice() *Device
func (*GreetMessage) GetPort ¶
func (x *GreetMessage) GetPort() uint32
func (*GreetMessage) GetPublicKey ¶
func (x *GreetMessage) GetPublicKey() []byte
func (*GreetMessage) GetVersion ¶
func (x *GreetMessage) GetVersion() string
func (*GreetMessage) ProtoMessage ¶
func (*GreetMessage) ProtoMessage()
func (*GreetMessage) ProtoReflect ¶
func (x *GreetMessage) ProtoReflect() protoreflect.Message
func (*GreetMessage) Reset ¶
func (x *GreetMessage) Reset()
func (*GreetMessage) String ¶
func (x *GreetMessage) String() string
type Header ¶
type Header struct { From int64 `protobuf:"varint,1,opt,name=From,proto3" json:"From,omitempty"` MimeType Mime `protobuf:"varint,2,opt,name=MimeType,proto3,enum=belphegor.Mime" json:"MimeType,omitempty"` ID int64 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=Created,proto3" json:"Created,omitempty"` ClipboardProvider Clipboard `protobuf:"varint,5,opt,name=ClipboardProvider,proto3,enum=belphegor.Clipboard" json:"ClipboardProvider,omitempty"` // contains filtered or unexported fields }
Header represents the header of a message
func (*Header) Descriptor
deprecated
func (*Header) GetClipboardProvider ¶
func (*Header) GetCreated ¶
func (x *Header) GetCreated() *timestamppb.Timestamp
func (*Header) GetMimeType ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Data *Data `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` Header *Header `protobuf:"bytes,2,opt,name=Header,proto3" json:"Header,omitempty"` // contains filtered or unexported fields }
Message represents clipboard data and its associated metadata
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Mime ¶
type Mime int32
func (Mime) Descriptor ¶
func (Mime) Descriptor() protoreflect.EnumDescriptor
func (Mime) EnumDescriptor
deprecated
func (Mime) Number ¶
func (x Mime) Number() protoreflect.EnumNumber
func (Mime) Type ¶
func (Mime) Type() protoreflect.EnumType
type PublicKey ¶
type PublicKey struct { Key []byte `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.