proto

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandStatus_name = map[int32]string{
		0:  "OK",
		1:  "ERROR",
		2:  "ERROR_DECODE",
		3:  "ERROR_NOT_IMPLEMENTED",
		4:  "ERROR_BUSY",
		14: "ERROR_CONTINUOUS_COMMAND_INTERRUPTED",
		15: "ERROR_INVALID_PARAMETERS",
		5:  "ERROR_STORAGE_NOT_READY",
		6:  "ERROR_STORAGE_EXIST",
		7:  "ERROR_STORAGE_NOT_EXIST",
		8:  "ERROR_STORAGE_INVALID_PARAMETER",
		9:  "ERROR_STORAGE_DENIED",
		10: "ERROR_STORAGE_INVALID_NAME",
		11: "ERROR_STORAGE_INTERNAL",
		12: "ERROR_STORAGE_NOT_IMPLEMENTED",
		13: "ERROR_STORAGE_ALREADY_OPEN",
		18: "ERROR_STORAGE_DIR_NOT_EMPTY",
		16: "ERROR_APP_CANT_START",
		17: "ERROR_APP_SYSTEM_LOCKED",
		19: "ERROR_VIRTUAL_DISPLAY_ALREADY_STARTED",
		20: "ERROR_VIRTUAL_DISPLAY_NOT_STARTED",
	}
	CommandStatus_value = map[string]int32{
		"OK":                                    0,
		"ERROR":                                 1,
		"ERROR_DECODE":                          2,
		"ERROR_NOT_IMPLEMENTED":                 3,
		"ERROR_BUSY":                            4,
		"ERROR_CONTINUOUS_COMMAND_INTERRUPTED":  14,
		"ERROR_INVALID_PARAMETERS":              15,
		"ERROR_STORAGE_NOT_READY":               5,
		"ERROR_STORAGE_EXIST":                   6,
		"ERROR_STORAGE_NOT_EXIST":               7,
		"ERROR_STORAGE_INVALID_PARAMETER":       8,
		"ERROR_STORAGE_DENIED":                  9,
		"ERROR_STORAGE_INVALID_NAME":            10,
		"ERROR_STORAGE_INTERNAL":                11,
		"ERROR_STORAGE_NOT_IMPLEMENTED":         12,
		"ERROR_STORAGE_ALREADY_OPEN":            13,
		"ERROR_STORAGE_DIR_NOT_EMPTY":           18,
		"ERROR_APP_CANT_START":                  16,
		"ERROR_APP_SYSTEM_LOCKED":               17,
		"ERROR_VIRTUAL_DISPLAY_ALREADY_STARTED": 19,
		"ERROR_VIRTUAL_DISPLAY_NOT_STARTED":     20,
	}
)

Enum value maps for CommandStatus.

View Source
var File_flipper_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CommandStatus

