Documentation
¶
Overview ¶
connect to server through ipfs network
Index ¶
- type IPFSWire
- type IPFSWireManager
- type P2PHost
- func (h *P2PHost) AllowPeer(peer string) error
- func (h *P2PHost) Background() error
- func (h *P2PHost) Bootstrap(peers []string) error
- func (h *P2PHost) GetValue(ctx context.Context, key string, opts ...routing.Option) ([]byte, error)
- func (h *P2PHost) PutValue(ctx context.Context, key string, value []byte, opts ...routing.Option) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFSWireManager ¶
type IPFSWireManager struct { wire.BaseWireManager *P2PHost }
IPFS wire manager
func (*IPFSWireManager) Dial ¶
func (m *IPFSWireManager) Dial(endpoint string) error
func (*IPFSWireManager) Protocol ¶
func (m *IPFSWireManager) Protocol() string
type P2PHost ¶
type P2PHost struct { // libp2p host host.Host // discovery *dis_routing.RoutingDiscovery // contains filtered or unexported fields }
p2p host
func GetP2PHost ¶
func GetP2PHost() *P2PHost
func NewP2PHost ¶
Click to show internal directories.
Click to hide internal directories.