api

package
v0.0.0-...-aa855fd Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func NewApi

func NewApi(mgr *ipfsmanager.IpfsManager, cfg *viper.Viper, ds *resource.Datastore) *Api

func (*Api) ListCollections

func (api *Api) ListCollections(t string) ([]*resource.Collection, error)

func (*Api) NewCollection

func (api *Api) NewCollection(name, address string) (*resource.Collection, error)

func (*Api) Peers

func (api *Api) Peers() ([]Peerinfo, bool, error)

Peers returns peers that IPFS is currently connecting to

type Peerinfo

type Peerinfo struct {
	Address   string
	Direction net.Direction
	Latency   time.Duration
}

Jump to

Keyboard shortcuts

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