fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/core/config Index | Files | Directories

package config

import "github.com/hyperledger/fabric-sdk-go/pkg/core/config"

Index

Package Files

config.go defbackend.go

func FromFile Uses

func FromFile(name string, opts ...Option) core.ConfigProvider

FromFile reads from named config file

func FromRaw Uses

func FromRaw(configBytes []byte, configType string, opts ...Option) core.ConfigProvider

FromRaw will initialize the configs from a byte array

func FromReader Uses

func FromReader(in io.Reader, configType string, opts ...Option) core.ConfigProvider

FromReader loads configuration from in. configType can be "json" or "yaml".

type Option Uses

type Option func(opts *options) error

Option configures the package.

func WithEnvPrefix Uses

func WithEnvPrefix(prefix string) Option

WithEnvPrefix defines the prefix for environment variable overrides. See viper SetEnvPrefix for more information.

Directories

PathSynopsis
comm
comm/tls
cryptoutil
endpoint
lookup

Package config imports 8 packages (graph) and is imported by 9 packages. Updated 2019-04-11. Refresh now. Tools for package owners.