Documentation ¶
Index ¶
- Variables
- func ServeFiles(serverPort string)
- type FileCache
- type FileserverServer
- func (s *FileserverServer) ListServer(ctx context.Context, req *pb.ListServeRequest) (*pb.ListServeResponse, error)
- func (s *FileserverServer) ServeFile(ctx context.Context, req *pb.ServeRequest) (*pb.ServeResponse, error)
- func (s *FileserverServer) UnServeFile(ctx context.Context, req *pb.UnServeRequest) (*pb.ServeResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FileMap map[string]*FileCache
View Source
var Log *logger.ParanoidLogger
View Source
var Port string
Functions ¶
func ServeFiles ¶
func ServeFiles(serverPort string)
Types ¶
type FileserverServer ¶
type FileserverServer struct{}
func (*FileserverServer) ListServer ¶
func (s *FileserverServer) ListServer(ctx context.Context, req *pb.ListServeRequest) (*pb.ListServeResponse, error)
func (*FileserverServer) ServeFile ¶
func (s *FileserverServer) ServeFile(ctx context.Context, req *pb.ServeRequest) (*pb.ServeResponse, error)
func (*FileserverServer) UnServeFile ¶
func (s *FileserverServer) UnServeFile(ctx context.Context, req *pb.UnServeRequest) (*pb.ServeResponse, error)
Click to show internal directories.
Click to hide internal directories.