Documentation ¶
Index ¶
- type NetBoostrapper
- type NetConfig
- type NetOption
- func WithConnectionManager(cm cconnmgr.ConnManager) NetOption
- func WithNetDebug(enabled bool) NetOption
- func WithNetGRPCDialOptions(opts ...grpc.DialOption) NetOption
- func WithNetGRPCServerOptions(opts ...grpc.ServerOption) NetOption
- func WithNetHostAddr(addr ma.Multiaddr) NetOption
- func WithNetPubSub(enabled bool) NetOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetBoostrapper ¶
type NetBoostrapper interface { app.Net GetIpfsLite() *ipfslite.Peer Bootstrap(addrs []peer.AddrInfo) }
DefaultNetwork is a boostrapable default Net with sane defaults.
func DefaultNetwork ¶
func DefaultNetwork(repoPath string, opts ...NetOption) (NetBoostrapper, error)
type NetConfig ¶
type NetConfig struct { HostAddr ma.Multiaddr ConnManager cconnmgr.ConnManager Debug bool GRPCServerOptions []grpc.ServerOption GRPCDialOptions []grpc.DialOption PubSub bool }
type NetOption ¶
func WithConnectionManager ¶
func WithConnectionManager(cm cconnmgr.ConnManager) NetOption
func WithNetDebug ¶
func WithNetGRPCDialOptions ¶
func WithNetGRPCDialOptions(opts ...grpc.DialOption) NetOption
func WithNetGRPCServerOptions ¶
func WithNetGRPCServerOptions(opts ...grpc.ServerOption) NetOption
func WithNetHostAddr ¶
func WithNetPubSub ¶
Click to show internal directories.
Click to hide internal directories.