grpcservers

package
v0.0.0-...-226c3a4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreateInitServersFn

func CreateInitServersFn(
	fs *FilesServer,
) grpc.InitServers

Types

type FilesServer

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

func CreateFilesServer

func CreateFilesServer(cf string, service services.FilesService) (*FilesServer, error)

func NewFilesServer

func NewFilesServer(logger *zap.Logger, fs services.FilesService) (*FilesServer, error)

func (FilesServer) CreateDirectory

func (f FilesServer) CreateDirectory(ctx context.Context, req *proto.CreateDirectoryRequest) (res *proto.CreateDirectoryResponse, err error)

func (FilesServer) CreateFile

func (f FilesServer) CreateFile(ctx context.Context, req *proto.CreateFileRequest) (res *proto.CreateFileResponse, err error)

func (FilesServer) CreateFileSpace

func (f FilesServer) CreateFileSpace(ctx context.Context, req *proto.CreateFileSpaceRequest) (res *proto.CreateFileSpaceResponse, err error)

func (FilesServer) FetchFile

func (f FilesServer) FetchFile(ctx context.Context, req *proto.FetchFileRequest) (res *proto.FetchFileResponse, err error)

Jump to

Keyboard shortcuts

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