proto

package
v0.0.0-...-dac2ecc Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_gobox_proto protoreflect.FileDescriptor
View Source
var GoBox_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gobox.GoBox",
	HandlerType: (*GoBoxServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendFileInfo",
			Handler:    _GoBox_SendFileInfo_Handler,
		},
		{
			MethodName: "InitialSyncComplete",
			Handler:    _GoBox_InitialSyncComplete_Handler,
		},
		{
			MethodName: "DeleteFile",
			Handler:    _GoBox_DeleteFile_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SendFileChunks",
			Handler:       _GoBox_SendFileChunks_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "proto/gobox.proto",
}

GoBox_ServiceDesc is the grpc.ServiceDesc for GoBox service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGoBoxServer

func RegisterGoBoxServer(s grpc.ServiceRegistrar, srv GoBoxServer)

Types

type ChunkID

type ChunkID struct {
	FileId      int64 `protobuf:"varint,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	ChunkNumber int64 `protobuf:"varint,2,opt,name=chunk_number,json=chunkNumber,proto3" json:"chunk_number,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunkID) Descriptor deprecated

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

Deprecated: Use ChunkID.ProtoReflect.Descriptor instead.

func (*ChunkID) GetChunkNumber

func (x *ChunkID) GetChunkNumber() int64

func (*ChunkID) GetFileId

func (x *ChunkID) GetFileId() int64

func (*ChunkID) ProtoMessage

func (*ChunkID) ProtoMessage()

func (*ChunkID) ProtoReflect

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

func (*ChunkID) Reset

func (x *ChunkID) Reset()

func (*ChunkID) String

func (x *ChunkID) String() string

type DeleteFileInput

type DeleteFileInput struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFileInput) Descriptor deprecated

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

Deprecated: Use DeleteFileInput.ProtoReflect.Descriptor instead.

func (*DeleteFileInput) GetPath

func (x *DeleteFileInput) GetPath() string

func (*DeleteFileInput) ProtoMessage

func (*DeleteFileInput) ProtoMessage()

func (*DeleteFileInput) ProtoReflect

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

func (*DeleteFileInput) Reset

func (x *DeleteFileInput) Reset()

func (*DeleteFileInput) String

func (x *DeleteFileInput) String() string

type GoBoxClient

type GoBoxClient interface {
	SendFileInfo(ctx context.Context, in *SendFileInfoInput, opts ...grpc.CallOption) (*SendFileInfoResponse, error)
	SendFileChunks(ctx context.Context, opts ...grpc.CallOption) (GoBox_SendFileChunksClient, error)
	InitialSyncComplete(ctx context.Context, in *Null, opts ...grpc.CallOption) (*Null, error)
	DeleteFile(ctx context.Context, in *DeleteFileInput, opts ...grpc.CallOption) (*Null, error)
}

GoBoxClient is the client API for GoBox 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 NewGoBoxClient

func NewGoBoxClient(cc grpc.ClientConnInterface) GoBoxClient

type GoBoxServer

type GoBoxServer interface {
	SendFileInfo(context.Context, *SendFileInfoInput) (*SendFileInfoResponse, error)
	SendFileChunks(GoBox_SendFileChunksServer) error
	InitialSyncComplete(context.Context, *Null) (*Null, error)
	DeleteFile(context.Context, *DeleteFileInput) (*Null, error)
	// contains filtered or unexported methods
}

GoBoxServer is the server API for GoBox service. All implementations must embed UnimplementedGoBoxServer for forward compatibility

type GoBox_SendFileChunksClient

type GoBox_SendFileChunksClient interface {
	Send(*SendFileChunksInput) error
	CloseAndRecv() (*Null, error)
	grpc.ClientStream
}

type GoBox_SendFileChunksServer

type GoBox_SendFileChunksServer interface {
	SendAndClose(*Null) error
	Recv() (*SendFileChunksInput, error)
	grpc.ServerStream
}

type Null

type Null struct {
	// contains filtered or unexported fields
}

func (*Null) Descriptor deprecated

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

Deprecated: Use Null.ProtoReflect.Descriptor instead.

