Documentation ¶
Index ¶
- type Ops
- func (ops *Ops) Create(last string, path string) (hash string, err error)
- func (ops *Ops) Handle(last string, event fsnotify.Event) (hash string, err error)
- func (ops *Ops) Remove(last string, path string) (hash string, err error)
- func (ops *Ops) Rename(last string, path string) (hash string, err error)
- func (ops *Ops) Write(last string, path string) (hash string, err error)
- type Synchronizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ops ¶
type Ops struct {
// contains filtered or unexported fields
}
Ops - Sync ops.
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
Synchronizer - IPFS directory synchronizer.
func Watch ¶
func Watch(path string, opts shell.AddOptions) (sync *Synchronizer, err error)
Watch - Constructs new IPFS synchronizer for a directory.
func (*Synchronizer) Close ¶
func (sync *Synchronizer) Close() (err error)
Close - Closes synchronizer.
func (*Synchronizer) Events ¶
func (sync *Synchronizer) Events() <-chan string
Events - Sends new hashes.
Click to show internal directories.
Click to hide internal directories.