type CommandStatus int32
const (
	CommandStatus_OK CommandStatus = 0
	//*< Common Errors
	CommandStatus_ERROR                                CommandStatus = 1  //*< Unknown error
	CommandStatus_ERROR_DECODE                         CommandStatus = 2  //*< Command can't be decoded successfully - command_id in response may be wrong!
	CommandStatus_ERROR_NOT_IMPLEMENTED                CommandStatus = 3  //*< Command succesfully decoded, but not implemented (deprecated or not yet implemented)
	CommandStatus_ERROR_BUSY                           CommandStatus = 4  //*< Somebody took global lock, so not all commands are available
	CommandStatus_ERROR_CONTINUOUS_COMMAND_INTERRUPTED CommandStatus = 14 //*< Not received has_next == 0
	CommandStatus_ERROR_INVALID_PARAMETERS             CommandStatus = 15 //*< not provided (or provided invalid) crucial parameters to perform rpc
	//*< Storage Errors
	CommandStatus_ERROR_STORAGE_NOT_READY         CommandStatus = 5  //*< FS not ready
	CommandStatus_ERROR_STORAGE_EXIST             CommandStatus = 6  //*< File/Dir alrady exist
	CommandStatus_ERROR_STORAGE_NOT_EXIST         CommandStatus = 7  //*< File/Dir does not exist
	CommandStatus_ERROR_STORAGE_INVALID_PARAMETER CommandStatus = 8  //*< Invalid API parameter
	CommandStatus_ERROR_STORAGE_DENIED            CommandStatus = 9  //*< Access denied
	CommandStatus_ERROR_STORAGE_INVALID_NAME      CommandStatus = 10 //*< Invalid name/path
	CommandStatus_ERROR_STORAGE_INTERNAL          CommandStatus = 11 //*< Internal error
	CommandStatus_ERROR_STORAGE_NOT_IMPLEMENTED   CommandStatus = 12 //*< Functon not implemented
	CommandStatus_ERROR_STORAGE_ALREADY_OPEN      CommandStatus = 13 //*< File/Dir already opened
	CommandStatus_ERROR_STORAGE_DIR_NOT_EMPTY     CommandStatus = 18 //*< Directory, you're going to remove is not empty
	//*< Application Errors
	CommandStatus_ERROR_APP_CANT_START    CommandStatus = 16 //*< Can't start app - internal error
	CommandStatus_ERROR_APP_SYSTEM_LOCKED CommandStatus = 17 //*< Another app is running
	//*< Virtual Display Errors
	CommandStatus_ERROR_VIRTUAL_DISPLAY_ALREADY_STARTED CommandStatus = 19 //*< Virtual Display session can't be started twice
	CommandStatus_ERROR_VIRTUAL_DISPLAY_NOT_STARTED     CommandStatus = 20 //*< Virtual Display session can't be stopped when it's not started
)

func (CommandStatus) Descriptor

func (CommandStatus) Enum

func (x CommandStatus) Enum() *CommandStatus

func (CommandStatus) EnumDescriptor deprecated

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

Deprecated: Use CommandStatus.Descriptor instead.

func (CommandStatus) Number

func (CommandStatus) String

func (x CommandStatus) String() string

func (CommandStatus) Type

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

There are Server commands (e.g. Storage_write), which have no body message in response. But 'oneof' obligate to have at least 1 encoded message in scope. For this needs Empty message is implemented.

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Main

type Main struct {
	CommandId     uint32        `protobuf:"varint,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	CommandStatus CommandStatus `protobuf:"varint,2,opt,name=command_status,json=commandStatus,proto3,enum=PB.CommandStatus" json:"command_status,omitempty"`
	HasNext       bool          `protobuf:"varint,3,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	// Types that are assignable to Content:
	//	*Main_Empty
	//	*Main_StopSession
	//	*Main_SystemPingRequest
	//	*Main_SystemPingResponse
	//	*Main_SystemRebootRequest
	//	*Main_SystemDeviceInfoRequest
	//	*Main_SystemDeviceInfoResponse
	//	*Main_SystemFactoryResetRequest
	//	*Main_SystemGetDatetimeRequest
	//	*Main_SystemGetDatetimeResponse
	//	*Main_SystemSetDatetimeRequest
	//	*Main_SystemPlayAudiovisualAlertRequest
	//	*Main_StorageInfoRequest
	//	*Main_StorageInfoResponse
	//	*Main_StorageStatRequest
	//	*Main_StorageStatResponse
	//	*Main_StorageListRequest
	//	*Main_StorageListResponse
	//	*Main_StorageReadRequest
	//	*Main_StorageReadResponse
	//	*Main_StorageWriteRequest
	//	*Main_StorageDeleteRequest
	//	*Main_StorageMkdirRequest
	//	*Main_StorageMd5SumRequest
	//	*Main_StorageMd5SumResponse
	//	*Main_StorageRenameRequest
	//	*Main_AppStartRequest
	//	*Main_AppLockStatusRequest
	//	*Main_AppLockStatusResponse
	//	*Main_GuiStartScreenStreamRequest
	//	*Main_GuiStopScreenStreamRequest
	//	*Main_GuiScreenFrame
	//	*Main_GuiSendInputEventRequest
	//	*Main_GuiStartVirtualDisplayRequest
	//	*Main_GuiStopVirtualDisplayRequest
	Content isMain_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*Main) Descriptor deprecated

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

