vncnetwork

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "unset_st",
		1: "down",
		2: "up",
	}
	Status_value = map[string]int32{
		"unset_st": 0,
		"down":     1,
		"up":       2,
	}
)

Enum value maps for Status.

View Source
var (
	MouseDataButton_name = map[int32]string{
		0: "unset_btn",
		1: "left",
		2: "middle",
		3: "right",
	}
	MouseDataButton_value = map[string]int32{
		"unset_btn": 0,
		"left":      1,
		"middle":    2,
		"right":     3,
	}
)

Enum value maps for MouseDataButton.

View Source
var (
	ClipboardDataType_name = map[int32]string{
		0: "unset_type",
		1: "text",
		2: "image",
		3: "file",
	}
	ClipboardDataType_value = map[string]int32{
		"unset_type": 0,
		"text":       1,
		"image":      2,
		"file":       3,
	}
)

Enum value maps for ClipboardDataType.

View Source
var (
	VncMsgType_name = map[int32]string{
		0: "capture_req",
		1: "capture_data",
		2: "mouse_event",
		3: "keyboard_event",
		4: "set_cursor",
		5: "scroll_event",
		6: "clipboard_event",
	}
	VncMsgType_value = map[string]int32{
		"capture_req":     0,
		"capture_data":    1,
		"mouse_event":     2,
		"keyboard_event":  3,
		"set_cursor":      4,
		"scroll_event":    5,
		"clipboard_event": 6,
	}
)

Enum value maps for VncMsgType.

View Source
var File_vncmsg_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClipboardData

type ClipboardData struct {
	Set   bool              `protobuf:"varint,1,opt,name=set,proto3" json:"set,omitempty"`
	XType ClipboardDataType `protobuf:"varint,2,opt,name=_type,json=Type,proto3,enum=vncnetwork.ClipboardDataType" json:"_type,omitempty"`
	// Types that are assignable to Payload:
	//	*ClipboardData_Data
	Payload isClipboardData_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*ClipboardData) Descriptor deprecated

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

Deprecated: Use ClipboardData.ProtoReflect.Descriptor instead.

func (*ClipboardData) GetData

func (x *ClipboardData) GetData() string

func (*ClipboardData) GetPayload

func (m *ClipboardData) GetPayload() isClipboardData_Payload

func (*ClipboardData) GetSet

func (x *ClipboardData) GetSet() bool

func (*ClipboardData) GetXType

func (x *ClipboardData) GetXType() ClipboardDataType

func (*ClipboardData) ProtoMessage

func (*ClipboardData) ProtoMessage()

func (*ClipboardData) ProtoReflect

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

func (*ClipboardData) Reset

func (x *ClipboardData) Reset()

func (*ClipboardData) String

func (x *ClipboardData) String() string

type ClipboardDataType

type ClipboardDataType int32
const (
	ClipboardData_unset_type ClipboardDataType = 0
	ClipboardData_text       ClipboardDataType = 1
	ClipboardData_image      ClipboardDataType = 2
	ClipboardData_file       ClipboardDataType = 3
)

func (ClipboardDataType) Descriptor

func (ClipboardDataType) Enum

func (ClipboardDataType) EnumDescriptor deprecated

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

Deprecated: Use ClipboardDataType.Descriptor instead.

func (ClipboardDataType) Number

func (ClipboardDataType) String

func (x ClipboardDataType) String() string

func (ClipboardDataType) Type

type ClipboardData_Data

type ClipboardData_Data struct {
	Data string `protobuf:"bytes,10,opt,name=data,proto3,oneof"` // text data
}

type ImageData

type ImageData struct {
	Ok     bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Bits   uint32 `protobuf:"varint,3,opt,name=bits,proto3" json:"bits,omitempty"`
	Width  uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
	Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Data   []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageData) Descriptor deprecated

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

Deprecated: Use ImageData.ProtoReflect.Descriptor instead.

