Back to godoc.org
github.com/hyperledger/fabric-sdk-go / pkg / core / config

package config

v1.0.0 (01fc6e2)
Latest Go to latest
Published: Jul 6, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

Index

Package Files

func FromFile

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

FromFile reads from named config file

func FromRaw

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

FromRaw will initialize the configs from a byte array

func FromReader

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

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

type Option

type Option func(opts *options) error

Option configures the package.

func WithEnvPrefix

func WithEnvPrefix(prefix string) Option

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier