server

package
v0.0.0-...-ed5f423 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSyncSizeLimit = 1024 * 1024 * 2
)

Variables

View Source
var (
	Host = "0.0.0.0"
	Port = 9091

	BufferSize int64 = 1024 * 8
)

Functions

func ShutdownGRPC

func ShutdownGRPC() error

func StartupGRPC

func StartupGRPC()

Types

type GRPC

type GRPC struct {
	pb.UnimplementedThiefServer
}

func (*GRPC) Download

func (g *GRPC) Download(value *wrapperspb.StringValue, fs pb.Thief_DownloadServer) error

func (*GRPC) Exec

func (g *GRPC) Exec(ctx context.Context, req *pb.CmdRequest) (*pb.CmdResponse, error)

func (*GRPC) ListFile

func (g *GRPC) ListFile(data *wrapperspb.StringValue, fs pb.Thief_ListFileServer) error

func (*GRPC) MD5

func (*GRPC) OpenFile

func (g *GRPC) OpenFile(ctx context.Context, req *pb.FileRequest) (*wrapperspb.StringValue, error)

func (*GRPC) Upload

func (g *GRPC) Upload(fs pb.Thief_UploadServer) error

func (*GRPC) Version

func (g *GRPC) Version(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.StringValue, error)

Jump to

Keyboard shortcuts

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