Documentation ¶
Index ¶
- func InitLibp2p(pConfig GFp2pConfig, pPortInt int, pRuntimeSys *gf_core.RuntimeSys) (host.Host, *dht.IpfsDHT)
- func InitShutdownOnSignal(pNode host.Host)
- func InitStreamHandler(pNode host.Host, pConfig GFp2pConfig, pRuntimeSys *gf_core.RuntimeSys)
- func StringsToAddrs(addrStrings []string) (maddrs []multiaddr.Multiaddr, err error)
- type GFp2pAddrLst
- type GFp2pConfig
- type GFp2pGetStatusMsg
- type GFp2pPeerInfo
- type GFp2pPeerInitFun
- type GFp2pPeerPingFun
- type GFp2pStatus
- type GFp2pStatusServerCh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLibp2p ¶
func InitLibp2p(pConfig GFp2pConfig, pPortInt int, pRuntimeSys *gf_core.RuntimeSys) (host.Host, *dht.IpfsDHT)
-------------------------------------------------
func InitShutdownOnSignal ¶
-------------------------------------------------
func InitStreamHandler ¶
func InitStreamHandler(pNode host.Host, pConfig GFp2pConfig, pRuntimeSys *gf_core.RuntimeSys)
-------------------------------------------------
Types ¶
type GFp2pAddrLst ¶
func (*GFp2pAddrLst) Set ¶
func (al *GFp2pAddrLst) Set(value string) error
-------------------------------------------------
func (*GFp2pAddrLst) String ¶
func (al *GFp2pAddrLst) String() string
-------------------------------------------------
type GFp2pConfig ¶
type GFp2pConfig struct { RendezvousSymbolStr string BootstrapPeers GFp2pAddrLst ListenAddresses GFp2pAddrLst ProtocolIDstr string }
-------------------------------------------------
func ParseFlags ¶
func ParseFlags() (GFp2pConfig, error)
-------------------------------------------------
type GFp2pGetStatusMsg ¶
type GFp2pGetStatusMsg struct {
// contains filtered or unexported fields
}
type GFp2pPeerInfo ¶
-------------------------------------------------
type GFp2pPeerInitFun ¶
type GFp2pPeerInitFun func(peer.ID) GFp2pPeerPingFun
type GFp2pPeerPingFun ¶
-------------------------------------------------
type GFp2pStatus ¶
type GFp2pStatus struct { RendezvousSymbolStr string ProtocolIDstr string // PEERS BootstrapPeers []GFp2pPeerInfo PeersNumberInt int PeersIDsLst []string // DHT DHTmodeInt int DHTmodeStr string DHTtestKeyStr string DHTtestValStr string // SELF SelfPeerIDstr string SelfAddrsSerializedLst []string }
-------------------------------------------------
func GetStatusFromServer ¶
func GetStatusFromServer(pStatusServerCh GFp2pStatusServerCh) GFp2pStatus
-------------------------------------------------
type GFp2pStatusServerCh ¶
type GFp2pStatusServerCh chan GFp2pGetStatusMsg
func Init ¶
func Init(pPortInt int, pRuntimeSys *gf_core.RuntimeSys) GFp2pStatusServerCh
-------------------------------------------------
Source Files ¶
Click to show internal directories.
Click to hide internal directories.