common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0, MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonAPI

type CommonAPI struct {
	fx.In

	APISecret *dtypes.APIAlg
	Host      host.Host
	Router    lp2p.BaseIpfsRouting
}

func (*CommonAPI) AuthNew

func (a *CommonAPI) AuthNew(ctx context.Context, perms []api.Permission) ([]byte, error)

func (*CommonAPI) AuthVerify

func (a *CommonAPI) AuthVerify(ctx context.Context, token string) ([]api.Permission, error)

func (*CommonAPI) ID

func (a *CommonAPI) ID(context.Context) (peer.ID, error)

func (*CommonAPI) LogList

func (a *CommonAPI) LogList(context.Context) ([]string, error)

func (*CommonAPI) LogSetLevel

func (a *CommonAPI) LogSetLevel(ctx context.Context, subsystem, level string) error

func (*CommonAPI) NetAddrsListen

func (a *CommonAPI) NetAddrsListen(context.Context) (peer.AddrInfo, error)

func (*CommonAPI) NetConnect

func (a *CommonAPI) NetConnect(ctx context.Context, p peer.AddrInfo) error

func (*CommonAPI) NetConnectedness

func (a *CommonAPI) NetConnectedness(ctx context.Context, pid peer.ID) (network.Connectedness, error)

func (*CommonAPI) NetDisconnect

func (a *CommonAPI) NetDisconnect(ctx context.Context, p peer.ID) error

func (*CommonAPI) NetFindPeer

func (a *CommonAPI) NetFindPeer(ctx context.Context, p peer.ID) (peer.AddrInfo, error)

func (*CommonAPI) NetPeers

func (a *CommonAPI) NetPeers(context.Context) ([]peer.AddrInfo, error)

func (*CommonAPI) Version

func (a *CommonAPI) Version(context.Context) (api.Version, error)

Jump to

Keyboard shortcuts

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