gcontroller

package
v0.0.0-...-f638a73 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServicesFunc_InsertLoginServiceInfo_FullMethodName = "/gcontroller.ServicesFunc/InsertLoginServiceInfo"
	ServicesFunc_UpdateLoginServiceInfo_FullMethodName = "/gcontroller.ServicesFunc/UpdateLoginServiceInfo"
)

Variables

View Source
var File_xsaber_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode

func (x *Response) GetCode() int32

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ScanFile.ProtoReflect.Descriptor instead.

func (*ScanFile) GetDataCount

func (x *ScanFile) GetDataCount() int32

func (*ScanFile) GetLastTime

func (x *ScanFile) GetLastTime() int64

func (*ScanFile) GetPath

func (x *ScanFile) GetPath() string

func (*ScanFile) ProtoMessage

func (*ScanFile) ProtoMessage()

func (*ScanFile) ProtoReflect

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

func (*ScanFile) Reset

func (x *ScanFile) Reset()

func (*ScanFile) String

func (x *ScanFile) String() string

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.

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) UpdateLoginServiceInfo

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.

Jump to

Keyboard shortcuts

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