Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServicesFuncServer(s grpc.ServiceRegistrar, srv ServicesFuncServer)
- type LoginServiceInfo
- func (*LoginServiceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *LoginServiceInfo) GetIp() string
- func (x *LoginServiceInfo) GetName() string
- func (x *LoginServiceInfo) GetScanApplications() []*ScanApplication
- func (x *LoginServiceInfo) GetScanFiles() []*ScanFile
- func (x *LoginServiceInfo) GetUuid() string
- func (*LoginServiceInfo) ProtoMessage()
- func (x *LoginServiceInfo) ProtoReflect() protoreflect.Message
- func (x *LoginServiceInfo) Reset()
- func (x *LoginServiceInfo) String() string
- type Response
- type ScanApplication
- func (*ScanApplication) Descriptor() ([]byte, []int)deprecated
- func (x *ScanApplication) GetLastTime() int64
- func (x *ScanApplication) GetName() string
- func (*ScanApplication) ProtoMessage()
- func (x *ScanApplication) ProtoReflect() protoreflect.Message
- func (x *ScanApplication) Reset()
- func (x *ScanApplication) String() string
- type ScanFile
- func (*ScanFile) Descriptor() ([]byte, []int)deprecated
- func (x *ScanFile) GetDataCount() int32
- func (x *ScanFile) GetLastTime() int64
- func (x *ScanFile) GetPath() string
- func (*ScanFile) ProtoMessage()
- func (x *ScanFile) ProtoReflect() protoreflect.Message
- func (x *ScanFile) Reset()
- func (x *ScanFile) String() string
- type ServicesFuncClient
- type ServicesFuncServer
- type ServicesFunc_UpdateLoginServiceInfoClient
- type ServicesFunc_UpdateLoginServiceInfoServer
- type UnimplementedServicesFuncServer
- type UnsafeServicesFuncServer
Constants ¶
const ( ServicesFunc_InsertLoginServiceInfo_FullMethodName = "/gcontroller.ServicesFunc/InsertLoginServiceInfo" ServicesFunc_UpdateLoginServiceInfo_FullMethodName = "/gcontroller.ServicesFunc/UpdateLoginServiceInfo" )
Variables ¶
var File_xsaber_proto protoreflect.FileDescriptor
var ServicesFunc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gcontroller.ServicesFunc", HandlerType: (*ServicesFuncServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InsertLoginServiceInfo", Handler: _ServicesFunc_InsertLoginServiceInfo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UpdateLoginServiceInfo", Handler: _ServicesFunc_UpdateLoginServiceInfo_Handler, ClientStreams: true, }, }, Metadata: "xsaber.proto", }
ServicesFunc_ServiceDesc is the grpc.ServiceDesc for ServicesFunc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServicesFuncServer ¶
func RegisterServicesFuncServer(s grpc.ServiceRegistrar, srv ServicesFuncServer)
Types ¶
type LoginServiceInfo ¶
type LoginServiceInfo struct { Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Ip string `protobuf:"bytes,3,opt,name=Ip,proto3" json:"Ip,omitempty"` ScanFiles []*ScanFile `protobuf:"bytes,4,rep,name=ScanFiles,proto3" json:"ScanFiles,omitempty"` ScanApplications []*ScanApplication `protobuf:"bytes,5,rep,name=ScanApplications,proto3" json:"ScanApplications,omitempty"` // contains filtered or unexported fields }
func (*LoginServiceInfo) Descriptor
deprecated
func (*LoginServiceInfo) Descriptor() ([]byte, []int)
Deprecated: Use LoginServiceInfo.ProtoReflect.Descriptor instead.
func (*LoginServiceInfo) GetIp ¶
func (x *LoginServiceInfo) GetIp() string
func (*LoginServiceInfo) GetName ¶
func (x *LoginServiceInfo) GetName() string
func (*LoginServiceInfo) GetScanApplications ¶
func (x *LoginServiceInfo) GetScanApplications() []*ScanApplication
func (*LoginServiceInfo) GetScanFiles ¶
func (x *LoginServiceInfo) GetScanFiles() []*ScanFile
func (*LoginServiceInfo) GetUuid ¶
func (x *LoginServiceInfo) GetUuid() string
func (*LoginServiceInfo) ProtoMessage ¶
func (*LoginServiceInfo) ProtoMessage()
func (*LoginServiceInfo) ProtoReflect ¶
func (x *LoginServiceInfo) ProtoReflect() protoreflect.Message
func (*LoginServiceInfo) Reset ¶
func (x *LoginServiceInfo) Reset()
func (*LoginServiceInfo) String ¶
func (x *LoginServiceInfo) String() string
type Response ¶
type Response struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ScanApplication ¶
type ScanApplication struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` LastTime int64 `protobuf:"varint,2,opt,name=LastTime,proto3" json:"LastTime,omitempty"` // contains filtered or unexported fields }
func (*ScanApplication) Descriptor
deprecated
func (*ScanApplication) Descriptor() ([]byte, []int)
Deprecated: Use ScanApplication.ProtoReflect.Descriptor instead.
func (*ScanApplication) GetLastTime ¶
func (x *ScanApplication) GetLastTime() int64
func (*ScanApplication) GetName ¶
func (x *ScanApplication) GetName() string
func (*ScanApplication) ProtoMessage ¶
func (*ScanApplication) ProtoMessage()
func (*ScanApplication) ProtoReflect ¶
func (x *ScanApplication) ProtoReflect() protoreflect.Message
func (*ScanApplication) Reset ¶
func (x *ScanApplication) Reset()
func (*ScanApplication) String ¶
func (x *ScanApplication) String() string
type ScanFile ¶
type ScanFile struct { Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"` DataCount int32 `protobuf:"varint,2,opt,name=DataCount,proto3" json:"DataCount,omitempty"` LastTime int64 `protobuf:"varint,3,opt,name=LastTime,proto3" json:"LastTime,omitempty"` // contains filtered or unexported fields }
func (*ScanFile) Descriptor
deprecated
func (*ScanFile) GetDataCount ¶
func (*ScanFile) GetLastTime ¶
func (*ScanFile) ProtoMessage ¶
func (*ScanFile) ProtoMessage()
func (*ScanFile) ProtoReflect ¶
func (x *ScanFile) ProtoReflect() protoreflect.Message
type ServicesFuncClient ¶
type ServicesFuncClient interface { InsertLoginServiceInfo(ctx context.Context, in *LoginServiceInfo, opts ...grpc.CallOption) (*Response, error) UpdateLoginServiceInfo(ctx context.Context, opts ...grpc.CallOption) (ServicesFunc_UpdateLoginServiceInfoClient, error) }
ServicesFuncClient is the client API for ServicesFunc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServicesFuncClient ¶
func NewServicesFuncClient(cc grpc.ClientConnInterface) ServicesFuncClient
type ServicesFuncServer ¶
type ServicesFuncServer interface { InsertLoginServiceInfo(context.Context, *LoginServiceInfo) (*Response, error) UpdateLoginServiceInfo(ServicesFunc_UpdateLoginServiceInfoServer) error // contains filtered or unexported methods }
ServicesFuncServer is the server API for ServicesFunc service. All implementations must embed UnimplementedServicesFuncServer for forward compatibility
type ServicesFunc_UpdateLoginServiceInfoClient ¶
type ServicesFunc_UpdateLoginServiceInfoClient interface { Send(*LoginServiceInfo) error CloseAndRecv() (*Response, error) grpc.ClientStream }
type ServicesFunc_UpdateLoginServiceInfoServer ¶
type ServicesFunc_UpdateLoginServiceInfoServer interface { SendAndClose(*Response) error Recv() (*LoginServiceInfo, error) grpc.ServerStream }
type UnimplementedServicesFuncServer ¶
type UnimplementedServicesFuncServer struct { }
UnimplementedServicesFuncServer must be embedded to have forward compatible implementations.
func (UnimplementedServicesFuncServer) InsertLoginServiceInfo ¶
func (UnimplementedServicesFuncServer) InsertLoginServiceInfo(context.Context, *LoginServiceInfo) (*Response, error)
func (UnimplementedServicesFuncServer) UpdateLoginServiceInfo ¶
func (UnimplementedServicesFuncServer) UpdateLoginServiceInfo(ServicesFunc_UpdateLoginServiceInfoServer) error
type UnsafeServicesFuncServer ¶
type UnsafeServicesFuncServer interface {
// contains filtered or unexported methods
}
UnsafeServicesFuncServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServicesFuncServer will result in compilation errors.