core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers added in v0.2.0

func Drivers() []string

Drivers returns a sorted list of the names of the registered drivers.

func Register added in v0.2.0

func Register(name string, driver driver.Driver)

Register makes a kvs driver available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.

Types

type Config

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

func NewConfig

func NewConfig(configProvider ConfigProvider) (*Config, error)

func (*Config) Config added in v0.3.0

func (c *Config) Config(network string) (*FSNConfig, error)

func (*Config) DefaultName

func (c *Config) DefaultName() string

func (*Config) Names

func (c *Config) Names() []string

type ConfigProvider

type ConfigProvider interface {
	UnmarshalKey(key string, rawVal interface{}) error
}

type FSNConfig added in v0.3.0

type FSNConfig struct {
	Default bool   `yaml:"default,omitempty"`
	Driver  string `yaml:"driver,omitempty"`
}

type FSNProvider

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

func NewFabricNetworkServiceProvider

func NewFabricNetworkServiceProvider(sp view.ServiceProvider, config *Config) (*FSNProvider, error)

func (*FSNProvider) DefaultName

func (p *FSNProvider) DefaultName() string

func (*FSNProvider) FabricNetworkService

func (p *FSNProvider) FabricNetworkService(network string) (driver.FabricNetworkService, error)

func (*FSNProvider) InitFabricLogging

func (p *FSNProvider) InitFabricLogging()

InitFabricLogging initializes the fabric logging system using the FSC configuration.

func (*FSNProvider) InstallViews

func (p *FSNProvider) InstallViews() error

func (*FSNProvider) Names

func (p *FSNProvider) Names() []string

func (*FSNProvider) Start

func (p *FSNProvider) Start(ctx context.Context) error

func (*FSNProvider) Stop

func (p *FSNProvider) Stop() error

Directories

Path Synopsis
id
msp
msp/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
vault/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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