Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBackgroundServiceServer(s grpc.ServiceRegistrar, srv BackgroundServiceServer)
- func RegisterDataServiceServer(s grpc.ServiceRegistrar, srv DataServiceServer)
- type BackgroundServiceClient
- type BackgroundServiceServer
- type Data
- type DataRequest
- func (*DataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DataRequest) GetConnectionIp() string
- func (x *DataRequest) GetWorkspaceName() string
- func (*DataRequest) ProtoMessage()
- func (x *DataRequest) ProtoReflect() protoreflect.Message
- func (x *DataRequest) Reset()
- func (x *DataRequest) String() string
- type DataServiceClient
- type DataServiceServer
- type DataService_GetDataClient
- type DataService_GetDataServer
- type GetWorkspaceResponse
- func (*GetWorkspaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWorkspaceResponse) GetPort() int32
- func (x *GetWorkspaceResponse) GetResponse() int32
- func (*GetWorkspaceResponse) ProtoMessage()
- func (x *GetWorkspaceResponse) ProtoReflect() protoreflect.Message
- func (x *GetWorkspaceResponse) Reset()
- func (x *GetWorkspaceResponse) String() string
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitRequest) GetPassword() string
- func (x *InitRequest) GetPort() string
- func (x *InitRequest) GetPublicKey() []byte
- func (x *InitRequest) GetUsername() string
- func (x *InitRequest) GetWorkspaceName() string
- func (*InitRequest) ProtoMessage()
- func (x *InitRequest) ProtoReflect() protoreflect.Message
- func (x *InitRequest) Reset()
- func (x *InitRequest) String() string
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitResponse) GetPort() int32
- func (x *InitResponse) GetResponse() int32
- func (*InitResponse) ProtoMessage()
- func (x *InitResponse) ProtoReflect() protoreflect.Message
- func (x *InitResponse) Reset()
- func (x *InitResponse) String() string
- type PublicKey
- type UnimplementedBackgroundServiceServer
- func (UnimplementedBackgroundServiceServer) GetPublicKey(context.Context, *emptypb.Empty) (*PublicKey, error)
- func (UnimplementedBackgroundServiceServer) GetWorkspace(context.Context, *WorkspaceRequest) (*GetWorkspaceResponse, error)
- func (UnimplementedBackgroundServiceServer) InitNewWorkSpaceConnection(context.Context, *InitRequest) (*InitResponse, error)
- type UnimplementedDataServiceServer
- type UnsafeBackgroundServiceServer
- type UnsafeDataServiceServer
- type WorkspaceRequest
- func (*WorkspaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceRequest) GetPassword() string
- func (x *WorkspaceRequest) GetWorkspaceName() string
- func (*WorkspaceRequest) ProtoMessage()
- func (x *WorkspaceRequest) ProtoReflect() protoreflect.Message
- func (x *WorkspaceRequest) Reset()
- func (x *WorkspaceRequest) String() string
Constants ¶
const ( BackgroundService_GetPublicKey_FullMethodName = "/background_service.BackgroundService/GetPublicKey" BackgroundService_InitNewWorkSpaceConnection_FullMethodName = "/background_service.BackgroundService/InitNewWorkSpaceConnection" BackgroundService_GetWorkspace_FullMethodName = "/background_service.BackgroundService/GetWorkspace" )
const (
DataService_GetData_FullMethodName = "/background_service.DataService/GetData"
)
Variables ¶
var BackgroundService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "background_service.BackgroundService", HandlerType: (*BackgroundServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPublicKey", Handler: _BackgroundService_GetPublicKey_Handler, }, { MethodName: "InitNewWorkSpaceConnection", Handler: _BackgroundService_InitNewWorkSpaceConnection_Handler, }, { MethodName: "GetWorkspace", Handler: _BackgroundService_GetWorkspace_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/background_service.proto", }
BackgroundService_ServiceDesc is the grpc.ServiceDesc for BackgroundService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "background_service.DataService", HandlerType: (*DataServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GetData", Handler: _DataService_GetData_Handler, ServerStreams: true, }, }, Metadata: "proto/background_service.proto", }
DataService_ServiceDesc is the grpc.ServiceDesc for DataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_background_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBackgroundServiceServer ¶
func RegisterBackgroundServiceServer(s grpc.ServiceRegistrar, srv BackgroundServiceServer)
func RegisterDataServiceServer ¶
func RegisterDataServiceServer(s grpc.ServiceRegistrar, srv DataServiceServer)
Types ¶
type BackgroundServiceClient ¶
type BackgroundServiceClient interface { // Get Public Key To Encrypt Passwords GetPublicKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PublicKey, error) // Establish / Register new User to a Workspace InitNewWorkSpaceConnection(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error) // Request to Open a gRPC Port for Data Transfer GetWorkspace(ctx context.Context, in *WorkspaceRequest, opts ...grpc.CallOption) (*GetWorkspaceResponse, error) }
BackgroundServiceClient is the client API for BackgroundService 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 NewBackgroundServiceClient ¶
func NewBackgroundServiceClient(cc grpc.ClientConnInterface) BackgroundServiceClient
type BackgroundServiceServer ¶
type BackgroundServiceServer interface { // Get Public Key To Encrypt Passwords GetPublicKey(context.Context, *emptypb.Empty) (*PublicKey, error) // Establish / Register new User to a Workspace InitNewWorkSpaceConnection(context.Context, *InitRequest) (*InitResponse, error) // Request to Open a gRPC Port for Data Transfer GetWorkspace(context.Context, *WorkspaceRequest) (*GetWorkspaceResponse, error) // contains filtered or unexported methods }
BackgroundServiceServer is the server API for BackgroundService service. All implementations must embed UnimplementedBackgroundServiceServer for forward compatibility
type Data ¶
type Data struct { Filetype uint32 `protobuf:"varint,1,opt,name=filetype,proto3" json:"filetype,omitempty"` // Data[0] or AES Key[1] or AES IV[2] Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetFiletype ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type DataRequest ¶
type DataRequest struct { WorkspaceName string `protobuf:"bytes,1,opt,name=workspace_name,json=workspaceName,proto3" json:"workspace_name,omitempty"` ConnectionIp string `protobuf:"bytes,2,opt,name=connection_ip,json=connectionIp,proto3" json:"connection_ip,omitempty"` // contains filtered or unexported fields }
func (*DataRequest) Descriptor
deprecated
func (*DataRequest) Descriptor() ([]byte, []int)
Deprecated: Use DataRequest.ProtoReflect.Descriptor instead.
func (*DataRequest) GetConnectionIp ¶
func (x *DataRequest) GetConnectionIp() string
func (*DataRequest) GetWorkspaceName ¶
func (x *DataRequest) GetWorkspaceName() string
func (*DataRequest) ProtoMessage ¶
func (*DataRequest) ProtoMessage()
func (*DataRequest) ProtoReflect ¶
func (x *DataRequest) ProtoReflect() protoreflect.Message
func (*DataRequest) Reset ¶
func (x *DataRequest) Reset()
func (*DataRequest) String ¶
func (x *DataRequest) String() string
type DataServiceClient ¶
type DataServiceClient interface {
GetData(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (DataService_GetDataClient, error)
}
DataServiceClient is the client API for DataService 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 NewDataServiceClient ¶
func NewDataServiceClient(cc grpc.ClientConnInterface) DataServiceClient
type DataServiceServer ¶
type DataServiceServer interface { GetData(*DataRequest, DataService_GetDataServer) error // contains filtered or unexported methods }
DataServiceServer is the server API for DataService service. All implementations must embed UnimplementedDataServiceServer for forward compatibility
type DataService_GetDataClient ¶
type DataService_GetDataClient interface { Recv() (*Data, error) grpc.ClientStream }
type DataService_GetDataServer ¶
type DataService_GetDataServer interface { Send(*Data) error grpc.ServerStream }
type GetWorkspaceResponse ¶
type GetWorkspaceResponse struct { Response int32 `protobuf:"varint,1,opt,name=response,proto3" json:"response,omitempty"` // 200 [Valid / ACK / OK] ||| 4000 [InValid / You Fucked Up Somewhere] Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*GetWorkspaceResponse) Descriptor
deprecated
func (*GetWorkspaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkspaceResponse.ProtoReflect.Descriptor instead.
func (*GetWorkspaceResponse) GetPort ¶
func (x *GetWorkspaceResponse) GetPort() int32
func (*GetWorkspaceResponse) GetResponse ¶
func (x *GetWorkspaceResponse) GetResponse() int32
func (*GetWorkspaceResponse) ProtoMessage ¶
func (*GetWorkspaceResponse) ProtoMessage()
func (*GetWorkspaceResponse) ProtoReflect ¶
func (x *GetWorkspaceResponse) ProtoReflect() protoreflect.Message
func (*GetWorkspaceResponse) Reset ¶
func (x *GetWorkspaceResponse) Reset()
func (*GetWorkspaceResponse) String ¶
func (x *GetWorkspaceResponse) String() string
type InitRequest ¶
type InitRequest struct { WorkspaceName string `protobuf:"bytes,1,opt,name=workspace_name,json=workspaceName,proto3" json:"workspace_name,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Port string `protobuf:"bytes,5,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetPassword ¶
func (x *InitRequest) GetPassword() string
func (*InitRequest) GetPort ¶
func (x *InitRequest) GetPort() string
func (*InitRequest) GetPublicKey ¶
func (x *InitRequest) GetPublicKey() []byte
func (*InitRequest) GetUsername ¶
func (x *InitRequest) GetUsername() string
func (*InitRequest) GetWorkspaceName ¶
func (x *InitRequest) GetWorkspaceName() string
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type InitResponse ¶
type InitResponse struct { Response int32 `protobuf:"varint,1,opt,name=response,proto3" json:"response,omitempty"` // 200 [Valid / ACK / OK] ||| 4000 [InValid / You Fucked Up Somewhere] Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) GetPort ¶
func (x *InitResponse) GetPort() int32
func (*InitResponse) GetResponse ¶
func (x *InitResponse) GetResponse() int32
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type PublicKey ¶
type PublicKey struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
type UnimplementedBackgroundServiceServer ¶
type UnimplementedBackgroundServiceServer struct { }
UnimplementedBackgroundServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBackgroundServiceServer) GetPublicKey ¶
func (UnimplementedBackgroundServiceServer) GetWorkspace ¶
func (UnimplementedBackgroundServiceServer) GetWorkspace(context.Context, *WorkspaceRequest) (*GetWorkspaceResponse, error)
func (UnimplementedBackgroundServiceServer) InitNewWorkSpaceConnection ¶
func (UnimplementedBackgroundServiceServer) InitNewWorkSpaceConnection(context.Context, *InitRequest) (*InitResponse, error)
type UnimplementedDataServiceServer ¶
type UnimplementedDataServiceServer struct { }
UnimplementedDataServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDataServiceServer) GetData ¶
func (UnimplementedDataServiceServer) GetData(*DataRequest, DataService_GetDataServer) error
type UnsafeBackgroundServiceServer ¶
type UnsafeBackgroundServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBackgroundServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackgroundServiceServer will result in compilation errors.
type UnsafeDataServiceServer ¶
type UnsafeDataServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataServiceServer will result in compilation errors.
type WorkspaceRequest ¶
type WorkspaceRequest struct { WorkspaceName string `protobuf:"bytes,1,opt,name=workspace_name,json=workspaceName,proto3" json:"workspace_name,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceRequest) Descriptor
deprecated
func (*WorkspaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceRequest.ProtoReflect.Descriptor instead.
func (*WorkspaceRequest) GetPassword ¶
func (x *WorkspaceRequest) GetPassword() string
func (*WorkspaceRequest) GetWorkspaceName ¶
func (x *WorkspaceRequest) GetWorkspaceName() string
func (*WorkspaceRequest) ProtoMessage ¶
func (*WorkspaceRequest) ProtoMessage()
func (*WorkspaceRequest) ProtoReflect ¶
func (x *WorkspaceRequest) ProtoReflect() protoreflect.Message
func (*WorkspaceRequest) Reset ¶
func (x *WorkspaceRequest) Reset()
func (*WorkspaceRequest) String ¶
func (x *WorkspaceRequest) String() string