file

package
v0.0.0-...-23f538b Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gitee_com_jingshanccc_course_file_proto_file_file_proto protoreflect.FileDescriptor

Functions

func NewFileServiceEndpoints

func NewFileServiceEndpoints() []*api.Endpoint

func RegisterFileServiceHandler

func RegisterFileServiceHandler(s server.Server, hdlr FileServiceHandler, opts ...server.HandlerOption) error

Types

type FileService

type FileService interface {
	Upload(ctx context.Context, in *dto.FileDto, opts ...client.CallOption) (*dto.FileDto, error)
	Check(ctx context.Context, in *basic.String, opts ...client.CallOption) (*dto.FileDto, error)
	VerifyUpload(ctx context.Context, in *basic.String, opts ...client.CallOption) (*dto.VerifyRes, error)
	UploadShard(ctx context.Context, in *dto.FileShardDto, opts ...client.CallOption) (*basic.Boolean, error)
	Merge(ctx context.Context, in *dto.FileDto, opts ...client.CallOption) (*dto.FileDto, error)
	Cancel(ctx context.Context, in *basic.String, opts ...client.CallOption) (*basic.String, error)
}

func NewFileService

func NewFileService(name string, c client.Client) FileService

Jump to

Keyboard shortcuts

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