apprpc

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAppServiceServer

func RegisterAppServiceServer(s *grpc.Server, srv AppServiceServer)

Types

type AdbConnectParams

type AdbConnectParams struct {
	Ip                   string   `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port                 string   `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AdbConnectParams) Descriptor

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

func (*AdbConnectParams) GetIp

func (m *AdbConnectParams) GetIp() string

func (*AdbConnectParams) GetPort

func (m *AdbConnectParams) GetPort() string

func (*AdbConnectParams) ProtoMessage

func (*AdbConnectParams) ProtoMessage()

func (*AdbConnectParams) Reset

func (m *AdbConnectParams) Reset()

func (*AdbConnectParams) String

func (m *AdbConnectParams) String() string

func (*AdbConnectParams) XXX_DiscardUnknown

func (m *AdbConnectParams) XXX_DiscardUnknown()

func (*AdbConnectParams) XXX_Marshal

func (m *AdbConnectParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AdbConnectParams) XXX_Merge

func (m *AdbConnectParams) XXX_Merge(src proto.Message)

func (*AdbConnectParams) XXX_Size

func (m *AdbConnectParams) XXX_Size() int

func (*AdbConnectParams) XXX_Unmarshal

func (m *AdbConnectParams) XXX_Unmarshal(b []byte) error

type AdbForwardParams

