client

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCore

func NewCore(mspId string, identity api.Identity, opts ...CoreOpt) (api.Core, error)

Types

type CoreOpt

type CoreOpt func(c *core) error

CoreOpt describes opt which will be applied to coreOptions

func WithConfigRaw

func WithConfigRaw(config config.Config) CoreOpt

WithConfigRaw allows to pass to core created config instance

func WithConfigYaml

func WithConfigYaml(configPath string) CoreOpt

WithConfigYaml allows to pass path to YAML configuration file

func WithContext

func WithContext(ctx context.Context) CoreOpt

WithContext allows to pass custom context. Otherwise, context.Background is used

func WithLogger

func WithLogger(log *zap.Logger) CoreOpt

WithLogger allows to pass custom copy of zap.Logger insteadof logger.DefaultLogger

func WithOrderer

func WithOrderer(orderer api.Orderer) CoreOpt

WithOrderer allows to use custom instance of orderer in core

func WithPeerPool

func WithPeerPool(pool api.PeerPool) CoreOpt

WithPeerPool allows to add custom peer pool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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