Documentation ¶
Index ¶
- func AddPeerFromAddress(addrStr string, pstore peerstore.Peerstore) (pid peer.ID, err error)
- func CanDial(addr ma.Multiaddr, s *swarm.Swarm) bool
- func CreateLog(host peer.ID) (info thread.LogInfo, err error)
- func CreateThread(s service.Service, id thread.ID) (info thread.Info, err error)
- func DecodeKey(k string) (*sym.Key, error)
- func DefaultBoostrapPeers() []peer.AddrInfo
- func GetDialable(addr ma.Multiaddr) (ma.Multiaddr, error)
- func GetLog(s service.Service, id thread.ID, lid peer.ID) (info thread.LogInfo, err error)
- func GetOrCreateOwnLog(s service.Service, id thread.ID) (info thread.LogInfo, err error)
- func GetOwnLog(s service.Service, id thread.ID) (info thread.LogInfo, err error)
- func LoadKey(pth string) crypto.PrivKey
- func ParseBootstrapPeers(addrs []string) ([]peer.AddrInfo, error)
- func SetLogLevels(systems map[string]logging.LogLevel) error
- func SetupDefaultLoggingConfig(repoPath string)
- func TCPAddrFromMultiAddr(maddr ma.Multiaddr) (addr string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPeerFromAddress ¶
AddPeerFromAddress parses the given address and adds the dialable component to the peerstore. If a dht is provided and the address does not contain a dialable component, it will be queried for peer info.
func CreateThread ¶
CreateThread creates a new set of keys.
func DefaultBoostrapPeers ¶
func GetDialable ¶
GetDialable returns the portion of an address suitable for storage in a peerstore.
func GetOrCreateOwnLog ¶
GetOrCreateOwnLoad returns the log owned by the host under the given thread. If no log exists, a new one is created under the given thread.
func SetLogLevels ¶
SetLogLevels sets levels for the given systems.
func SetupDefaultLoggingConfig ¶
func SetupDefaultLoggingConfig(repoPath string)
SetupDefaultLoggingConfig sets up a standard logging configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.