type AdbForwardParams struct {
	Serial               string   `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	DevicePort           string   `protobuf:"bytes,2,opt,name=devicePort,proto3" json:"devicePort,omitempty"`
	PcPort               string   `protobuf:"bytes,3,opt,name=pcPort,proto3" json:"pcPort,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AdbForwardParams) Descriptor

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

func (*AdbForwardParams) GetDevicePort

func (m *AdbForwardParams) GetDevicePort() string

func (*AdbForwardParams) GetPcPort

func (m *AdbForwardParams) GetPcPort() string

func (*AdbForwardParams) GetSerial

func (m *AdbForwardParams) GetSerial() string

func (*AdbForwardParams) ProtoMessage

func (*AdbForwardParams) ProtoMessage()

func (*AdbForwardParams) Reset

func (m *AdbForwardParams) Reset()

func (*AdbForwardParams) String

func (m *AdbForwardParams) String() string

func (*AdbForwardParams) XXX_DiscardUnknown

func (m *AdbForwardParams) XXX_DiscardUnknown()

func (*AdbForwardParams) XXX_Marshal

func (m *AdbForwardParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AdbForwardParams) XXX_Merge

func (m *AdbForwardParams) XXX_Merge(src proto.Message)

func (*AdbForwardParams) XXX_Size

func (m *AdbForwardParams) XXX_Size() int

func (*AdbForwardParams) XXX_Unmarshal

func (m *AdbForwardParams) XXX_Unmarshal(b []byte) error

type AdbShellParams

type AdbShellParams struct {
	Serial               string   `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	Command              string   `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AdbShellParams) Descriptor

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

func (*AdbShellParams) GetCommand

func (m *AdbShellParams) GetCommand() string

func (*AdbShellParams) GetSerial

func (m *AdbShellParams) GetSerial() string

func (*AdbShellParams) ProtoMessage

func (*AdbShellParams) ProtoMessage()

func (*AdbShellParams) Reset

func (m *AdbShellParams) Reset()

func (*AdbShellParams) String

func (m *AdbShellParams) String() string

func (*AdbShellParams) XXX_DiscardUnknown

func (m *AdbShellParams) XXX_DiscardUnknown()

func (*AdbShellParams) XXX_Marshal

func (m *AdbShellParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AdbShellParams) XXX_Merge

func (m *AdbShellParams) XXX_Merge(src proto.Message)

func (*AdbShellParams) XXX_Size

func (m *AdbShellParams) XXX_Size() int

func (*AdbShellParams) XXX_Unmarshal

func (m *AdbShellParams) XXX_Unmarshal(b []byte) error

type AdbTCPIPParams

type AdbTCPIPParams struct {
	Serial               string   `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	Port                 string   `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AdbTCPIPParams) Descriptor

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

func (*AdbTCPIPParams) GetPort

func (m *AdbTCPIPParams) GetPort() string

func (*AdbTCPIPParams) GetSerial

func (m *AdbTCPIPParams) GetSerial() string

func (*AdbTCPIPParams) ProtoMessage

func (*AdbTCPIPParams) ProtoMessage()

func (*AdbTCPIPParams) Reset

func (m *AdbTCPIPParams) Reset()

func (*AdbTCPIPParams) String

func (m *AdbTCPIPParams) String() string

func (*AdbTCPIPParams) XXX_DiscardUnknown

func (m *AdbTCPIPParams) XXX_DiscardUnknown()

func (*AdbTCPIPParams) XXX_Marshal

func (m *AdbTCPIPParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AdbTCPIPParams) XXX_Merge

func (m *AdbTCPIPParams) XXX_Merge(src proto.Message)

func (*AdbTCPIPParams) XXX_Size

func (m *AdbTCPIPParams) XXX_Size() int

func (*AdbTCPIPParams) XXX_Unmarshal

func (m *AdbTCPIPParams) XXX_Unmarshal(b []byte) error

type AppServiceClient

type AppServiceClient interface {
	GetDevices(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Devices, error)
	GetStartCommand(ctx context.Context, in *DeviceSerial, opts ...grpc.CallOption) (*GetStartCommandResult, error)
	AdbConnect(ctx context.Context, in *AdbConnectParams, opts ...grpc.CallOption) (*Message, error)
	AdbRestart(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	AdbShell(ctx context.Context, in *AdbShellParams, opts ...grpc.CallOption) (*Message, error)
	AdbForward(ctx context.Context, in *AdbForwardParams, opts ...grpc.CallOption) (*Message, error)
	AdbForwardList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Message, error)
	AdbTCPIP(ctx context.Context, in *AdbTCPIPParams, opts ...grpc.CallOption) (*Message, error)
	StartService(ctx context.Context, in *DeviceSerial, opts ...grpc.CallOption) (*StartServiceResult, error)
	StopService(ctx context.Context, in *DeviceSerial, opts ...grpc.CallOption) (*Message, error)
	CreateProxy(ctx context.Context, in *CreateGRPCProxy, opts ...grpc.CallOption) (*Message, error)
}

AppServiceClient is the client API for AppService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAppServiceClient

func NewAppServiceClient(cc *grpc.ClientConn) AppServiceClient

type AppServiceServer

type AppServiceServer interface {
	GetDevices(context.Context, *Empty) (*Devices, error)
	GetStartCommand(context.Context, *DeviceSerial) (*GetStartCommandResult, error)
	AdbConnect(context.Context, *AdbConnectParams) (*Message, error)
	AdbRestart(context.Context, *Empty) (*Empty, error)
	AdbShell(context.Context, *AdbShellParams) (*Message, error)
	AdbForward(context.Context, *AdbForwardParams) (*Message, error)
	AdbForwardList(context.Context, *Empty) (*Message, error)
	AdbTCPIP(context.Context, *AdbTCPIPParams) (*Message, error)
	StartService(context.Context, *DeviceSerial) (*StartServiceResult, error)
	StopService(context.Context, *DeviceSerial) (*Message, error)
	CreateProxy(context.Context, *CreateGRPCProxy) (*Message, error)
}

AppServiceServer is the server API for AppService service.

type CreateGRPCProxy

type CreateGRPCProxy struct {
	GrpcAddress          string   `protobuf:"bytes,1,opt,name=grpcAddress,proto3" json:"grpcAddress,omitempty"`
	HttpAddress          string   `protobuf:"bytes,2,opt,name=httpAddress,proto3" json:"httpAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateGRPCProxy) Descriptor

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

func (*CreateGRPCProxy) GetGrpcAddress

func (m *CreateGRPCProxy) GetGrpcAddress() string

func (*CreateGRPCProxy) GetHttpAddress

func (m *CreateGRPCProxy) GetHttpAddress() string

func (*CreateGRPCProxy) ProtoMessage

func (*CreateGRPCProxy) ProtoMessage()

func (*CreateGRPCProxy) Reset

func (m *CreateGRPCProxy) Reset()

func (*CreateGRPCProxy) String

func (m *CreateGRPCProxy) String() string

func (*CreateGRPCProxy) XXX_DiscardUnknown

func (m *CreateGRPCProxy) XXX_DiscardUnknown()

func (*CreateGRPCProxy) XXX_Marshal

func (m *CreateGRPCProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateGRPCProxy) XXX_Merge

func (m *CreateGRPCProxy) XXX_Merge(src proto.Message)

func (*CreateGRPCProxy) XXX_Size

func (m *CreateGRPCProxy) XXX_Size() int

func (*CreateGRPCProxy) XXX_Unmarshal

func (m *CreateGRPCProxy) XXX_Unmarshal(b []byte) error

type Device

type Device struct {
	Serial               string   `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	ServiceIp            string   `protobuf:"bytes,2,opt,name=serviceIp,proto3" json:"serviceIp,omitempty"`
	ServicePort          string   `protobuf:"bytes,3,opt,name=servicePort,proto3" json:"servicePort,omitempty"`
	ServicePid1          string   `protobuf:"bytes,4,opt,name=servicePid1,proto3" json:"servicePid1,omitempty"`
	ServicePid2          string   `protobuf:"bytes,5,opt,name=servicePid2,proto3" json:"servicePid2,omitempty"`
	ServiceForward       string   `protobuf:"bytes,7,opt,name=serviceForward,proto3" json:"serviceForward,omitempty"`
	ServiceLaunched      bool     `protobuf:"varint,6,opt,name=serviceLaunched,proto3" json:"serviceLaunched,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Device) Descriptor

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

func (*Device) GetSerial

func (m *Device) GetSerial() string

func (*Device) GetServiceForward

func (m *Device) GetServiceForward() string

func (*Device) GetServiceIp

func (m *Device) GetServiceIp() string

func (*Device) GetServiceLaunched

func (m *Device) GetServiceLaunched() bool

func (*Device) GetServicePid1

func (m *Device) GetServicePid1() string

func (*Device) GetServicePid2

func (m *Device) GetServicePid2() string

func (*Device) GetServicePort

func (m *Device) GetServicePort() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (m *Device) Reset()

func (*Device) String

func (m *Device) String() string

func (*Device) XXX_DiscardUnknown

func (m *Device) XXX_DiscardUnknown()

func (*Device) XXX_Marshal

func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Device) XXX_Merge

func (m *Device) XXX_Merge(src proto.Message)

func (*Device) XXX_Size

func (m *Device) XXX_Size() int

func (*Device) XXX_Unmarshal

func (m *Device) XXX_Unmarshal(b []byte) error

type DeviceSerial

type DeviceSerial struct {
	Serial               string   `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeviceSerial) Descriptor

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

func (*DeviceSerial) GetSerial

func (m *DeviceSerial) GetSerial() string

func (*DeviceSerial) ProtoMessage

func (*DeviceSerial) ProtoMessage()

func (*DeviceSerial) Reset

func (m *DeviceSerial) Reset()

func (*DeviceSerial) String

func (m *DeviceSerial) String() string

func (*DeviceSerial) XXX_DiscardUnknown

func (m *DeviceSerial) XXX_DiscardUnknown()

func (*DeviceSerial) XXX_Marshal

func (m *DeviceSerial) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeviceSerial) XXX_Merge

