core

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(configService driver2.ConfigService, namedDrivers []NamedDriver) (*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) 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

type NamedDriver added in v0.4.0

type NamedDriver struct {
	Name string
	driver.Driver
}

Jump to

Keyboard shortcuts

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