cidtrack

package
v0.0.0-...-2a8be5b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = []plugin.Plugin{
	&CIDTrack{},
}

Plugins is an exported list of plugins that will be loaded by go-ipfs.

Functions

This section is empty.

Types

type CIDTrack

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

CIDTrack is a Per CID bandwidth tracker

func (*CIDTrack) Close

func (c *CIDTrack) Close() error

Close does all the necessary cleanup

func (*CIDTrack) Init

func (c *CIDTrack) Init(env *plugin.Environment) error

Init is called once when the Plugin is being loaded The plugin is passed an environment containing the path to the (possibly uninitialized) IPFS repo and the plugin's config.

func (*CIDTrack) Name

func (c *CIDTrack) Name() string

Name should return unique name of the plugin

func (*CIDTrack) Start

func (c *CIDTrack) Start(node *core.IpfsNode) error

Start starts a plugin

func (*CIDTrack) Version

func (c *CIDTrack) Version() string

Version returns current version of the plugin

Jump to

Keyboard shortcuts

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