Documentation ¶
Index ¶
- Variables
- func GenerateIPFSNodeKeyPair() ([]byte, []byte, error)
- func GenerateIPNSKeyPair() ([]byte, []byte, error)
- func GetIPFSNodeIdentity(pubb []byte) peer.ID
- func GetIPFSNodeIdentityFromPublicKeyName(key string) (peer.ID, error)
- func GetIPNSPublicKeyName(pubb []byte) (string, error)
- func GetIPNSRecordFromW3S(ctx context.Context, authToken string, name string) (cid.Cid, error)
- func GetSubscriptionPeers(ctx context.Context, ipfscore IPFSCore, topic string) ([]peer.ID, error)
- func GetSubscriptionTopics(ctx context.Context, ipfscore IPFSCore) ([]string, error)
- func PinIPFSBlockToW3S(ctx context.Context, ipfs iface.CoreAPI, authToken string, ...) error
- func PinIPLDBlockToW3S(ctx context.Context, ipfsNode iface.CoreAPI, authToken string, ...) (cid.Cid, error)
- func PublishIPNSRecordForDAGNode(ctx context.Context, ipfscore IPFSCore, authtoken string, cid cid.Cid, ...) error
- func PublishIPNSRecordForDAGNodeToW3S(ctx context.Context, authToken string, cid cid.Cid, privkey []byte, ...) error
- func PublishSubscriptionMessage(ctx context.Context, ipfscore IPFSCore, topic string, ...) error
- func SubscribeToTopic(ctx context.Context, ipfscore IPFSCore, topic string) error
- type File
- type IPFSCore
- func (store *IPFSCore) Get(ctx context.Context, key string) ([]byte, error)
- func (store *IPFSCore) Has(ctx context.Context, key string) (bool, error)
- func (store *IPFSCore) OpenRead(lnkCtx linking.LinkContext, lnk datamodel.Link) (io.Reader, error)
- func (store *IPFSCore) OpenWrite(lnkCtx linking.LinkContext, lnk datamodel.Link) (io.Writer, linking.BlockWriteCommitter, error)
- func (store *IPFSCore) Put(ctx context.Context, key string, data []byte) error
- func (store *IPFSCore) PutIPFSBlock(ctx context.Context, data []byte) (cid.Cid, error)
- type IPFSLinkWriter
- type SubscriptionMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var Files []File
View Source
var IPLDLinkPrototype cidlink.LinkPrototype = cidlink.LinkPrototype{ Prefix: cid.Prefix{ Version: 1, Codec: cid.DagJSON, MhType: mh.SHA3_384, MhLength: 48, }}
View Source
var IPLDNodePrototype datamodel.NodePrototype = basicnode.Prototype.Any
View Source
var Messages = list.New()
View Source
var Subscriptions map[string]iface.PubSubSubscription = make(map[string]iface.PubSubSubscription)
Functions ¶
func GenerateIPFSNodeKeyPair ¶
func GenerateIPNSKeyPair ¶
func GetIPFSNodeIdentity ¶
func GetIPNSPublicKeyName ¶
func GetIPNSRecordFromW3S ¶
func GetSubscriptionPeers ¶
func GetSubscriptionTopics ¶
func PinIPFSBlockToW3S ¶
func PinIPLDBlockToW3S ¶
Types ¶
type IPFSCore ¶
type IPFSCore struct { Ctx context.Context Api iface.CoreAPI Node ipfsCore.IpfsNode Shutdown func() LS linking.LinkSystem W3S w3s.Client }
func StartIPFSNode ¶
func (*IPFSCore) OpenWrite ¶
func (store *IPFSCore) OpenWrite(lnkCtx linking.LinkContext, lnk datamodel.Link) (io.Writer, linking.BlockWriteCommitter, error)
type IPFSLinkWriter ¶
type IPFSLinkWriter struct {
// contains filtered or unexported fields
}
func (*IPFSLinkWriter) BlockWriteCommit ¶
func (w *IPFSLinkWriter) BlockWriteCommit(lnk datamodel.Link) error
Click to show internal directories.
Click to hide internal directories.