Deprecated: Use Main.ProtoReflect.Descriptor instead.

func (*Main) GetAppLockStatusRequest

func (x *Main) GetAppLockStatusRequest() *app.LockStatusRequest

func (*Main) GetAppLockStatusResponse

func (x *Main) GetAppLockStatusResponse() *app.LockStatusResponse

func (*Main) GetAppStartRequest

func (x *Main) GetAppStartRequest() *app.StartRequest

func (*Main) GetCommandId

func (x *Main) GetCommandId() uint32

func (*Main) GetCommandStatus

func (x *Main) GetCommandStatus() CommandStatus

func (*Main) GetContent

func (m *Main) GetContent() isMain_Content

func (*Main) GetEmpty

func (x *Main) GetEmpty() *Empty

func (*Main) GetGuiScreenFrame

func (x *Main) GetGuiScreenFrame() *gui.ScreenFrame

func (*Main) GetGuiSendInputEventRequest

func (x *Main) GetGuiSendInputEventRequest() *gui.SendInputEventRequest

func (*Main) GetGuiStartScreenStreamRequest

func (x *Main) GetGuiStartScreenStreamRequest() *gui.StartScreenStreamRequest

func (*Main) GetGuiStartVirtualDisplayRequest

func (x *Main) GetGuiStartVirtualDisplayRequest() *gui.StartVirtualDisplayRequest

func (*Main) GetGuiStopScreenStreamRequest

func (x *Main) GetGuiStopScreenStreamRequest() *gui.StopScreenStreamRequest

func (*Main) GetGuiStopVirtualDisplayRequest

func (x *Main) GetGuiStopVirtualDisplayRequest() *gui.StopVirtualDisplayRequest

func (*Main) GetHasNext

func (x *Main) GetHasNext() bool

func (*Main) GetStopSession

func (x *Main) GetStopSession() *StopSession

func (*Main) GetStorageDeleteRequest

func (x *Main) GetStorageDeleteRequest() *storage.DeleteRequest

func (*Main) GetStorageInfoRequest added in v0.3.0

func (x *Main) GetStorageInfoRequest() *storage.InfoRequest

func (*Main) GetStorageInfoResponse added in v0.3.0

func (x *Main) GetStorageInfoResponse() *storage.InfoResponse

func (*Main) GetStorageListRequest

func (x *Main) GetStorageListRequest() *storage.ListRequest

func (*Main) GetStorageListResponse

func (x *Main) GetStorageListResponse() *storage.ListResponse

func (*Main) GetStorageMd5SumRequest

func (x *Main) GetStorageMd5SumRequest() *storage.Md5SumRequest

func (*Main) GetStorageMd5SumResponse

func (x *Main) GetStorageMd5SumResponse() *storage.Md5SumResponse

func (*Main) GetStorageMkdirRequest

func (x *Main) GetStorageMkdirRequest() *storage.MkdirRequest

func (*Main) GetStorageReadRequest

func (x *Main) GetStorageReadRequest() *storage.ReadRequest

func (*Main) GetStorageReadResponse

func (x *Main) GetStorageReadResponse() *storage.ReadResponse

func (*Main) GetStorageRenameRequest added in v0.3.0

func (x *Main) GetStorageRenameRequest() *storage.RenameRequest

func (*Main) GetStorageStatRequest

func (x *Main) GetStorageStatRequest() *storage.StatRequest

func (*Main) GetStorageStatResponse

func (x *Main) GetStorageStatResponse() *storage.StatResponse

func (*Main) GetStorageWriteRequest

func (x *Main) GetStorageWriteRequest() *storage.WriteRequest

func (*Main) GetSystemDeviceInfoRequest added in v0.3.0

