Documentation ¶
Index ¶
- Constants
- type Server
- func (s *Server) ListDirs(r *pb.ListDirsRequest, stream pb.TmpDirListener_ListDirsServer) error
- func (s *Server) RegisterDir(ctx context.Context, dir *pb.RegisterRequest) (*pb.RegisterReply, error)
- func (s *Server) Run() error
- func (s *Server) WatchDir(ctx context.Context, dir *pb.WatchRequest) (*pb.WatchReply, error)
Constants ¶
View Source
const (
SockAddr = "/tmp/tmpdir.sock"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedTmpDirListenerServer // contains filtered or unexported fields }
func (*Server) ListDirs ¶
func (s *Server) ListDirs(r *pb.ListDirsRequest, stream pb.TmpDirListener_ListDirsServer) error
func (*Server) RegisterDir ¶
func (s *Server) RegisterDir(ctx context.Context, dir *pb.RegisterRequest) (*pb.RegisterReply, error)
func (*Server) WatchDir ¶
func (s *Server) WatchDir(ctx context.Context, dir *pb.WatchRequest) (*pb.WatchReply, error)
Click to show internal directories.
Click to hide internal directories.