Documentation ¶
Index ¶
- type FS
- func (fs *FS) Cache() *ristretto.Cache
- func (fs *FS) Ctx() context.Context
- func (fs *FS) DB() *sqlites.SqliteDB
- func (fs *FS) DownloadChan() chan *core.DownloadChan
- func (fs *FS) Opt() *opts.Options
- func (fs *FS) P2P() *dep2p.DeP2P
- func (fs *FS) Pool() *pool.MemoryPool
- func (fs *FS) Pubsub() *pubsub.DeP2PPubSub
- func (fs *FS) Registry() *eventbus.EventRegistry
- func (fs *FS) SearchChan() chan *core.SearchChan
- func (fs *FS) StorageChan() chan *core.StorageChan
- func (fs *FS) UploadChan() chan *core.UploadChan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS 提供了与DeFS交互所需的各种函数
func (*FS) DownloadChan ¶
func (fs *FS) DownloadChan() chan *core.DownloadChan
DownloadChan 获取用于刷新下载的通道
func (*FS) StorageChan ¶ added in v0.0.9
func (fs *FS) StorageChan() chan *core.StorageChan
StorageChan 获取用于存储奖励的通知
Directories ¶
Path | Synopsis |
---|---|
定义共享的基类和方法
|
定义共享的基类和方法 |
tarfs
package tarfs implements a read-only in-memory representation of a tar archive
|
package tarfs implements a read-only in-memory representation of a tar archive |
Package fsnotify provides a cross-platform interface for file system notifications.
|
Package fsnotify provides a cross-platform interface for file system notifications. |
internal
Package internal contains some helpers.
|
Package internal contains some helpers. |
Ristretto is a fast, fixed size, in-memory cache with a dual focus on throughput and hit ratio performance.
|
Ristretto is a fast, fixed size, in-memory cache with a dual focus on throughput and hit ratio performance. |
AST: 语法树
|
AST: 语法树 |
Click to show internal directories.
Click to hide internal directories.