types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Clipboard_name = map[int32]string{
		0: "XClip",
		1: "XSel",
		2: "WlClipboard",
		4: "MasOsStd",
		5: "WindowsNT10",
	}
	Clipboard_value = map[string]int32{
		"XClip":       0,
		"XSel":        1,
		"WlClipboard": 2,
		"MasOsStd":    4,
		"WindowsNT10": 5,
	}
)

Enum value maps for Clipboard.

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 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

const (
	Clipboard_XClip       Clipboard = 0
	Clipboard_XSel        Clipboard = 1
	Clipboard_WlClipboard Clipboard = 2
	Clipboard_MasOsStd    Clipboard = 4
	Clipboard_WindowsNT10 Clipboard = 5
)

func (Clipboard) Descriptor

func (Clipboard) Descriptor() protoreflect.EnumDescriptor

func (Clipboard) Enum

func (x Clipboard) Enum() *Clipboard

func (Clipboard) EnumDescriptor deprecated

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

Deprecated: Use Clipboard.Descriptor instead.

func (Clipboard) Number

func (x Clipboard) Number() protoreflect.EnumNumber

func (Clipboard) String

func (x Clipboard) String() string

func (Clipboard) Type

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetHash

func (x *Data) GetHash() []byte

func (*Data) GetRaw

func (x *Data) GetRaw() []byte

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Device

type Device struct {
	Arch              string    `protobuf:"bytes,2,opt,name=Arch,proto3" json:"Arch,omitempty"`
	UniqueName        string    `protobuf:"bytes,3,opt,name=UniqueName,proto3" json:"UniqueName,omitempty"`
	ClipboardProvider Clipboard `protobuf:"varint,4,opt,name=ClipboardProvider,proto3,enum=belphegor.Clipboard" json:"ClipboardProvider,omitempty"`
	// contains filtered or unexported fields
}

Device represents the device information

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetArch

func (x *Device) GetArch() string

func (*Device) GetClipboardProvider

func (x *Device) GetClipboardProvider() Clipboard

func (*Device) GetUniqueName

func (x *Device) GetUniqueName() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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 {
	UniqueID  string  `protobuf:"bytes,1,opt,name=UniqueID,proto3" json:"UniqueID,omitempty"`
	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) GetUniqueID

func (x *GreetMessage) GetUniqueID() string

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 struct {
	MimeType Mime                   `protobuf:"varint,2,opt,name=MimeType,proto3,enum=belphegor.Mime" json:"MimeType,omitempty"`
	Device   *Device                `protobuf:"bytes,1,opt,name=Device,proto3" json:"Device,omitempty"`
	ID       string                 `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"`
	Created  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=Created,proto3" json:"Created,omitempty"`
	// contains filtered or unexported fields
}

Header represents the header of a message

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetCreated

func (x *Header) GetCreated() *timestamppb.Timestamp

func (*Header) GetDevice

func (x *Header) GetDevice() *Device

func (*Header) GetID

func (x *Header) GetID() string

func (*Header) GetMimeType

func (x *Header) GetMimeType() Mime

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetData

func (x *Message) GetData() *Data

func (*Message) GetHeader

func (x *Message) GetHeader() *Header

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 Mime

type Mime int32
const (
	Mime_TEXT  Mime = 0
	Mime_IMAGE Mime = 1
)

func (Mime) Descriptor

func (Mime) Descriptor() protoreflect.EnumDescriptor

func (Mime) Enum

func (x Mime) Enum() *Mime

func (Mime) EnumDescriptor deprecated

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

Deprecated: Use Mime.Descriptor instead.

func (Mime) Number

func (x Mime) Number() protoreflect.EnumNumber

func (Mime) String

func (x Mime) String() string

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

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetKey

func (x *PublicKey) GetKey() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

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

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

Jump to

Keyboard shortcuts

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