func (*Null) ProtoMessage

func (*Null) ProtoMessage()

func (*Null) ProtoReflect

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

func (*Null) Reset

func (x *Null) Reset()

func (*Null) String

func (x *Null) String() string

type SendFileChunksInput

type SendFileChunksInput struct {
	ChunkId *ChunkID `protobuf:"bytes,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
	Data    []byte   `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SendFileChunksInput) Descriptor deprecated

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

Deprecated: Use SendFileChunksInput.ProtoReflect.Descriptor instead.

func (*SendFileChunksInput) GetChunkId

func (x *SendFileChunksInput) GetChunkId() *ChunkID

func (*SendFileChunksInput) GetData

func (x *SendFileChunksInput) GetData() []byte

func (*SendFileChunksInput) ProtoMessage

func (*SendFileChunksInput) ProtoMessage()

func (*SendFileChunksInput) ProtoReflect

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

func (*SendFileChunksInput) Reset

func (x *SendFileChunksInput) Reset()

func (*SendFileChunksInput) String

func (x *SendFileChunksInput) String() string

type SendFileInfoInput

type SendFileInfoInput struct {
	FileName    string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	FileId      int64  `protobuf:"varint,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	IsDirectory bool   `protobuf:"varint,3,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"`
	Size        int64  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	ModTime     int64  `protobuf:"varint,5,opt,name=mod_time,json=modTime,proto3" json:"mod_time,omitempty"`
	// contains filtered or unexported fields
}

func (*SendFileInfoInput) Descriptor deprecated

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

Deprecated: Use SendFileInfoInput.ProtoReflect.Descriptor instead.

func (*SendFileInfoInput) GetFileId

func (x *SendFileInfoInput) GetFileId() int64

func (*SendFileInfoInput) GetFileName

func (x *SendFileInfoInput) GetFileName() string

func (*SendFileInfoInput) GetIsDirectory

func (x *SendFileInfoInput) GetIsDirectory() bool

func (*SendFileInfoInput) GetModTime

func (x *SendFileInfoInput) GetModTime() int64

func (*SendFileInfoInput) GetSize

func (x *SendFileInfoInput) GetSize() int64

func (*SendFileInfoInput) ProtoMessage

func (*SendFileInfoInput) ProtoMessage()

func (*SendFileInfoInput) ProtoReflect

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

func (*SendFileInfoInput) Reset

func (x *SendFileInfoInput) Reset()

func (*SendFileInfoInput) String

func (x *SendFileInfoInput) String() string

type SendFileInfoResponse

type SendFileInfoResponse struct {
	SendChunkIds bool `protobuf:"varint,1,opt,name=send_chunk_ids,json=sendChunkIds,proto3" json:"send_chunk_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*SendFileInfoResponse) Descriptor deprecated

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

Deprecated: Use SendFileInfoResponse.ProtoReflect.Descriptor instead.

func (*SendFileInfoResponse) GetSendChunkIds

func (x *SendFileInfoResponse) GetSendChunkIds() bool

func (*SendFileInfoResponse) ProtoMessage

func (*SendFileInfoResponse) ProtoMessage()

func (*SendFileInfoResponse) ProtoReflect

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

func (*SendFileInfoResponse) Reset

func (x *SendFileInfoResponse) Reset()

func (*SendFileInfoResponse) String

func (x *SendFileInfoResponse) String() string

type UnimplementedGoBoxServer

type UnimplementedGoBoxServer struct {
}

UnimplementedGoBoxServer must be embedded to have forward compatible implementations.

func (UnimplementedGoBoxServer) DeleteFile

func (UnimplementedGoBoxServer) InitialSyncComplete

func (UnimplementedGoBoxServer) InitialSyncComplete(context.Context, *Null) (*Null, error)

func (UnimplementedGoBoxServer) SendFileChunks

func (UnimplementedGoBoxServer) SendFileInfo

type UnsafeGoBoxServer

type UnsafeGoBoxServer interface {
	// contains filtered or unexported methods
}

UnsafeGoBoxServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoBoxServer will result in compilation errors.

Jump to

Keyboard shortcuts

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