func (*ImageData) GetBits

func (x *ImageData) GetBits() uint32

func (*ImageData) GetData

func (x *ImageData) GetData() []byte

func (*ImageData) GetHeight

func (x *ImageData) GetHeight() uint32

func (*ImageData) GetMsg

func (x *ImageData) GetMsg() string

func (*ImageData) GetOk

func (x *ImageData) GetOk() bool

func (*ImageData) GetWidth

func (x *ImageData) GetWidth() uint32

func (*ImageData) ProtoMessage

func (*ImageData) ProtoMessage()

func (*ImageData) ProtoReflect

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

func (*ImageData) Reset

func (x *ImageData) Reset()

func (*ImageData) String

func (x *ImageData) String() string

type KeyboardData

type KeyboardData struct {
	Type Status `protobuf:"varint,1,opt,name=type,proto3,enum=vncnetwork.Status" json:"type,omitempty"`
	Key  string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyboardData) Descriptor deprecated

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

Deprecated: Use KeyboardData.ProtoReflect.Descriptor instead.

func (*KeyboardData) GetKey

func (x *KeyboardData) GetKey() string

func (*KeyboardData) GetType

func (x *KeyboardData) GetType() Status

func (*KeyboardData) ProtoMessage

func (*KeyboardData) ProtoMessage()

func (*KeyboardData) ProtoReflect

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

func (*KeyboardData) Reset

func (x *KeyboardData) Reset()

func (*KeyboardData) String

func (x *KeyboardData) String() string

type MouseData

