func ParseBootstrapPeer(addr string) (BootstrapPeer, error) { ia, err := iaddr.ParseString(addr) if err != nil { return nil, err } return BootstrapPeer(ia), err }
func (gcr *SupernodeClientConfig) ServerIPFSAddrs() ([]ipfsaddr.IPFSAddr, error) { var addrs []ipfsaddr.IPFSAddr for _, server := range gcr.Servers { addr, err := ipfsaddr.ParseString(server) if err != nil { return nil, err } addrs = append(addrs, addr) } return addrs, nil }