wrap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHT

type DHT struct{}

func (DHT) GetDefaultBootstrapPeerAddrInfos

func (d DHT) GetDefaultBootstrapPeerAddrInfos() []peer.AddrInfo

type DHTer

type DHTer interface {
	GetDefaultBootstrapPeerAddrInfos() []peer.AddrInfo
}

type Ioutil

type Ioutil struct{}

func (Ioutil) ReadFile

func (a Ioutil) ReadFile(filename string) ([]byte, error)

func (Ioutil) WriteFile

func (a Ioutil) WriteFile(filename string, data []byte, perm os.FileMode) error

type Ioutiler

type Ioutiler interface {
	ReadFile(filename string) ([]byte, error)
	WriteFile(filename string, data []byte, perm os.FileMode) error
}

type IpfsDHT

type IpfsDHT interface {
	Provide(context.Context, cid.Cid, bool) error
	FindProvidersAsync(context.Context, cid.Cid, int) <-chan peer.AddrInfo
}

type Manet

type Manet struct{}

func (Manet) IsPublicAddr

func (d Manet) IsPublicAddr(a ma.Multiaddr) bool

type Maneter

type Maneter interface {
	IsPublicAddr(a ma.Multiaddr) bool
}

type Time

type Time struct{}

func (Time) AfterFunc

func (t Time) AfterFunc(d stdtime.Duration, f func()) *stdtime.Timer

func (Time) NewTimer

func (t Time) NewTimer(d stdtime.Duration) *stdtime.Timer

func (Time) Now

func (t Time) Now() stdtime.Time

func (Time) Sleep

func (t Time) Sleep(d stdtime.Duration)

type Timer

type Timer interface {
	AfterFunc(d stdtime.Duration, f func()) *stdtime.Timer
	NewTimer(d stdtime.Duration) *stdtime.Timer
	Now() stdtime.Time
	Sleep(d stdtime.Duration)
}

type Xdg

type Xdg struct{}

func (Xdg) ConfigFile

func (a Xdg) ConfigFile(relPath string) (string, error)

type Xdger

type Xdger interface {
	ConfigFile(relPath string) (string, error)
}

Jump to

Keyboard shortcuts

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