func (m *DeviceSerial) XXX_Merge(src proto.Message)

func (*DeviceSerial) XXX_Size

func (m *DeviceSerial) XXX_Size() int

func (*DeviceSerial) XXX_Unmarshal

func (m *DeviceSerial) XXX_Unmarshal(b []byte) error

type Devices

type Devices struct {
	Devices              []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Devices) Descriptor

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

func (*Devices) GetDevices

func (m *Devices) GetDevices() []*Device

func (*Devices) ProtoMessage

func (*Devices) ProtoMessage()

func (*Devices) Reset

func (m *Devices) Reset()

func (*Devices) String

func (m *Devices) String() string

func (*Devices) XXX_DiscardUnknown

func (m *Devices) XXX_DiscardUnknown()

func (*Devices) XXX_Marshal

func (m *Devices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Devices) XXX_Merge

func (m *Devices) XXX_Merge(src proto.Message)

func (*Devices) XXX_Size

func (m *Devices) XXX_Size() int

func (*Devices) XXX_Unmarshal

func (m *Devices) XXX_Unmarshal(b []byte) error

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type GetStartCommandResult

type GetStartCommandResult struct {
	LdPath               string   `protobuf:"bytes,1,opt,name=ldPath,proto3" json:"ldPath,omitempty"`
	ClassPath            string   `protobuf:"bytes,2,opt,name=classPath,proto3" json:"classPath,omitempty"`
	AppProcess           string   `protobuf:"bytes,3,opt,name=appProcess,proto3" json:"appProcess,omitempty"`
	BaseCommand          string   `protobuf:"bytes,4,opt,name=baseCommand,proto3" json:"baseCommand,omitempty"`
	FullCommand          string   `protobuf:"bytes,5,opt,name=fullCommand,proto3" json:"fullCommand,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStartCommandResult) Descriptor

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

func (*GetStartCommandResult) GetAppProcess

func (m *GetStartCommandResult) GetAppProcess() string

func (*GetStartCommandResult) GetBaseCommand

func (m *GetStartCommandResult) GetBaseCommand() string

func (*GetStartCommandResult) GetClassPath

func (m *GetStartCommandResult) GetClassPath() string

func (*GetStartCommandResult) GetFullCommand

func (m *GetStartCommandResult) GetFullCommand() string

func (*GetStartCommandResult) GetLdPath

func (m *GetStartCommandResult) GetLdPath() string

func (*GetStartCommandResult) ProtoMessage

func (*GetStartCommandResult) ProtoMessage()

func (*GetStartCommandResult) Reset

func (m *GetStartCommandResult) Reset()

func (*GetStartCommandResult) String

func (m *GetStartCommandResult) String() string

func (*GetStartCommandResult) XXX_DiscardUnknown

func (m *GetStartCommandResult) XXX_DiscardUnknown()

func (*GetStartCommandResult) XXX_Marshal

func (m *GetStartCommandResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStartCommandResult) XXX_Merge

func (m *GetStartCommandResult) XXX_Merge(src proto.Message)

func (*GetStartCommandResult) XXX_Size

func (m *GetStartCommandResult) XXX_Size() int

func (*GetStartCommandResult) XXX_Unmarshal

func (m *GetStartCommandResult) XXX_Unmarshal(b []byte) error

type Message

type Message struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetMessage

func (m *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type StartServiceResult

type StartServiceResult struct {
	Pid1                 string   `protobuf:"bytes,1,opt,name=pid1,proto3" json:"pid1,omitempty"`
	Pid2                 string   `protobuf:"bytes,2,opt,name=pid2,proto3" json:"pid2,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StartServiceResult) Descriptor

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

func (*StartServiceResult) GetPid1

func (m *StartServiceResult) GetPid1() string

func (*StartServiceResult) GetPid2

func (m *StartServiceResult) GetPid2() string

func (*StartServiceResult) ProtoMessage

func (*StartServiceResult) ProtoMessage()

func (*StartServiceResult) Reset

func (m *StartServiceResult) Reset()

func (*StartServiceResult) String

func (m *StartServiceResult) String() string

func (*StartServiceResult) XXX_DiscardUnknown

func (m *StartServiceResult) XXX_DiscardUnknown()

func (*StartServiceResult) XXX_Marshal

func (m *StartServiceResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StartServiceResult) XXX_Merge

func (m *StartServiceResult) XXX_Merge(src proto.Message)

func (*StartServiceResult) XXX_Size

func (m *StartServiceResult) XXX_Size() int

func (*StartServiceResult) XXX_Unmarshal

func (m *StartServiceResult) XXX_Unmarshal(b []byte) error

type UnimplementedAppServiceServer

type UnimplementedAppServiceServer struct {
}

UnimplementedAppServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAppServiceServer) AdbConnect

func (*UnimplementedAppServiceServer) AdbForward

func (*UnimplementedAppServiceServer) AdbForwardList

func (*UnimplementedAppServiceServer) AdbForwardList(ctx context.Context, req *Empty) (*Message, error)

func (*UnimplementedAppServiceServer) AdbRestart

func (*UnimplementedAppServiceServer) AdbRestart(ctx context.Context, req *Empty) (*Empty, error)

func (*UnimplementedAppServiceServer) AdbShell

func (*UnimplementedAppServiceServer) AdbTCPIP

func (*UnimplementedAppServiceServer) CreateProxy

func (*UnimplementedAppServiceServer) GetDevices

func (*UnimplementedAppServiceServer) GetDevices(ctx context.Context, req *Empty) (*Devices, error)

func (*UnimplementedAppServiceServer) GetStartCommand

func (*UnimplementedAppServiceServer) StartService

func (*UnimplementedAppServiceServer) StopService

Jump to

Keyboard shortcuts

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