plugins

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

README

Plugin

Plugin is an important feature of Subscan Essentials. It is very convenient to save Extrinsic and Event to the database and parse it into various customized content, save it in a new data table, and display the customization data to the frontend through HTTP API.

Usage

  1. Refer plugin to write the plugin you need

  2. Just import your plugin in plugins/registry.go like

func init() {
	registerNative(YourPlugin.New()) // Register plugin to subscan
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisteredPlugins = make(map[string]PluginFactory)

Functions

This section is empty.

Types

type PluginFactory

type PluginFactory subscan_plugin.Plugin

type PluginInfo

type PluginInfo struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Ui      bool   `json:"ui"`
}

func List

func List() []PluginInfo

Directories

Path Synopsis
dao
dao

Jump to

Keyboard shortcuts

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