Documentation ¶
Index ¶
- type CommonAPI
- func (a *CommonAPI) AuthNew(ctx context.Context, perms []auth.Permission) ([]byte, error)
- func (a *CommonAPI) AuthVerify(ctx context.Context, token string) ([]auth.Permission, error)
- func (a *CommonAPI) Closing(ctx context.Context) (<-chan struct{}, error)
- func (a *CommonAPI) ID(context.Context) (peer.ID, error)
- func (a *CommonAPI) LogList(context.Context) ([]string, error)
- func (a *CommonAPI) LogSetLevel(ctx context.Context, subsystem, level string) error
- func (a *CommonAPI) NetAddrsListen(context.Context) (peer.AddrInfo, error)
- func (a *CommonAPI) NetAutoNatStatus(ctx context.Context) (i api.NatInfo, err error)
- func (a *CommonAPI) NetConnect(ctx context.Context, p peer.AddrInfo) error
- func (a *CommonAPI) NetConnectedness(ctx context.Context, pid peer.ID) (network.Connectedness, error)
- func (a *CommonAPI) NetDisconnect(ctx context.Context, p peer.ID) error
- func (a *CommonAPI) NetFindPeer(ctx context.Context, p peer.ID) (peer.AddrInfo, error)
- func (a *CommonAPI) NetPeers(context.Context) ([]peer.AddrInfo, error)
- func (a *CommonAPI) NetPubsubScores(context.Context) ([]api.PubsubScore, error)
- func (a *CommonAPI) Shutdown(ctx context.Context) error
- func (a *CommonAPI) Version(context.Context) (api.Version, error)
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 RawHost lp2p.RawHost Host host.Host Router lp2p.BaseIpfsRouting Sk *dtypes.ScoreKeeper ShutdownChan dtypes.ShutdownChan }
func (*CommonAPI) AuthVerify ¶
func (*CommonAPI) LogSetLevel ¶
func (*CommonAPI) NetAddrsListen ¶
func (*CommonAPI) NetAutoNatStatus ¶ added in v0.5.0
func (*CommonAPI) NetConnect ¶
func (*CommonAPI) NetConnectedness ¶
func (*CommonAPI) NetDisconnect ¶
func (*CommonAPI) NetFindPeer ¶
func (*CommonAPI) NetPubsubScores ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.