func (x *Main) GetSystemDeviceInfoRequest() *system.DeviceInfoRequest

func (*Main) GetSystemDeviceInfoResponse added in v0.3.0

func (x *Main) GetSystemDeviceInfoResponse() *system.DeviceInfoResponse

func (*Main) GetSystemFactoryResetRequest added in v0.4.0

func (x *Main) GetSystemFactoryResetRequest() *system.FactoryResetRequest

func (*Main) GetSystemGetDatetimeRequest added in v0.5.0

func (x *Main) GetSystemGetDatetimeRequest() *system.GetDateTimeRequest

func (*Main) GetSystemGetDatetimeResponse added in v0.5.0

func (x *Main) GetSystemGetDatetimeResponse() *system.GetDateTimeResponse

func (*Main) GetSystemPingRequest added in v0.3.0

func (x *Main) GetSystemPingRequest() *system.PingRequest

func (*Main) GetSystemPingResponse added in v0.3.0

func (x *Main) GetSystemPingResponse() *system.PingResponse

func (*Main) GetSystemPlayAudiovisualAlertRequest added in v0.6.0

func (x *Main) GetSystemPlayAudiovisualAlertRequest() *system.PlayAudiovisualAlertRequest

func (*Main) GetSystemRebootRequest added in v0.3.0

func (x *Main) GetSystemRebootRequest() *system.RebootRequest

func (*Main) GetSystemSetDatetimeRequest added in v0.5.0

func (x *Main) GetSystemSetDatetimeRequest() *system.SetDateTimeRequest

func (*Main) ProtoMessage

func (*Main) ProtoMessage()

func (*Main) ProtoReflect

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

func (*Main) Reset

func (x *Main) Reset()

func (*Main) String

func (x *Main) String() string

type Main_AppLockStatusRequest

type Main_AppLockStatusRequest struct {
	AppLockStatusRequest *app.LockStatusRequest `protobuf:"bytes,17,opt,name=app_lock_status_request,json=appLockStatusRequest,proto3,oneof"`
}

type Main_AppLockStatusResponse

type Main_AppLockStatusResponse struct {
	AppLockStatusResponse *app.LockStatusResponse `protobuf:"bytes,18,opt,name=app_lock_status_response,json=appLockStatusResponse,proto3,oneof"`
}

type Main_AppStartRequest

type Main_AppStartRequest struct {
	AppStartRequest *app.StartRequest `protobuf:"bytes,16,opt,name=app_start_request,json=appStartRequest,proto3,oneof"`
}

type Main_Empty

type Main_Empty struct {
	Empty *Empty `protobuf:"bytes,4,opt,name=empty,proto3,oneof"`
}

type Main_GuiScreenFrame

type Main_GuiScreenFrame struct {
	GuiScreenFrame *gui.ScreenFrame `protobuf:"bytes,22,opt,name=gui_screen_frame,json=guiScreenFrame,proto3,oneof"`
}

type Main_GuiSendInputEventRequest

type Main_GuiSendInputEventRequest struct {
	GuiSendInputEventRequest *gui.SendInputEventRequest `protobuf:"bytes,23,opt,name=gui_send_input_event_request,json=guiSendInputEventRequest,proto3,oneof"`
}

type Main_GuiStartScreenStreamRequest

type Main_GuiStartScreenStreamRequest struct {
	GuiStartScreenStreamRequest *gui.StartScreenStreamRequest `protobuf:"bytes,20,opt,name=gui_start_screen_stream_request,json=guiStartScreenStreamRequest,proto3,oneof"`
}

type Main_GuiStartVirtualDisplayRequest

type Main_GuiStartVirtualDisplayRequest struct {
	GuiStartVirtualDisplayRequest *gui.StartVirtualDisplayRequest `protobuf:"bytes,26,opt,name=gui_start_virtual_display_request,json=guiStartVirtualDisplayRequest,proto3,oneof"`
}

type Main_GuiStopScreenStreamRequest

