plugin

package
v0.0.0-...-b62d79f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Plugins is exported list of plugins that will be loaded

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

Plugin is the main structure.

func (*Plugin) Init

func (*Plugin) Init() error

Init Plugin

func (*Plugin) Name

func (*Plugin) Name() string

Name returns the name of Plugin

func (*Plugin) RegisterBlockDecoders

func (*Plugin) RegisterBlockDecoders(decoder ipld.BlockDecoder) error

RegisterBlockDecoders registers the decoder for different types of block

func (*Plugin) RegisterInputEncParsers

func (*Plugin) RegisterInputEncParsers(encodingParsers coredag.InputEncParsers) error

RegisterInputEncParsers registers the encode parsers needed to put the blocks into the DAG

func (*Plugin) Version

func (*Plugin) Version() string

Version returns the version of Plugin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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