Documentation ¶
Overview ¶
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
Index ¶
- Constants
- Variables
- type ApiOption
- type ApiSettings
- type BlockPutOption
- type BlockPutSettings
- type BlockRmOption
- type BlockRmSettings
- type DagPutOption
- type DagPutSettings
- type DagTreeOption
- type DagTreeSettings
- type DhtFindProvidersOption
- type DhtFindProvidersSettings
- type DhtProvideOption
- type DhtProvideSettings
- type KeyGenerateOption
- type KeyGenerateSettings
- type KeyRenameOption
- type KeyRenameSettings
- type Layout
- type NamePublishOption
- type NamePublishSettings
- type NameResolveOption
- type NameResolveSettings
- type ObjectAddLinkOption
- type ObjectAddLinkSettings
- type ObjectNewOption
- type ObjectNewSettings
- type ObjectPutOption
- type ObjectPutSettings
- type PinAddOption
- type PinAddSettings
- type PinLsOption
- type PinLsSettings
- type PinUpdateOption
- type PinUpdateSettings
- type PubSubPeersOption
- type PubSubPeersSettings
- type PubSubSubscribeOption
- type PubSubSubscribeSettings
- type UnixfsAddOption
- type UnixfsAddSettings
Constants ¶
const ( RSAKey = "rsa" Ed25519Key = "ed25519" DefaultRSALen = 2048 )
const (
DefaultNameValidTime = 24 * time.Hour
)
Variables ¶
var Api apiOpts
var Block blockOpts
var Dag dagOpts
var Dht dhtOpts
var Key keyOpts
var Name nameOpts
var Object objectOpts
var Pin pinOpts
var PubSub pubsubOpts
var Unixfs unixfsOpts
Functions ¶
This section is empty.
Types ¶
type ApiOption ¶
type ApiOption func(*ApiSettings) error
type ApiSettings ¶
func ApiOptions ¶
func ApiOptions(opts ...ApiOption) (*ApiSettings, error)
func ApiOptionsTo ¶
func ApiOptionsTo(options *ApiSettings, opts ...ApiOption) (*ApiSettings, error)
type BlockPutOption ¶
type BlockPutOption func(*BlockPutSettings) error
type BlockPutSettings ¶
func BlockPutOptions ¶
func BlockPutOptions(opts ...BlockPutOption) (*BlockPutSettings, cid.Prefix, error)
type BlockRmOption ¶
type BlockRmOption func(*BlockRmSettings) error
type BlockRmSettings ¶
type BlockRmSettings struct {
Force bool
}
func BlockRmOptions ¶
func BlockRmOptions(opts ...BlockRmOption) (*BlockRmSettings, error)
type DagPutOption ¶
type DagPutOption func(*DagPutSettings) error
type DagPutSettings ¶
func DagPutOptions ¶
func DagPutOptions(opts ...DagPutOption) (*DagPutSettings, error)
type DagTreeOption ¶
type DagTreeOption func(*DagTreeSettings) error
type DagTreeSettings ¶
type DagTreeSettings struct {
Depth int
}
func DagTreeOptions ¶
func DagTreeOptions(opts ...DagTreeOption) (*DagTreeSettings, error)
type DhtFindProvidersOption ¶
type DhtFindProvidersOption func(*DhtFindProvidersSettings) error
type DhtFindProvidersSettings ¶
type DhtFindProvidersSettings struct {
NumProviders int
}
func DhtFindProvidersOptions ¶
func DhtFindProvidersOptions(opts ...DhtFindProvidersOption) (*DhtFindProvidersSettings, error)
type DhtProvideOption ¶
type DhtProvideOption func(*DhtProvideSettings) error
type DhtProvideSettings ¶
type DhtProvideSettings struct {
Recursive bool
}
func DhtProvideOptions ¶
func DhtProvideOptions(opts ...DhtProvideOption) (*DhtProvideSettings, error)
type KeyGenerateOption ¶
type KeyGenerateOption func(*KeyGenerateSettings) error
type KeyGenerateSettings ¶
func KeyGenerateOptions ¶
func KeyGenerateOptions(opts ...KeyGenerateOption) (*KeyGenerateSettings, error)
type KeyRenameOption ¶
type KeyRenameOption func(*KeyRenameSettings) error
type KeyRenameSettings ¶
type KeyRenameSettings struct {
Force bool
}
func KeyRenameOptions ¶
func KeyRenameOptions(opts ...KeyRenameOption) (*KeyRenameSettings, error)
type NamePublishOption ¶
type NamePublishOption func(*NamePublishSettings) error
type NamePublishSettings ¶
type NamePublishSettings struct { ValidTime time.Duration Key string TTL *time.Duration AllowOffline bool }
func NamePublishOptions ¶
func NamePublishOptions(opts ...NamePublishOption) (*NamePublishSettings, error)
type NameResolveOption ¶
type NameResolveOption func(*NameResolveSettings) error
type NameResolveSettings ¶
type NameResolveSettings struct { Cache bool ResolveOpts []ropts.ResolveOpt }
func NameResolveOptions ¶
func NameResolveOptions(opts ...NameResolveOption) (*NameResolveSettings, error)
type ObjectAddLinkOption ¶
type ObjectAddLinkOption func(*ObjectAddLinkSettings) error
type ObjectAddLinkSettings ¶
type ObjectAddLinkSettings struct {
Create bool
}
func ObjectAddLinkOptions ¶
func ObjectAddLinkOptions(opts ...ObjectAddLinkOption) (*ObjectAddLinkSettings, error)
type ObjectNewOption ¶
type ObjectNewOption func(*ObjectNewSettings) error
type ObjectNewSettings ¶
type ObjectNewSettings struct {
Type string
}
func ObjectNewOptions ¶
func ObjectNewOptions(opts ...ObjectNewOption) (*ObjectNewSettings, error)
type ObjectPutOption ¶
type ObjectPutOption func(*ObjectPutSettings) error
type ObjectPutSettings ¶
func ObjectPutOptions ¶
func ObjectPutOptions(opts ...ObjectPutOption) (*ObjectPutSettings, error)
type PinAddOption ¶
type PinAddOption func(*PinAddSettings) error
type PinAddSettings ¶
type PinAddSettings struct {
Recursive bool
}
func PinAddOptions ¶
func PinAddOptions(opts ...PinAddOption) (*PinAddSettings, error)
type PinLsOption ¶
type PinLsOption func(settings *PinLsSettings) error
type PinLsSettings ¶
type PinLsSettings struct {
Type string
}
func PinLsOptions ¶
func PinLsOptions(opts ...PinLsOption) (*PinLsSettings, error)
type PinUpdateOption ¶
type PinUpdateOption func(*PinUpdateSettings) error
type PinUpdateSettings ¶
type PinUpdateSettings struct {
Unpin bool
}
func PinUpdateOptions ¶
func PinUpdateOptions(opts ...PinUpdateOption) (*PinUpdateSettings, error)
type PubSubPeersOption ¶
type PubSubPeersOption func(*PubSubPeersSettings) error
type PubSubPeersSettings ¶
type PubSubPeersSettings struct {
Topic string
}
func PubSubPeersOptions ¶
func PubSubPeersOptions(opts ...PubSubPeersOption) (*PubSubPeersSettings, error)
type PubSubSubscribeOption ¶
type PubSubSubscribeOption func(*PubSubSubscribeSettings) error
type PubSubSubscribeSettings ¶
type PubSubSubscribeSettings struct {
Discover bool
}
func PubSubSubscribeOptions ¶
func PubSubSubscribeOptions(opts ...PubSubSubscribeOption) (*PubSubSubscribeSettings, error)
type UnixfsAddOption ¶
type UnixfsAddOption func(*UnixfsAddSettings) error
type UnixfsAddSettings ¶
type UnixfsAddSettings struct { CidVersion int MhType uint64 Inline bool InlineLimit int RawLeaves bool RawLeavesSet bool Chunker string Layout Layout Pin bool OnlyHash bool FsCache bool NoCopy bool Wrap bool Hidden bool StdinName string Events chan<- interface{} Silent bool Progress bool }
func UnixfsAddOptions ¶
func UnixfsAddOptions(opts ...UnixfsAddOption) (*UnixfsAddSettings, cid.Prefix, error)