node

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeviceState_name = map[int32]string{
		0: "None",
		1: "Unknown",
		2: "Shutdown",
		3: "RemoteDisconnected",
		4: "Booted",
		5: "Locked",
	}
	DeviceState_value = map[string]int32{
		"None":               0,
		"Unknown":            1,
		"Shutdown":           2,
		"RemoteDisconnected": 3,
		"Booted":             4,
		"Locked":             5,
	}
)

Enum value maps for DeviceState.

View Source
var (
	ErrAppNotFound = fmt.Errorf("AppBundleMetaData not found")
)

Functions

This section is empty.

Types

type AndroidParams

type AndroidParams struct {
	LaunchActivity string `protobuf:"bytes,1,opt,name=LaunchActivity,proto3" json:"LaunchActivity,omitempty"`
	// contains filtered or unexported fields
}

func (*AndroidParams) Descriptor deprecated

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

Deprecated: Use AndroidParams.ProtoReflect.Descriptor instead.

func (*AndroidParams) GetLaunchActivity

func (x *AndroidParams) GetLaunchActivity() string

func (*AndroidParams) ProtoMessage

func (*AndroidParams) ProtoMessage()

func (*AndroidParams) ProtoReflect

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

func (*AndroidParams) Reset

func (x *AndroidParams) Reset()

func (*AndroidParams) String

func (x *AndroidParams) String() string

type AppBundleManager

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

func NewAppBundleManager

func NewAppBundleManager(dataDir string) (*AppBundleManager, error)

func (*AppBundleManager) GetAppParameter

func (dm *AppBundleManager) GetAppParameter(hash string) (*AppBundleMetaData, error)

func (*AppBundleManager) StoreData

func (dm *AppBundleManager) StoreData(appData []byte, metadata *AppBundleMetaData) error

type AppBundleMetaData

type AppBundleMetaData struct {
	Filename string `json:"filename"`
	FileHash string `json:"file_hash"`
	FileSize int64  `json:"file_size"`
	FilePath string `json:"-"`
}

type AppParameterRequest

type AppParameterRequest struct {
	DeviceID   string     `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	Platform   string     `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform,omitempty"`
	Identifier string     `protobuf:"bytes,3,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Name       string     `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"`
	Version    string     `protobuf:"bytes,5,opt,name=Version,proto3" json:"Version,omitempty"`
	App        *AppParams `protobuf:"bytes,6,opt,name=App,proto3,oneof" json:"App,omitempty"`
	Web        *WebParams `protobuf:"bytes,7,opt,name=Web,proto3,oneof" json:"Web,omitempty"`
	// contains filtered or unexported fields
}

func (*AppParameterRequest) Descriptor deprecated

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

Deprecated: Use AppParameterRequest.ProtoReflect.Descriptor instead.

func (*AppParameterRequest) GetApp

func (x *AppParameterRequest) GetApp() *AppParams

func (*AppParameterRequest) GetDeviceID

func (x *AppParameterRequest) GetDeviceID() string

func (*AppParameterRequest) GetIdentifier

func (x *AppParameterRequest) GetIdentifier() string

func (*AppParameterRequest) GetName

func (x *AppParameterRequest) GetName() string

func (*AppParameterRequest) GetPlatform

func (x *AppParameterRequest) GetPlatform() string

func (*AppParameterRequest) GetVersion

func (x *AppParameterRequest) GetVersion() string

func (*AppParameterRequest) GetWeb

func (x *AppParameterRequest) GetWeb() *WebParams

func (*AppParameterRequest) ProtoMessage

func (*AppParameterRequest) ProtoMessage()

func (*AppParameterRequest) ProtoReflect

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

func (*AppParameterRequest) Reset

func (x *AppParameterRequest) Reset()

func (*AppParameterRequest) String

func (x *AppParameterRequest) String() string

type AppParams

type AppParams struct {
	AppID      int32             `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
	AppPath    string            `protobuf:"bytes,2,opt,name=AppPath,proto3" json:"AppPath,omitempty"`
	Additional string            `protobuf:"bytes,3,opt,name=Additional,proto3" json:"Additional,omitempty"`
	Hash       string            `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	Size       int64             `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
	Android    *AndroidParams    `protobuf:"bytes,6,opt,name=Android,proto3,oneof" json:"Android,omitempty"`
	Executable *ExecutableParams `protobuf:"bytes,7,opt,name=Executable,proto3,oneof" json:"Executable,omitempty"`
	// contains filtered or unexported fields
}

func (*AppParams) Descriptor deprecated

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

Deprecated: Use AppParams.ProtoReflect.Descriptor instead.

func (*AppParams) GetAdditional

func (x *AppParams) GetAdditional() string

func (*AppParams) GetAndroid

func (x *AppParams) GetAndroid() *AndroidParams

func (*AppParams) GetAppID

func (x *AppParams) GetAppID() int32

func (*AppParams) GetAppPath

func (x *AppParams) GetAppPath() string

func (*AppParams) GetExecutable

func (x *AppParams) GetExecutable() *ExecutableParams

func (*AppParams) GetHash

func (x *AppParams) GetHash() string

func (*AppParams) GetSize

func (x *AppParams) GetSize() int64

func (*AppParams) ProtoMessage

func (*AppParams) ProtoMessage()

func (*AppParams) ProtoReflect

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

func (*AppParams) Reset

func (x *AppParams) Reset()

func (*AppParams) String

func (x *AppParams) String() string

type BoolResponse

type BoolResponse struct {
	Value        bool   `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
	ErrorCode    int32  `protobuf:"varint,2,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"`
	ErrorMessage string `protobuf:"bytes,3,opt,name=ErrorMessage,proto3" json:"ErrorMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolResponse) Descriptor deprecated

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

Deprecated: Use BoolResponse.ProtoReflect.Descriptor instead.

func (*BoolResponse) GetErrorCode

func (x *BoolResponse) GetErrorCode() int32

func (*BoolResponse) GetErrorMessage

func (x *BoolResponse) GetErrorMessage() string

func (*BoolResponse) GetValue

func (x *BoolResponse) GetValue() bool

func (*BoolResponse) ProtoMessage

func (*BoolResponse) ProtoMessage()

func (*BoolResponse) ProtoReflect

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

func (*BoolResponse) Reset

func (x *BoolResponse) Reset()

func (*BoolResponse) String

func (x *BoolResponse) String() string

type ConnectionHandler

type ConnectionHandler interface {
	PingReceived()
}

type DeviceRequest

type DeviceRequest struct {
	DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceRequest) Descriptor deprecated

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

Deprecated: Use DeviceRequest.ProtoReflect.Descriptor instead.

func (*DeviceRequest) GetDeviceID

func (x *DeviceRequest) GetDeviceID() string

func (*DeviceRequest) ProtoMessage

func (*DeviceRequest) ProtoMessage()

func (*DeviceRequest) ProtoReflect

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

func (*DeviceRequest) Reset

func (x *DeviceRequest) Reset()

func (*DeviceRequest) String

func (x *DeviceRequest) String() string

type DeviceResponse

type DeviceResponse struct {
	Manager         string      `protobuf:"bytes,1,opt,name=Manager,proto3" json:"Manager,omitempty"`
	DeviceID        string      `protobuf:"bytes,2,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	Name            string      `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	DeviceOS        string      `protobuf:"bytes,4,opt,name=DeviceOS,proto3" json:"DeviceOS,omitempty"`
	DeviceOSVersion string      `protobuf:"bytes,5,opt,name=DeviceOSVersion,proto3" json:"DeviceOSVersion,omitempty"`
	DeviceOSInfos   string      `protobuf:"bytes,6,opt,name=DeviceOSInfos,proto3" json:"DeviceOSInfos,omitempty"`
	ProjectDir      string      `protobuf:"bytes,7,opt,name=ProjectDir,proto3" json:"ProjectDir,omitempty"`
	DeviceIP        string      `protobuf:"bytes,8,opt,name=DeviceIP,proto3" json:"DeviceIP,omitempty"`
	DeviceModel     string      `protobuf:"bytes,9,opt,name=DeviceModel,proto3" json:"DeviceModel,omitempty"`
	State           DeviceState `protobuf:"varint,10,opt,name=State,proto3,enum=node.DeviceState" json:"State,omitempty"`
	TargetVersion   string      `protobuf:"bytes,11,opt,name=TargetVersion,proto3" json:"TargetVersion,omitempty"`
	DeviceType      int32       `protobuf:"varint,12,opt,name=DeviceType,proto3" json:"DeviceType,omitempty"`
	DeviceParameter string      `protobuf:"bytes,13,opt,name=DeviceParameter,proto3" json:"DeviceParameter,omitempty"`
	PlatformType    int32       `protobuf:"varint,14,opt,name=PlatformType,proto3" json:"PlatformType,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceResponse) Descriptor deprecated

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

Deprecated: Use DeviceResponse.ProtoReflect.Descriptor instead.

func (*DeviceResponse) GetDeviceID

func (x *DeviceResponse) GetDeviceID() string

func (*DeviceResponse) GetDeviceIP

func (x *DeviceResponse) GetDeviceIP() string

func (*DeviceResponse) GetDeviceModel

func (x *DeviceResponse) GetDeviceModel() string

func (*DeviceResponse) GetDeviceOS

func (x *DeviceResponse) GetDeviceOS() string

func (*DeviceResponse) GetDeviceOSInfos

func (x *DeviceResponse) GetDeviceOSInfos() string

func (*DeviceResponse) GetDeviceOSVersion

func (x *DeviceResponse) GetDeviceOSVersion() string

func (*DeviceResponse) GetDeviceParameter

func (x *DeviceResponse) GetDeviceParameter() string

func (*DeviceResponse) GetDeviceType

func (x *DeviceResponse) GetDeviceType() int32

func (*DeviceResponse) GetManager

func (x *DeviceResponse) GetManager() string

func (*DeviceResponse) GetName

func (x *DeviceResponse) GetName() string

func (*DeviceResponse) GetPlatformType

func (x *DeviceResponse) GetPlatformType() int32

func (*DeviceResponse) GetProjectDir

func (x *DeviceResponse) GetProjectDir() string

func (*DeviceResponse) GetState

func (x *DeviceResponse) GetState() DeviceState

func (*DeviceResponse) GetTargetVersion

func (x *DeviceResponse) GetTargetVersion() string

func (*DeviceResponse) ProtoMessage

func (*DeviceResponse) ProtoMessage()

func (*DeviceResponse) ProtoReflect

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

func (*DeviceResponse) Reset

func (x *DeviceResponse) Reset()

func (*DeviceResponse) String

func (x *DeviceResponse) String() string

type DeviceState

type DeviceState int32
const (
	DeviceState_None               DeviceState = 0
	DeviceState_Unknown            DeviceState = 1
	DeviceState_Shutdown           DeviceState = 2
	DeviceState_RemoteDisconnected DeviceState = 3
	DeviceState_Booted             DeviceState = 4
	DeviceState_Locked             DeviceState = 5
)

func (DeviceState) Descriptor

func (DeviceState) Enum

func (x DeviceState) Enum() *DeviceState

func (DeviceState) EnumDescriptor deprecated

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

Deprecated: Use DeviceState.Descriptor instead.

func (DeviceState) Number

func (x DeviceState) Number() protoreflect.EnumNumber

func (DeviceState) String

func (x DeviceState) String() string

func (DeviceState) Type

type DeviceStatusRequest

type DeviceStatusRequest struct {
	DeviceId string `protobuf:"bytes,1,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceStatusRequest) Descriptor deprecated

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

Deprecated: Use DeviceStatusRequest.ProtoReflect.Descriptor instead.

func (*DeviceStatusRequest) GetDeviceId

func (x *DeviceStatusRequest) GetDeviceId() string

func (*DeviceStatusRequest) ProtoMessage

func (*DeviceStatusRequest) ProtoMessage()

func (*DeviceStatusRequest) ProtoReflect

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

func (*DeviceStatusRequest) Reset

func (x *DeviceStatusRequest) Reset()

func (*DeviceStatusRequest) String

func (x *DeviceStatusRequest) String() string

type DevicesResponse

type DevicesResponse struct {
	Devices []*DeviceResponse `protobuf:"bytes,1,rep,name=Devices,proto3" json:"Devices,omitempty"`
	// contains filtered or unexported fields
}

func (*DevicesResponse) Descriptor deprecated

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

Deprecated: Use DevicesResponse.ProtoReflect.Descriptor instead.

func (*DevicesResponse) GetDevices

func (x *DevicesResponse) GetDevices() []*DeviceResponse

func (*DevicesResponse) ProtoMessage

func (*DevicesResponse) ProtoMessage()

func (*DevicesResponse) ProtoReflect

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

func (*DevicesResponse) Reset

func (x *DevicesResponse) Reset()

func (*DevicesResponse) String

func (x *DevicesResponse) String() string

type ErrorResponse

type ErrorResponse struct {
	ErrorCode    int32  `protobuf:"varint,1,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=ErrorMessage,proto3" json:"ErrorMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorResponse) Descriptor deprecated

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

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetErrorCode

func (x *ErrorResponse) GetErrorCode() int32

func (*ErrorResponse) GetErrorMessage

func (x *ErrorResponse) GetErrorMessage() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect

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

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

type ExecutableParams

type ExecutableParams struct {
	Executable string `protobuf:"bytes,1,opt,name=Executable,proto3" json:"Executable,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecutableParams) Descriptor deprecated

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

Deprecated: Use ExecutableParams.ProtoReflect.Descriptor instead.

func (*ExecutableParams) GetExecutable

func (x *ExecutableParams) GetExecutable() string

func (*ExecutableParams) ProtoMessage

func (*ExecutableParams) ProtoMessage()

func (*ExecutableParams) ProtoReflect

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

func (*ExecutableParams) Reset

func (x *ExecutableParams) Reset()

func (*ExecutableParams) String

func (x *ExecutableParams) String() string

type ExecuteRequest

type ExecuteRequest struct {
	DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	Data     string `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteRequest) Descriptor deprecated

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

Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.

func (*ExecuteRequest) GetData

func (x *ExecuteRequest) GetData() string

func (*ExecuteRequest) GetDeviceID

func (x *ExecuteRequest) GetDeviceID() string

func (*ExecuteRequest) ProtoMessage

func (*ExecuteRequest) ProtoMessage()

func (*ExecuteRequest) ProtoReflect

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

func (*ExecuteRequest) Reset

func (x *ExecuteRequest) Reset()

func (*ExecuteRequest) String

func (x *ExecuteRequest) String() string

type FeatureRequest

type FeatureRequest struct {
	DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	Feature  string `protobuf:"bytes,2,opt,name=Feature,proto3" json:"Feature,omitempty"`
	// contains filtered or unexported fields
}

func (*FeatureRequest) Descriptor deprecated

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

Deprecated: Use FeatureRequest.ProtoReflect.Descriptor instead.

func (*FeatureRequest) GetDeviceID

func (x *FeatureRequest) GetDeviceID() string

func (*FeatureRequest) GetFeature

func (x *FeatureRequest) GetFeature() string

func (*FeatureRequest) ProtoMessage

func (*FeatureRequest) ProtoMessage()

func (*FeatureRequest) ProtoReflect

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

func (*FeatureRequest) Reset

func (x *FeatureRequest) Reset()

func (*FeatureRequest) String

func (x *FeatureRequest) String() string

type RPCClient

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

func NewRPCClient

func NewRPCClient(conn *websocket.Conn, masterURL string) *RPCClient

func (*RPCClient) ConnectionTimeout

func (rpc *RPCClient) ConnectionTimeout(deviceId string) time.Duration

func (*RPCClient) Execute

func (rpc *RPCClient) Execute(deviceId string, data string)

func (*RPCClient) GetDevices

func (rpc *RPCClient) GetDevices() (map[string][]device.Device, error)

func (*RPCClient) GetScreenshot

func (rpc *RPCClient) GetScreenshot(deviceId string) ([]byte, int, int, error)

func (*RPCClient) HasFeature

func (rpc *RPCClient) HasFeature(deviceId string, feature string) bool

func (*RPCClient) InstallApp

func (rpc *RPCClient) InstallApp(deviceId string, parameter *app.Parameter) error

func (*RPCClient) IsAppInstalled

func (rpc *RPCClient) IsAppInstalled(deviceId string, parameter *app.Parameter) (bool, error)

func (*RPCClient) IsAppUploaded

func (rpc *RPCClient) IsAppUploaded(parameter *app.Parameter) (bool, error)

func (*RPCClient) IsConnected

func (rpc *RPCClient) IsConnected(deviceId string) bool

func (*RPCClient) Ping

func (rpc *RPCClient) Ping() error

func (*RPCClient) RunNativeScript

func (rpc *RPCClient) RunNativeScript(deviceId string, script []byte)

func (*RPCClient) SendAction

func (rpc *RPCClient) SendAction(deviceId string, script []byte)

func (*RPCClient) StartApp

func (rpc *RPCClient) StartApp(deviceId string, parameter *app.Parameter, sessionId string, nodeUrl string) error

func (*RPCClient) StartDevice

func (rpc *RPCClient) StartDevice(deviceId string) error

func (*RPCClient) StartRecording

func (rpc *RPCClient) StartRecording(deviceId string, path string) error

func (*RPCClient) StopApp

func (rpc *RPCClient) StopApp(deviceId string, parameter *app.Parameter) error

func (*RPCClient) StopDevice

func (rpc *RPCClient) StopDevice(deviceId string) error

func (*RPCClient) StopRecording

func (rpc *RPCClient) StopRecording(deviceId string) error

func (*RPCClient) UninstallApp

func (rpc *RPCClient) UninstallApp(deviceId string, parameter *app.Parameter) error

func (*RPCClient) UploadApp

func (rpc *RPCClient) UploadApp(ctx context.Context, parameter *app.Parameter) error

type RPCDevice

type RPCDevice struct {
	generic.Device
	Dev *DeviceResponse
	// contains filtered or unexported fields
}

func (*RPCDevice) ConnectionTimeout

func (d *RPCDevice) ConnectionTimeout() time.Duration

func (*RPCDevice) DeviceID

func (d *RPCDevice) DeviceID() string

func (*RPCDevice) DeviceIP

func (d *RPCDevice) DeviceIP() net.IP

func (*RPCDevice) DeviceName

func (d *RPCDevice) DeviceName() string

func (*RPCDevice) DeviceOSName

func (d *RPCDevice) DeviceOSName() string

func (*RPCDevice) DeviceOSVersion

func (d *RPCDevice) DeviceOSVersion() string

func (*RPCDevice) DeviceParameter

func (d *RPCDevice) DeviceParameter() map[string]string

func (*RPCDevice) DeviceState

func (d *RPCDevice) DeviceState() device.State

func (*RPCDevice) DeviceType

func (d *RPCDevice) DeviceType() int

func (*RPCDevice) Execute

func (d *RPCDevice) Execute(string)

func (*RPCDevice) GetScreenshot

func (d *RPCDevice) GetScreenshot() ([]byte, int, int, error)

func (*RPCDevice) HasFeature

func (d *RPCDevice) HasFeature(string) bool

func (*RPCDevice) InstallApp

func (d *RPCDevice) InstallApp(*app.Parameter) error

func (*RPCDevice) IsAppConnected

func (d *RPCDevice) IsAppConnected() bool

func (*RPCDevice) IsAppInstalled

func (d *RPCDevice) IsAppInstalled(*app.Parameter) (bool, error)

func (*RPCDevice) PlatformType

func (d *RPCDevice) PlatformType() int

func (*RPCDevice) RunNativeScript

func (d *RPCDevice) RunNativeScript(data []byte)

func (*RPCDevice) StartApp

func (d *RPCDevice) StartApp(*app.Parameter, string, string) error

func (*RPCDevice) StartRecording

func (d *RPCDevice) StartRecording(string) error

func (*RPCDevice) StopApp

func (d *RPCDevice) StopApp(*app.Parameter) error

func (*RPCDevice) StopRecording

func (d *RPCDevice) StopRecording() error

func (*RPCDevice) TargetVersion

func (d *RPCDevice) TargetVersion() string

func (*RPCDevice) UninstallApp

func (d *RPCDevice) UninstallApp(*app.Parameter) error

type RPCNode

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

func NewRPCNode

func NewRPCNode(config config.Service, dm manager.Devices, ch ConnectionHandler) *RPCNode

func (*RPCNode) ConnectionTimeout

func (s *RPCNode) ConnectionTimeout(req *DeviceRequest, resp *TimeoutResponse) error

func (*RPCNode) DeviceStatus

func (s *RPCNode) DeviceStatus(req *DeviceStatusRequest, resp *DeviceResponse) error

func (*RPCNode) Execute

func (s *RPCNode) Execute(req *ExecuteRequest, resp *Void) error

func (*RPCNode) GetDevices

func (s *RPCNode) GetDevices(req *Void, resp *DevicesResponse) error

func (*RPCNode) GetScreenshotData

func (s *RPCNode) GetScreenshotData(req *ScreenShotDataRequest, resp *ScreenShotDataResponse) error

func (*RPCNode) HasFeature

func (s *RPCNode) HasFeature(req *FeatureRequest, resp *BoolResponse) error

func (*RPCNode) InstallApp

func (s *RPCNode) InstallApp(req *AppParameterRequest, resp *BoolResponse) error

func (*RPCNode) IsAppInstalled

func (s *RPCNode) IsAppInstalled(req *AppParameterRequest, resp *BoolResponse) error

func (*RPCNode) IsAppUploaded

func (s *RPCNode) IsAppUploaded(req *AppParameterRequest, resp *BoolResponse) error

func (*RPCNode) IsConnected

func (s *RPCNode) IsConnected(req *DeviceRequest, resp *BoolResponse) error

func (*RPCNode) Ping

func (s *RPCNode) Ping(args *Void, reply *Void) error

func (*RPCNode) RunNativeScript

func (s *RPCNode) RunNativeScript(req *ExecuteRequest, resp *Void) error

func (*RPCNode) SendAction

func (s *RPCNode) SendAction(req *ExecuteRequest, resp *Void) error

func (*RPCNode) StartApp

func (s *RPCNode) StartApp(req *StartAppRequest, resp *BoolResponse) error

func (*RPCNode) StartDevice

func (s *RPCNode) StartDevice(req *DeviceRequest, resp *ErrorResponse) error

func (*RPCNode) StopApp

func (s *RPCNode) StopApp(req *AppParameterRequest, resp *BoolResponse) error

func (*RPCNode) StopDevice

func (s *RPCNode) StopDevice(req *DeviceRequest, resp *ErrorResponse) error

func (*RPCNode) TakeScreenshot

func (s *RPCNode) TakeScreenshot(req *DeviceRequest, resp *ScreenShotResponse) error

func (*RPCNode) UninstallApp

func (s *RPCNode) UninstallApp(req *AppParameterRequest, resp *BoolResponse) error

func (*RPCNode) UploadApp

func (s *RPCNode) UploadApp(req *UploadAppRequest, resp *BoolResponse) error

func (*RPCNode) UploadAppProgress

func (s *RPCNode) UploadAppProgress(req *UploadAppProgressRequest, resp *UploadAppProgressResponse) error

type ReconnectHandler

type ReconnectHandler struct {
	ConnectFunction func()
	// contains filtered or unexported fields
}

func (*ReconnectHandler) HandleConnect

func (h *ReconnectHandler) HandleConnect() error

func (*ReconnectHandler) ObserveConnectionState

func (h *ReconnectHandler) ObserveConnectionState(ctx context.Context, cfg config.Service, managers []string)

func (*ReconnectHandler) PingReceived

func (h *ReconnectHandler) PingReceived()

type RegisterNodeRequest

type RegisterNodeRequest struct {
	Identifier           string   `protobuf:"bytes,1,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Hostname             string   `protobuf:"bytes,2,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
	OperationSystem      string   `protobuf:"bytes,3,opt,name=OperationSystem,proto3" json:"OperationSystem,omitempty"`
	EnvironmentVariables string   `protobuf:"bytes,4,opt,name=EnvironmentVariables,proto3" json:"EnvironmentVariables,omitempty"`
	Port                 int32    `protobuf:"varint,5,opt,name=Port,proto3" json:"Port,omitempty"`
	Managers             []string `protobuf:"bytes,6,rep,name=Managers,proto3" json:"Managers,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterNodeRequest) Descriptor deprecated

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

Deprecated: Use RegisterNodeRequest.ProtoReflect.Descriptor instead.

func (*RegisterNodeRequest) GetEnvironmentVariables

func (x *RegisterNodeRequest) GetEnvironmentVariables() string

func (*RegisterNodeRequest) GetHostname

func (x *RegisterNodeRequest) GetHostname() string

func (*RegisterNodeRequest) GetIdentifier

func (x *RegisterNodeRequest) GetIdentifier() string

func (*RegisterNodeRequest) GetManagers

func (x *RegisterNodeRequest) GetManagers() []string

func (*RegisterNodeRequest) GetOperationSystem

func (x *RegisterNodeRequest) GetOperationSystem() string

func (*RegisterNodeRequest) GetPort

func (x *RegisterNodeRequest) GetPort() int32

func (*RegisterNodeRequest) ProtoMessage

func (*RegisterNodeRequest) ProtoMessage()

func (*RegisterNodeRequest) ProtoReflect

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

func (*RegisterNodeRequest) Reset

func (x *RegisterNodeRequest) Reset()

func (*RegisterNodeRequest) String

func (x *RegisterNodeRequest) String() string

type RemoteActionHandler

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

func NewRemoteActionHandler

func NewRemoteActionHandler(masterURL, nodeIdentifier, deviceId string, authToken *string) *RemoteActionHandler

func (*RemoteActionHandler) OnActionResponse

func (w *RemoteActionHandler) OnActionResponse(d interface{}, response *action.Response)

type ScreenShotDataRequest

type ScreenShotDataRequest struct {
	Hash  string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Start int32  `protobuf:"varint,2,opt,name=Start,proto3" json:"Start,omitempty"`
	End   int32  `protobuf:"varint,3,opt,name=End,proto3" json:"End,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenShotDataRequest) Descriptor deprecated

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

Deprecated: Use ScreenShotDataRequest.ProtoReflect.Descriptor instead.

func (*ScreenShotDataRequest) GetEnd

func (x *ScreenShotDataRequest) GetEnd() int32

func (*ScreenShotDataRequest) GetHash

func (x *ScreenShotDataRequest) GetHash() string

func (*ScreenShotDataRequest) GetStart

func (x *ScreenShotDataRequest) GetStart() int32

func (*ScreenShotDataRequest) ProtoMessage

func (*ScreenShotDataRequest) ProtoMessage()

func (*ScreenShotDataRequest) ProtoReflect

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

func (*ScreenShotDataRequest) Reset

func (x *ScreenShotDataRequest) Reset()

func (*ScreenShotDataRequest) String

func (x *ScreenShotDataRequest) String() string

type ScreenShotDataResponse

type ScreenShotDataResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenShotDataResponse) Descriptor deprecated

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

Deprecated: Use ScreenShotDataResponse.ProtoReflect.Descriptor instead.

func (*ScreenShotDataResponse) GetData

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

func (*ScreenShotDataResponse) ProtoMessage

func (*ScreenShotDataResponse) ProtoMessage()

func (*ScreenShotDataResponse) ProtoReflect

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

func (*ScreenShotDataResponse) Reset

func (x *ScreenShotDataResponse) Reset()

func (*ScreenShotDataResponse) String

func (x *ScreenShotDataResponse) String() string

type ScreenShotResponse

type ScreenShotResponse struct {
	Hash   string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Size   int32  `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"`
	Width  int32  `protobuf:"varint,3,opt,name=Width,proto3" json:"Width,omitempty"`
	Height int32  `protobuf:"varint,4,opt,name=Height,proto3" json:"Height,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenShotResponse) Descriptor deprecated

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

Deprecated: Use ScreenShotResponse.ProtoReflect.Descriptor instead.

func (*ScreenShotResponse) GetHash

func (x *ScreenShotResponse) GetHash() string

func (*ScreenShotResponse) GetHeight

func (x *ScreenShotResponse) GetHeight() int32

func (*ScreenShotResponse) GetSize

func (x *ScreenShotResponse) GetSize() int32

func (*ScreenShotResponse) GetWidth

func (x *ScreenShotResponse) GetWidth() int32

func (*ScreenShotResponse) ProtoMessage

func (*ScreenShotResponse) ProtoMessage()

func (*ScreenShotResponse) ProtoReflect

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

func (*ScreenShotResponse) Reset

func (x *ScreenShotResponse) Reset()

func (*ScreenShotResponse) String

func (x *ScreenShotResponse) String() string

type StartAppRequest

type StartAppRequest struct {
	App       *AppParameterRequest `protobuf:"bytes,1,opt,name=App,proto3" json:"App,omitempty"`
	SessionID string               `protobuf:"bytes,2,opt,name=SessionID,proto3" json:"SessionID,omitempty"`
	HostIP    string               `protobuf:"bytes,3,opt,name=HostIP,proto3" json:"HostIP,omitempty"`
	// contains filtered or unexported fields
}

func (*StartAppRequest) Descriptor deprecated

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

Deprecated: Use StartAppRequest.ProtoReflect.Descriptor instead.

func (*StartAppRequest) GetApp

func (x *StartAppRequest) GetApp() *AppParameterRequest

func (*StartAppRequest) GetHostIP

func (x *StartAppRequest) GetHostIP() string

func (*StartAppRequest) GetSessionID

func (x *StartAppRequest) GetSessionID() string

func (*StartAppRequest) ProtoMessage

func (*StartAppRequest) ProtoMessage()

func (*StartAppRequest) ProtoReflect

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

func (*StartAppRequest) Reset

func (x *StartAppRequest) Reset()

func (*StartAppRequest) String

func (x *StartAppRequest) String() string

type TimeoutResponse

type TimeoutResponse struct {
	Timeout int64 `protobuf:"varint,1,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeoutResponse) Descriptor deprecated

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

Deprecated: Use TimeoutResponse.ProtoReflect.Descriptor instead.

func (*TimeoutResponse) GetTimeout

func (x *TimeoutResponse) GetTimeout() int64

func (*TimeoutResponse) ProtoMessage

func (*TimeoutResponse) ProtoMessage()

func (*TimeoutResponse) ProtoReflect

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

func (*TimeoutResponse) Reset

func (x *TimeoutResponse) Reset()

func (*TimeoutResponse) String

func (x *TimeoutResponse) String() string

type UploadAppProgressRequest

type UploadAppProgressRequest struct {
	AppID int32 `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadAppProgressRequest) Descriptor deprecated

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

Deprecated: Use UploadAppProgressRequest.ProtoReflect.Descriptor instead.

func (*UploadAppProgressRequest) GetAppID

func (x *UploadAppProgressRequest) GetAppID() int32

func (*UploadAppProgressRequest) ProtoMessage

func (*UploadAppProgressRequest) ProtoMessage()

func (*UploadAppProgressRequest) ProtoReflect

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

func (*UploadAppProgressRequest) Reset

func (x *UploadAppProgressRequest) Reset()

func (*UploadAppProgressRequest) String

func (x *UploadAppProgressRequest) String() string

type UploadAppProgressResponse

type UploadAppProgressResponse struct {
	AppID        int32 `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
	DataReceived int64 `protobuf:"varint,2,opt,name=DataReceived,proto3" json:"DataReceived,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadAppProgressResponse) Descriptor deprecated

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

Deprecated: Use UploadAppProgressResponse.ProtoReflect.Descriptor instead.

func (*UploadAppProgressResponse) GetAppID

func (x *UploadAppProgressResponse) GetAppID() int32

func (*UploadAppProgressResponse) GetDataReceived

func (x *UploadAppProgressResponse) GetDataReceived() int64

func (*UploadAppProgressResponse) ProtoMessage

func (*UploadAppProgressResponse) ProtoMessage()

func (*UploadAppProgressResponse) ProtoReflect

func (*UploadAppProgressResponse) Reset

func (x *UploadAppProgressResponse) Reset()

func (*UploadAppProgressResponse) String

func (x *UploadAppProgressResponse) String() string

type UploadAppRequest

type UploadAppRequest struct {
	AppID      int32  `protobuf:"varint,1,opt,name=AppID,proto3" json:"AppID,omitempty"`
	Identifier string `protobuf:"bytes,2,opt,name=Identifier,proto3" json:"Identifier,omitempty"`
	Name       string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	Hash       string `protobuf:"bytes,4,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Size       int64  `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
	URL        string `protobuf:"bytes,6,opt,name=URL,proto3" json:"URL,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadAppRequest) Descriptor deprecated

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

Deprecated: Use UploadAppRequest.ProtoReflect.Descriptor instead.

func (*UploadAppRequest) GetAppID

func (x *UploadAppRequest) GetAppID() int32

func (*UploadAppRequest) GetHash

func (x *UploadAppRequest) GetHash() string

func (*UploadAppRequest) GetIdentifier

func (x *UploadAppRequest) GetIdentifier() string

func (*UploadAppRequest) GetName

func (x *UploadAppRequest) GetName() string

func (*UploadAppRequest) GetSize

func (x *UploadAppRequest) GetSize() int64

func (*UploadAppRequest) GetURL

func (x *UploadAppRequest) GetURL() string

func (*UploadAppRequest) ProtoMessage

func (*UploadAppRequest) ProtoMessage()

func (*UploadAppRequest) ProtoReflect

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

func (*UploadAppRequest) Reset

func (x *UploadAppRequest) Reset()

func (*UploadAppRequest) String

func (x *UploadAppRequest) String() string

type UploadProgress

type UploadProgress struct {
	Request           *UploadAppRequest
	NextProgressPrint *time.Time
	Data              []byte
}

type Void

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

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

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

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

type WebParams

type WebParams struct {
	StartURL string `protobuf:"bytes,1,opt,name=StartURL,proto3" json:"StartURL,omitempty"`
	// contains filtered or unexported fields
}

func (*WebParams) Descriptor deprecated

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

Deprecated: Use WebParams.ProtoReflect.Descriptor instead.

func (*WebParams) GetStartURL

func (x *WebParams) GetStartURL() string

func (*WebParams) ProtoMessage

func (*WebParams) ProtoMessage()

func (*WebParams) ProtoReflect

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

func (*WebParams) Reset

func (x *WebParams) Reset()

func (*WebParams) String

func (x *WebParams) String() string

Directories

Path Synopsis
Package jsonrpc implements a JSON-RPC 1.0 ClientCodec and ServerCodec for the rpc package.
Package jsonrpc implements a JSON-RPC 1.0 ClientCodec and ServerCodec for the rpc package.

Jump to

Keyboard shortcuts

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