client

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const CidBufferSize = 64

Variables

This section is empty.

Functions

func IpfsAddFile

func IpfsAddFile(cidPtr *byte, buf *byte, bufLen uint32) (error errno.Error)

func IpfsGetFile

func IpfsGetFile(cid *byte, cidSize uint32, bufPtr *byte) (error errno.Error)

func IpfsGetFileSize

func IpfsGetFileSize(cid *byte, cidSize uint32, size *uint32) (error errno.Error)

func NewIPFSClient

func NewIPFSClient(clientId *uint32) (error errno.Error)

Types

type Client

type Client uint32

func New

func New() (Client, error)

func (Client) Add

func (Client) Add(data []byte) (cid.Cid, error)

func (Client) Get

func (Client) Get(stringCid string) (data []byte, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL