server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	Port        int
	StartPrefix string
	EndPrefix   string
}

type Server

type Server struct {
	pb_filesystem.UnimplementedFileSeverServer
	// contains filtered or unexported fields
}

func New

func New(opts Opts) (*Server, error)

func (*Server) CreateFile

func (*Server) ListDir

Returns the list of files/dirs at path.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

func (*Server) MakeDir

func (*Server) ReadFile

func (*Server) Remove

func (*Server) WriteFile

func (s *Server) WriteFile(stream pb_filesystem.FileSever_WriteFileServer) error

Jump to

Keyboard shortcuts

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