Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2021 Changes in this version + func RegisterService(s grpc.ServiceRegistrar, callbacks Callbacks) + type Callbacks interface + PeerFromContext func(context.Context) (Peer, codes.Code, error) + ResolvePath func(peer Peer, path string) (string, codes.Code, error) + type Peer interface + type Service struct + func NewService(callbacks Callbacks) *Service + func (s *Service) Close(ctx context.Context, req *pb.CloseRequest) (*empty.Empty, error) + func (s *Service) Fstat(ctx context.Context, req *pb.FstatRequest) (*pb.StatResponse, error) + func (s *Service) Fsync(ctx context.Context, req *pb.FsyncRequest) (*empty.Empty, error) + func (s *Service) Ftruncate(ctx context.Context, req *pb.FtruncateRequest) (*empty.Empty, error) + func (s *Service) KeepAlive(ctx context.Context, req *pb.KeepAliveRequest) (*empty.Empty, error) + func (s *Service) Mkdir(ctx context.Context, req *pb.MkdirRequest) (*empty.Empty, error) + func (s *Service) Open(ctx context.Context, req *pb.OpenRequest) (*pb.OpenResponse, error) + func (s *Service) Read(ctx context.Context, req *pb.ReadRequest) (*pb.ReadResponse, error) + func (s *Service) ReadAt(ctx context.Context, req *pb.ReadAtRequest) (*pb.ReadResponse, error) + func (s *Service) Readdir(ctx context.Context, req *pb.ReaddirRequest) (*pb.ReaddirResponse, error) + func (s *Service) Rename(ctx context.Context, req *pb.RenameRequest) (*empty.Empty, error) + func (s *Service) Rmdir(ctx context.Context, req *pb.RmdirRequest) (*empty.Empty, error) + func (s *Service) Seek(ctx context.Context, req *pb.SeekRequest) (*pb.SeekResponse, error) + func (s *Service) Stat(ctx context.Context, req *pb.StatRequest) (*pb.StatResponse, error) + func (s *Service) Truncate(ctx context.Context, req *pb.TruncateRequest) (*empty.Empty, error) + func (s *Service) Unlink(ctx context.Context, req *pb.UnlinkRequest) (*empty.Empty, error) + func (s *Service) Write(ctx context.Context, req *pb.WriteRequest) (*pb.WriteResponse, error) + func (s *Service) WriteAt(ctx context.Context, req *pb.WriteAtRequest) (*pb.WriteResponse, error)