type Main_GuiStopScreenStreamRequest struct {
	GuiStopScreenStreamRequest *gui.StopScreenStreamRequest `protobuf:"bytes,21,opt,name=gui_stop_screen_stream_request,json=guiStopScreenStreamRequest,proto3,oneof"`
}

type Main_GuiStopVirtualDisplayRequest

type Main_GuiStopVirtualDisplayRequest struct {
	GuiStopVirtualDisplayRequest *gui.StopVirtualDisplayRequest `protobuf:"bytes,27,opt,name=gui_stop_virtual_display_request,json=guiStopVirtualDisplayRequest,proto3,oneof"`
}

type Main_StopSession

type Main_StopSession struct {
	StopSession *StopSession `protobuf:"bytes,19,opt,name=stop_session,json=stopSession,proto3,oneof"`
}

type Main_StorageDeleteRequest

type Main_StorageDeleteRequest struct {
	StorageDeleteRequest *storage.DeleteRequest `protobuf:"bytes,12,opt,name=storage_delete_request,json=storageDeleteRequest,proto3,oneof"`
}

type Main_StorageInfoRequest added in v0.3.0

type Main_StorageInfoRequest struct {
	StorageInfoRequest *storage.InfoRequest `protobuf:"bytes,28,opt,name=storage_info_request,json=storageInfoRequest,proto3,oneof"`
}

type Main_StorageInfoResponse added in v0.3.0

type Main_StorageInfoResponse struct {
	StorageInfoResponse *storage.InfoResponse `protobuf:"bytes,29,opt,name=storage_info_response,json=storageInfoResponse,proto3,oneof"`
}

type Main_StorageListRequest

type Main_StorageListRequest struct {
	StorageListRequest *storage.ListRequest `protobuf:"bytes,7,opt,name=storage_list_request,json=storageListRequest,proto3,oneof"`
}

type Main_StorageListResponse

type Main_StorageListResponse struct {
	StorageListResponse *storage.ListResponse `protobuf:"bytes,8,opt,name=storage_list_response,json=storageListResponse,proto3,oneof"`
}

type Main_StorageMd5SumRequest

type Main_StorageMd5SumRequest struct {
	StorageMd5SumRequest *storage.Md5SumRequest `protobuf:"bytes,14,opt,name=storage_md5sum_request,json=storageMd5sumRequest,proto3,oneof"`
}

type Main_StorageMd5SumResponse

type Main_StorageMd5SumResponse struct {
	StorageMd5SumResponse *storage.Md5SumResponse `protobuf:"bytes,15,opt,name=storage_md5sum_response,json=storageMd5sumResponse,proto3,oneof"`
}

type Main_StorageMkdirRequest

type Main_StorageMkdirRequest struct {
	StorageMkdirRequest *storage.MkdirRequest `protobuf:"bytes,13,opt,name=storage_mkdir_request,json=storageMkdirRequest,proto3,oneof"`
}

type Main_StorageReadRequest

type Main_StorageReadRequest struct {
	StorageReadRequest *storage.ReadRequest `protobuf:"bytes,9,opt,name=storage_read_request,json=storageReadRequest,proto3,oneof"`
}

type Main_StorageReadResponse

type Main_StorageReadResponse struct {
	StorageReadResponse *storage.ReadResponse `protobuf:"bytes,10,opt,name=storage_read_response,json=storageReadResponse,proto3,oneof"`
}

type Main_StorageRenameRequest added in v0.3.0

type Main_StorageRenameRequest struct {
	StorageRenameRequest *storage.RenameRequest `protobuf:"bytes,30,opt,name=storage_rename_request,json=storageRenameRequest,proto3,oneof"`
}

type Main_StorageStatRequest

type Main_StorageStatRequest struct {
	StorageStatRequest *storage.StatRequest `protobuf:"bytes,24,opt,name=storage_stat_request,json=storageStatRequest,proto3,oneof"`
}

type Main_StorageStatResponse

