Documentation ¶
Index ¶
- type FileInfoResponse
- type Service
- func (s *Service) List(dirpath string) (*[]FileInfoResponse, error)
- func (s *Service) MakeDir(dirpath string) error
- func (s *Service) Read(path string) (string, error)
- func (s *Service) ReadBase64(path string) (string, error)
- func (s *Service) Remove(path string) error
- func (s *Service) WatchDir(ctx context.Context, dirpath string) (*rpc.Subscription, error)
- func (s *Service) Write(path string, content string) error
- func (s *Service) WriteBase64(path string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInfoResponse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *zap.SugaredLogger) (*Service, error)
func (*Service) ReadBase64 ¶
We need to handle non-utf8 data, so we encode the data to base64. This can be used to transfer binary data and data incompatible with utf-8.
Click to show internal directories.
Click to hide internal directories.