plugin

package
v1.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Notice: This file has been modified for Hyperledger Fabric SDK Go usage. Please review third_party pinning scripts and patches for more details.

Index

Constants

View Source
const (
	// PluginFactoryName is the factory name for BCCSP plugins
	PluginFactoryName = "PLUGIN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginFactory

type PluginFactory struct{}

PluginFactory is the factory for BCCSP plugins

func (*PluginFactory) Get

func (f *PluginFactory) Get(pluginOpts *PluginOpts) (bccsp.BCCSP, error)

Get returns an instance of BCCSP using Opts.

func (*PluginFactory) Name

func (f *PluginFactory) Name() string

Name returns the name of this factory

type PluginOpts

type PluginOpts struct {
	// Path to plugin library
	Library string
	// Config map for the plugin library
	Config map[string]interface{}
}

PluginOpts contains the options for the PluginFactory

Jump to

Keyboard shortcuts

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