builder

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCBuilder

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

CCBuilder builds a slice of SelfDescribingSysCC

func New

func New() *CCBuilder

New returns a new CCBuilder

func (*CCBuilder) Add

func (b *CCBuilder) Add(creator interface{}) *CCBuilder

Add adds a new chaincode creator function. The function has zero or more args that define dependencies and a single return value of type scc.SelfDescribingSysCC. Note: The args must all be interfaces.

func (*CCBuilder) Build

func (b *CCBuilder) Build(providers ...interface{}) ([]scc.SelfDescribingSysCC, error)

Build returns a slice of SelfDescribingSysCC using the given set of providers

Jump to

Keyboard shortcuts

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