taubyte

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: BSD-3-Clause Imports: 32 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var With = func(pi vm.PluginInstance) (Instance, error) {
	_pi, ok := pi.(*pluginInstance)
	if !ok {
		debug.PrintStack()
		return nil, fmt.Errorf("%v of type %T is not a Taubyte plugin instance", pi, pi)
	}

	if err := _pi.LoadAPIs(); err != nil {
		return nil, err
	}

	return _pi, nil
}

Functions

func Initialize

func Initialize(ctx context.Context, options ...Option) error

First initialize the plugin

func Plugin

func Plugin() vm.Plugin

Types

type Instance

type Instance interface {
	// contains filtered or unexported methods
}

type Option

type Option func() error

func DatabaseNode

func DatabaseNode(node database.Service) Option

func IpfsNode

func IpfsNode(node ipfs.Service) Option

func P2PNode

func P2PNode(node p2p.Service) Option

func PubsubNode

func PubsubNode(node pubsub.Service) Option

func StorageNode

func StorageNode(node storage.Service) Option

Directories

Path Synopsis
crypto
database
http
i2mv
ipfs

Jump to

Keyboard shortcuts

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