Documentation
¶
Overview ¶
Package workspace owns filesystem roots and versioned documents without GUI dependencies. A Store belongs to one protocol connection and one goroutine.
Index ¶
- func ErrorCode(err error) protocol.Code
- type Store
- func (s *Store) Change(id, version uint64, start, end uint32, text string) (uint64, error)
- func (s *Store) Close()
- func (s *Store) CloseDocument(id uint64)
- func (s *Store) CloseProject(id uint64) error
- func (s *Store) Create(id uint64, name string, directory bool) error
- func (s *Store) Move(id, projectID uint64, name string) error
- func (s *Store) Open(directory string) (protocol.Workspace, error)
- func (s *Store) OpenDocument(projectID uint64, name string, mode protocol.DocumentMode) (protocol.Document, error)
- func (s *Store) ReadDirectory(id uint64, name string) ([]protocol.Entry, error)
- func (s *Store) Remove(id uint64, name string) error
- func (s *Store) Rename(id uint64, from, to string) error
- func (s *Store) Save(id, version uint64) error
- func (s *Store) Transfer(sourceID, targetID uint64, from, directory string, cut, duplicate bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CloseDocument ¶
func (*Store) CloseProject ¶
func (*Store) OpenDocument ¶
func (*Store) ReadDirectory ¶
Click to show internal directories.
Click to hide internal directories.