type MouseData struct {
	Type Status          `protobuf:"varint,1,opt,name=type,proto3,enum=vncnetwork.Status" json:"type,omitempty"`
	Btn  MouseDataButton `protobuf:"varint,2,opt,name=btn,proto3,enum=vncnetwork.MouseDataButton" json:"btn,omitempty"`
	X    uint32          `protobuf:"varint,3,opt,name=x,proto3" json:"x,omitempty"`
	Y    uint32          `protobuf:"varint,4,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*MouseData) Descriptor deprecated

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

Deprecated: Use MouseData.ProtoReflect.Descriptor instead.

func (*MouseData) GetBtn

func (x *MouseData) GetBtn() MouseDataButton

func (*MouseData) GetType

func (x *MouseData) GetType() Status

func (*MouseData) GetX

func (x *MouseData) GetX() uint32

func (*MouseData) GetY

func (x *MouseData) GetY() uint32

func (*MouseData) ProtoMessage

func (*MouseData) ProtoMessage()

func (*MouseData) ProtoReflect

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

func (*MouseData) Reset

func (x *MouseData) Reset()

func (*MouseData) String

func (x *MouseData) String() string

type MouseDataButton

type MouseDataButton int32
const (
	MouseData_unset_btn MouseDataButton = 0
	MouseData_left      MouseDataButton = 1
	MouseData_middle    MouseDataButton = 2
	MouseData_right     MouseDataButton = 3
)

func (MouseDataButton) Descriptor

func (MouseDataButton) Enum

func (x MouseDataButton) Enum() *MouseDataButton

func (MouseDataButton) EnumDescriptor deprecated

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

Deprecated: Use MouseDataButton.Descriptor instead.

func (MouseDataButton) Number

func (MouseDataButton) String

func (x MouseDataButton) String() string

func (MouseDataButton) Type

type ScrollData

type ScrollData struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*ScrollData) Descriptor deprecated

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

Deprecated: Use ScrollData.ProtoReflect.Descriptor instead.

func (*ScrollData) GetX

func (x *ScrollData) GetX() int32

func (*ScrollData) GetY

func (x *ScrollData) GetY() int32

func (*ScrollData) ProtoMessage

func (*ScrollData) ProtoMessage()

func (*ScrollData) ProtoReflect

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

func (*ScrollData) Reset

func (x *ScrollData) Reset()

func (*ScrollData) String

func (x *ScrollData) String() string

type Status

type Status int32
const (
	Status_unset_st Status = 0
	Status_down     Status = 1
	Status_up       Status = 2
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type VncMsg

type VncMsg struct {
	XType VncMsgType `protobuf:"varint,1,opt,name=_type,json=Type,proto3,enum=vncnetwork.VncMsgType" json:"_type,omitempty"`
	// Types that are assignable to Payload:
	//	*VncMsg_Data
	//	*VncMsg_Mouse
	//	*VncMsg_Keyboard
	//	*VncMsg_ShowCursor
	//	*VncMsg_Scroll
	//	*VncMsg_Clipboard
	Payload isVncMsg_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*VncMsg) Descriptor deprecated

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

Deprecated: Use VncMsg.ProtoReflect.Descriptor instead.

func (*VncMsg) GetClipboard

func (x *VncMsg) GetClipboard() *ClipboardData

func (*VncMsg) GetData

func (x *VncMsg) GetData() *ImageData

func (*VncMsg) GetKeyboard

func (x *VncMsg) GetKeyboard() *KeyboardData

func (*VncMsg) GetMouse

func (x *VncMsg) GetMouse() *MouseData

func (*VncMsg) GetPayload

func (m *VncMsg) GetPayload() isVncMsg_Payload

func (*VncMsg) GetScroll

func (x *VncMsg) GetScroll() *ScrollData

func (*VncMsg) GetShowCursor

func (x *VncMsg) GetShowCursor() bool

func (*VncMsg) GetXType

func (x *VncMsg) GetXType() VncMsgType

func (*VncMsg) ProtoMessage

func (*VncMsg) ProtoMessage()

func (*VncMsg) ProtoReflect

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

func (*VncMsg) Reset

func (x *VncMsg) Reset()

func (*VncMsg) String

func (x *VncMsg) String() string

type VncMsgType

type VncMsgType int32
const (
	VncMsg_capture_req     VncMsgType = 0
	VncMsg_capture_data    VncMsgType = 1
	VncMsg_mouse_event     VncMsgType = 2
	VncMsg_keyboard_event  VncMsgType = 3
	VncMsg_set_cursor      VncMsgType = 4
	VncMsg_scroll_event    VncMsgType = 5
	VncMsg_clipboard_event VncMsgType = 6
)

func (VncMsgType) Descriptor

func (VncMsgType) Descriptor() protoreflect.EnumDescriptor

func (VncMsgType) Enum

func (x VncMsgType) Enum() *VncMsgType

func (VncMsgType) EnumDescriptor deprecated

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

Deprecated: Use VncMsgType.Descriptor instead.

func (VncMsgType) Number

func (x VncMsgType) Number() protoreflect.EnumNumber

func (VncMsgType) String

func (x VncMsgType) String() string

func (VncMsgType) Type

type VncMsg_Clipboard

type VncMsg_Clipboard struct {
	Clipboard *ClipboardData `protobuf:"bytes,7,opt,name=clipboard,proto3,oneof"`
}

type VncMsg_Data

type VncMsg_Data struct {
	Data *ImageData `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type VncMsg_Keyboard

type VncMsg_Keyboard struct {
	Keyboard *KeyboardData `protobuf:"bytes,4,opt,name=keyboard,proto3,oneof"`
}

type VncMsg_Mouse

type VncMsg_Mouse struct {
	Mouse *MouseData `protobuf:"bytes,3,opt,name=mouse,proto3,oneof"`
}

type VncMsg_Scroll

type VncMsg_Scroll struct {
	Scroll *ScrollData `protobuf:"bytes,6,opt,name=scroll,proto3,oneof"`
}

type VncMsg_ShowCursor

type VncMsg_ShowCursor struct {
	ShowCursor bool `protobuf:"varint,5,opt,name=show_cursor,json=showCursor,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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