Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyChanFunc ¶
keychanfunc是传递到内容路由的函数流式CID
func NewBlockstoreProvider ¶
func NewBlockstoreProvider(bstore blocks.Blockstore) KeyChanFunc
NewblockStoreProvider使用bstore.allkeyschan返回密钥提供程序
func NewPinnedProvider ¶
func NewPinnedProvider(pinning pin.Pinner, dag ipld.DAGService, onlyRoots bool) KeyChanFunc
NewPinnedProvider返回提供固定密钥的提供程序
type Reprovider ¶
type Reprovider struct {
// contains filtered or unexported fields
}
func NewReprovider ¶
func NewReprovider(ctx context.Context, rsys routing.ContentRouting, keyProvider KeyChanFunc) *Reprovider
NewReprovider创建新的Reprovider实例。
func (*Reprovider) Reprovide ¶
func (rp *Reprovider) Reprovide() error
将rp.keyprovider提供的所有密钥重新提供给libp2p内容路由
Click to show internal directories.
Click to hide internal directories.