type Main_StorageStatResponse struct {
	StorageStatResponse *storage.StatResponse `protobuf:"bytes,25,opt,name=storage_stat_response,json=storageStatResponse,proto3,oneof"`
}

type Main_StorageWriteRequest

type Main_StorageWriteRequest struct {
	StorageWriteRequest *storage.WriteRequest `protobuf:"bytes,11,opt,name=storage_write_request,json=storageWriteRequest,proto3,oneof"`
}

type Main_SystemDeviceInfoRequest added in v0.3.0

type Main_SystemDeviceInfoRequest struct {
	SystemDeviceInfoRequest *system.DeviceInfoRequest `protobuf:"bytes,32,opt,name=system_device_info_request,json=systemDeviceInfoRequest,proto3,oneof"`
}

type Main_SystemDeviceInfoResponse added in v0.3.0

type Main_SystemDeviceInfoResponse struct {
	SystemDeviceInfoResponse *system.DeviceInfoResponse `protobuf:"bytes,33,opt,name=system_device_info_response,json=systemDeviceInfoResponse,proto3,oneof"`
}

type Main_SystemFactoryResetRequest added in v0.4.0

type Main_SystemFactoryResetRequest struct {
	SystemFactoryResetRequest *system.FactoryResetRequest `protobuf:"bytes,34,opt,name=system_factory_reset_request,json=systemFactoryResetRequest,proto3,oneof"`
}

type Main_SystemGetDatetimeRequest added in v0.5.0

type Main_SystemGetDatetimeRequest struct {
	SystemGetDatetimeRequest *system.GetDateTimeRequest `protobuf:"bytes,35,opt,name=system_get_datetime_request,json=systemGetDatetimeRequest,proto3,oneof"`
}

type Main_SystemGetDatetimeResponse added in v0.5.0

type Main_SystemGetDatetimeResponse struct {
	SystemGetDatetimeResponse *system.GetDateTimeResponse `protobuf:"bytes,36,opt,name=system_get_datetime_response,json=systemGetDatetimeResponse,proto3,oneof"`
}

type Main_SystemPingRequest added in v0.3.0

type Main_SystemPingRequest struct {
	SystemPingRequest *system.PingRequest `protobuf:"bytes,5,opt,name=system_ping_request,json=systemPingRequest,proto3,oneof"`
}

type Main_SystemPingResponse added in v0.3.0

type Main_SystemPingResponse struct {
	SystemPingResponse *system.PingResponse `protobuf:"bytes,6,opt,name=system_ping_response,json=systemPingResponse,proto3,oneof"`
}

type Main_SystemPlayAudiovisualAlertRequest added in v0.6.0

type Main_SystemPlayAudiovisualAlertRequest struct {
	SystemPlayAudiovisualAlertRequest *system.PlayAudiovisualAlertRequest `protobuf:"bytes,38,opt,name=system_play_audiovisual_alert_request,json=systemPlayAudiovisualAlertRequest,proto3,oneof"`
}

type Main_SystemRebootRequest added in v0.3.0

type Main_SystemRebootRequest struct {
	SystemRebootRequest *system.RebootRequest `protobuf:"bytes,31,opt,name=system_reboot_request,json=systemRebootRequest,proto3,oneof"`
}

type Main_SystemSetDatetimeRequest added in v0.5.0

type Main_SystemSetDatetimeRequest struct {
	SystemSetDatetimeRequest *system.SetDateTimeRequest `protobuf:"bytes,37,opt,name=system_set_datetime_request,json=systemSetDatetimeRequest,proto3,oneof"`
}

type StopSession

type StopSession struct {
	// contains filtered or unexported fields
}

func (*StopSession) Descriptor deprecated

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

Deprecated: Use StopSession.ProtoReflect.Descriptor instead.

func (*StopSession) ProtoMessage

func (*StopSession) ProtoMessage()

func (*StopSession) ProtoReflect

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

func (*StopSession) Reset

func (x *StopSession) Reset()

func (*StopSession) String

func (x *StopSession) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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