Documentation ¶
Index ¶
- Variables
- func NetID(ctx context.Context) string
- func NewSSHClient(address string) (*ssh.Client, error)
- func RegisterAvCliServer(s *grpc.Server, srv AvCliServer)
- type Auth
- type AvCliClient
- type AvCliServer
- type AvCli_FixTimeClient
- type AvCli_FixTimeServer
- type AvCli_FloatClient
- type AvCli_FloatServer
- type AvCli_SinkClient
- type AvCli_SinkServer
- type AvCli_SwabClient
- type AvCli_SwabServer
- type Client
- func (c *Client) CloseMonitoringIssue(ctx context.Context, in *ID, opts ...grpc.CallOption) (*empty.Empty, error)
- func (c *Client) CopyRoom(ctx context.Context, in *CopyRoomRequest, opts ...grpc.CallOption) (*empty.Empty, error)
- func (c *Client) FixTime(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FixTimeClient, error)
- func (c *Client) Float(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FloatClient, error)
- func (c *Client) RemoveDeviceFromMonitoring(ctx context.Context, in *ID, opts ...grpc.CallOption) (*empty.Empty, error)
- func (c *Client) Screenshot(ctx context.Context, in *ID, opts ...grpc.CallOption) (*ScreenshotResult, error)
- func (c *Client) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*empty.Empty, error)
- func (c *Client) Sink(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SinkClient, error)
- func (c *Client) Swab(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SwabClient, error)
- type CopyRoomRequest
- func (*CopyRoomRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CopyRoomRequest) GetDst() string
- func (x *CopyRoomRequest) GetDstDesignation() string
- func (x *CopyRoomRequest) GetSrc() string
- func (x *CopyRoomRequest) GetSrcDesignation() string
- func (*CopyRoomRequest) ProtoMessage()
- func (x *CopyRoomRequest) ProtoReflect() protoreflect.Message
- func (x *CopyRoomRequest) Reset()
- func (x *CopyRoomRequest) String() string
- type DataService
- type ID
- type IDResult
- type Pi
- type ScreenshotResult
- type SetLogLevelRequest
- func (*SetLogLevelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLogLevelRequest) GetId() string
- func (x *SetLogLevelRequest) GetLevel() int32
- func (x *SetLogLevelRequest) GetPort() int32
- func (*SetLogLevelRequest) ProtoMessage()
- func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message
- func (x *SetLogLevelRequest) Reset()
- func (x *SetLogLevelRequest) String() string
- type UnimplementedAvCliServer
- func (*UnimplementedAvCliServer) CloseMonitoringIssue(context.Context, *ID) (*empty.Empty, error)
- func (*UnimplementedAvCliServer) CopyRoom(context.Context, *CopyRoomRequest) (*empty.Empty, error)
- func (*UnimplementedAvCliServer) FixTime(*ID, AvCli_FixTimeServer) error
- func (*UnimplementedAvCliServer) Float(*ID, AvCli_FloatServer) error
- func (*UnimplementedAvCliServer) RemoveDeviceFromMonitoring(context.Context, *ID) (*empty.Empty, error)
- func (*UnimplementedAvCliServer) Screenshot(context.Context, *ID) (*ScreenshotResult, error)
- func (*UnimplementedAvCliServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*empty.Empty, error)
- func (*UnimplementedAvCliServer) Sink(*ID, AvCli_SinkServer) error
- func (*UnimplementedAvCliServer) Swab(*ID, AvCli_SwabServer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_av_cli_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAvCliServer ¶
func RegisterAvCliServer(s *grpc.Server, srv AvCliServer)
Types ¶
type AvCliClient ¶
type AvCliClient interface { Swab(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SwabClient, error) Float(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FloatClient, error) Screenshot(ctx context.Context, in *ID, opts ...grpc.CallOption) (*ScreenshotResult, error) CopyRoom(ctx context.Context, in *CopyRoomRequest, opts ...grpc.CallOption) (*empty.Empty, error) FixTime(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FixTimeClient, error) Sink(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SinkClient, error) CloseMonitoringIssue(ctx context.Context, in *ID, opts ...grpc.CallOption) (*empty.Empty, error) RemoveDeviceFromMonitoring(ctx context.Context, in *ID, opts ...grpc.CallOption) (*empty.Empty, error) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
AvCliClient is the client API for AvCli service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAvCliClient ¶
func NewAvCliClient(cc grpc.ClientConnInterface) AvCliClient
type AvCliServer ¶
type AvCliServer interface { Swab(*ID, AvCli_SwabServer) error Float(*ID, AvCli_FloatServer) error Screenshot(context.Context, *ID) (*ScreenshotResult, error) CopyRoom(context.Context, *CopyRoomRequest) (*empty.Empty, error) FixTime(*ID, AvCli_FixTimeServer) error Sink(*ID, AvCli_SinkServer) error CloseMonitoringIssue(context.Context, *ID) (*empty.Empty, error) RemoveDeviceFromMonitoring(context.Context, *ID) (*empty.Empty, error) SetLogLevel(context.Context, *SetLogLevelRequest) (*empty.Empty, error) }
AvCliServer is the server API for AvCli service.
type AvCli_FixTimeClient ¶
type AvCli_FixTimeClient interface { Recv() (*IDResult, error) grpc.ClientStream }
type AvCli_FixTimeServer ¶
type AvCli_FixTimeServer interface { Send(*IDResult) error grpc.ServerStream }
type AvCli_FloatClient ¶
type AvCli_FloatClient interface { Recv() (*IDResult, error) grpc.ClientStream }
type AvCli_FloatServer ¶
type AvCli_FloatServer interface { Send(*IDResult) error grpc.ServerStream }
type AvCli_SinkClient ¶
type AvCli_SinkClient interface { Recv() (*IDResult, error) grpc.ClientStream }
type AvCli_SinkServer ¶
type AvCli_SinkServer interface { Send(*IDResult) error grpc.ServerStream }
type AvCli_SwabClient ¶
type AvCli_SwabClient interface { Recv() (*IDResult, error) grpc.ClientStream }
type AvCli_SwabServer ¶
type AvCli_SwabServer interface { Send(*IDResult) error grpc.ServerStream }
type Client ¶
type Client struct { Auth Auth // contains filtered or unexported fields }
func (*Client) CloseMonitoringIssue ¶
func (*Client) CopyRoom ¶ added in v1.1.0
func (c *Client) CopyRoom(ctx context.Context, in *CopyRoomRequest, opts ...grpc.CallOption) (*empty.Empty, error)
func (*Client) FixTime ¶
func (c *Client) FixTime(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FixTimeClient, error)
func (*Client) Float ¶
func (c *Client) Float(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_FloatClient, error)
func (*Client) RemoveDeviceFromMonitoring ¶ added in v1.1.0
func (*Client) Screenshot ¶
func (c *Client) Screenshot(ctx context.Context, in *ID, opts ...grpc.CallOption) (*ScreenshotResult, error)
func (*Client) SetLogLevel ¶
func (c *Client) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*empty.Empty, error)
func (*Client) Sink ¶
func (c *Client) Sink(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SinkClient, error)
func (*Client) Swab ¶
func (c *Client) Swab(ctx context.Context, in *ID, opts ...grpc.CallOption) (AvCli_SwabClient, error)
type CopyRoomRequest ¶
type CopyRoomRequest struct { Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` SrcDesignation string `protobuf:"bytes,2,opt,name=srcDesignation,proto3" json:"srcDesignation,omitempty"` Dst string `protobuf:"bytes,3,opt,name=dst,proto3" json:"dst,omitempty"` DstDesignation string `protobuf:"bytes,4,opt,name=dstDesignation,proto3" json:"dstDesignation,omitempty"` // contains filtered or unexported fields }
func (*CopyRoomRequest) Descriptor
deprecated
func (*CopyRoomRequest) Descriptor() ([]byte, []int)
Deprecated: Use CopyRoomRequest.ProtoReflect.Descriptor instead.
func (*CopyRoomRequest) GetDst ¶
func (x *CopyRoomRequest) GetDst() string
func (*CopyRoomRequest) GetDstDesignation ¶
func (x *CopyRoomRequest) GetDstDesignation() string
func (*CopyRoomRequest) GetSrc ¶
func (x *CopyRoomRequest) GetSrc() string
func (*CopyRoomRequest) GetSrcDesignation ¶
func (x *CopyRoomRequest) GetSrcDesignation() string
func (*CopyRoomRequest) ProtoMessage ¶
func (*CopyRoomRequest) ProtoMessage()
func (*CopyRoomRequest) ProtoReflect ¶
func (x *CopyRoomRequest) ProtoReflect() protoreflect.Message
func (*CopyRoomRequest) Reset ¶
func (x *CopyRoomRequest) Reset()
func (*CopyRoomRequest) String ¶
func (x *CopyRoomRequest) String() string
type DataService ¶ added in v1.1.0
type ID ¶
type ID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Designation string `protobuf:"bytes,2,opt,name=designation,proto3" json:"designation,omitempty"` // contains filtered or unexported fields }
func (*ID) Descriptor
deprecated
func (*ID) GetDesignation ¶
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type IDResult ¶
type IDResult struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*IDResult) Descriptor
deprecated
func (*IDResult) ProtoMessage ¶
func (*IDResult) ProtoMessage()
func (*IDResult) ProtoReflect ¶
func (x *IDResult) ProtoReflect() protoreflect.Message
type ScreenshotResult ¶
type ScreenshotResult struct { Photo []byte `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` // contains filtered or unexported fields }
func (*ScreenshotResult) Descriptor
deprecated
func (*ScreenshotResult) Descriptor() ([]byte, []int)
Deprecated: Use ScreenshotResult.ProtoReflect.Descriptor instead.
func (*ScreenshotResult) GetPhoto ¶
func (x *ScreenshotResult) GetPhoto() []byte
func (*ScreenshotResult) ProtoMessage ¶
func (*ScreenshotResult) ProtoMessage()
func (*ScreenshotResult) ProtoReflect ¶
func (x *ScreenshotResult) ProtoReflect() protoreflect.Message
func (*ScreenshotResult) Reset ¶
func (x *ScreenshotResult) Reset()
func (*ScreenshotResult) String ¶
func (x *ScreenshotResult) String() string
type SetLogLevelRequest ¶
type SetLogLevelRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
func (*SetLogLevelRequest) Descriptor
deprecated
func (*SetLogLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead.
func (*SetLogLevelRequest) GetId ¶
func (x *SetLogLevelRequest) GetId() string
func (*SetLogLevelRequest) GetLevel ¶
func (x *SetLogLevelRequest) GetLevel() int32
func (*SetLogLevelRequest) GetPort ¶
func (x *SetLogLevelRequest) GetPort() int32
func (*SetLogLevelRequest) ProtoMessage ¶
func (*SetLogLevelRequest) ProtoMessage()
func (*SetLogLevelRequest) ProtoReflect ¶
func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message
func (*SetLogLevelRequest) Reset ¶
func (x *SetLogLevelRequest) Reset()
func (*SetLogLevelRequest) String ¶
func (x *SetLogLevelRequest) String() string
type UnimplementedAvCliServer ¶
type UnimplementedAvCliServer struct { }
UnimplementedAvCliServer can be embedded to have forward compatible implementations.
func (*UnimplementedAvCliServer) CloseMonitoringIssue ¶
func (*UnimplementedAvCliServer) CopyRoom ¶
func (*UnimplementedAvCliServer) CopyRoom(context.Context, *CopyRoomRequest) (*empty.Empty, error)
func (*UnimplementedAvCliServer) FixTime ¶
func (*UnimplementedAvCliServer) FixTime(*ID, AvCli_FixTimeServer) error
func (*UnimplementedAvCliServer) Float ¶
func (*UnimplementedAvCliServer) Float(*ID, AvCli_FloatServer) error
func (*UnimplementedAvCliServer) RemoveDeviceFromMonitoring ¶
func (*UnimplementedAvCliServer) Screenshot ¶
func (*UnimplementedAvCliServer) Screenshot(context.Context, *ID) (*ScreenshotResult, error)
func (*UnimplementedAvCliServer) SetLogLevel ¶
func (*UnimplementedAvCliServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*empty.Empty, error)
func (*UnimplementedAvCliServer) Sink ¶
func (*UnimplementedAvCliServer) Sink(*ID, AvCli_SinkServer) error
func (*UnimplementedAvCliServer) Swab ¶
func (*UnimplementedAvCliServer) Swab(*ID, AvCli_SwabServer) error
Click to show internal directories.
Click to hide internal directories.