Documentation ¶
Index ¶
- Constants
- func BinName(name string) string
- func CreateNode(ctx context.Context, r repo.Repo) (*ipfscore.IpfsNode, error)
- func CurrentDir() string
- func DecodeHash(hash string) (ss []string, err error)
- func EncodeHash(ss ...string) (hash string, err error)
- func OpenRepo(repoPath string) (repo.Repo, error)
- func ParseAddresses(ctx context.Context, addrs []string) ([]peer.AddrInfo, error)
- func PipeDummy(ctx context.Context, module string, reader io.Reader) (e error)
- func PipeReader(ctx context.Context, reader io.Reader, f func(string)) (e error)
- func PipeScreen(ctx context.Context, module string, reader io.Reader) (e error)
- func RPCAddress(addr ma.Multiaddr) string
- func RPCPost(url string, method string, input, output interface{}) error
- func SplitIP(addr string) (ip net.IP, port int)
- func UUID() string
- type INT256
- func (i *INT256) AsByteArray() [32]byte
- func (i *INT256) BitLen() int
- func (i *INT256) ByteString() string
- func (i INT256) Bytes() []byte
- func (i INT256) Cmp(r INT256) int
- func (i *INT256) IsZero() bool
- func (i *INT256) SetBytes(b []byte)
- func (i *INT256) SetMax()
- func (i INT256) String() string
- func (i *INT256) Xor(a, b *INT256)
Constants ¶
View Source
const NewLine = "\n"
NewLine ...
Variables ¶
This section is empty.
Functions ¶
func CreateNode ¶
CreateNode Creates an IPFS node and returns its coreAPI
func ParseAddresses ¶
ParseAddresses is a function that takes in a slice of string peer addresses (multiaddr + peerid) and returns a slice of properly constructed peers
func PipeReader ¶
PipeReader ...
func PipeScreen ¶
PipeScreen ...
Types ¶
type INT256 ¶
type INT256 struct {
// contains filtered or unexported fields
}
INT256 ...
func INT256FromByteArray ¶
INT256FromByteArray ...
func INT256FromByteString ¶
INT256FromByteString ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.