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

package lookup

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

Index

Package Files

lookup.go

type ConfigLookup Uses

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

ConfigLookup is wrapper for core.ConfigBackend which performs key lookup and unmarshalling

func New Uses

func New(coreBackends ...core.ConfigBackend) *ConfigLookup

New providers lookup wrapper around given backend

func (*ConfigLookup) GetBool Uses

func (c *ConfigLookup) GetBool(key string) bool

GetBool returns bool value for given key

func (*ConfigLookup) GetDuration Uses

func (c *ConfigLookup) GetDuration(key string) time.Duration

GetDuration returns time.Duration value for given key

func (*ConfigLookup) GetInt Uses

func (c *ConfigLookup) GetInt(key string) int

GetInt returns int value for given key

func (*ConfigLookup) GetLowerString Uses

func (c *ConfigLookup) GetLowerString(key string) string

GetLowerString returns lower case string value for given key

func (*ConfigLookup) GetString Uses

func (c *ConfigLookup) GetString(key string) string

GetString returns string value for given key

func (*ConfigLookup) Lookup Uses

func (c *ConfigLookup) Lookup(key string) (interface{}, bool)

Lookup returns value for given key

func (*ConfigLookup) UnmarshalKey Uses

func (c *ConfigLookup) UnmarshalKey(key string, rawVal interface{}, opts ...UnmarshalOption) error

UnmarshalKey unmarshals value for given key to rawval type

type UnmarshalOption Uses

type UnmarshalOption func(o *unmarshalOpts)

UnmarshalOption describes a functional parameter unmarshaling

func WithUnmarshalHookFunction Uses

func WithUnmarshalHookFunction(hookFunction mapstructure.DecodeHookFunc) UnmarshalOption

WithUnmarshalHookFunction provides an option to pass Custom Decode Hook Func for unmarshaling

Package lookup imports 5 packages (graph) and is imported by 6 packages. Updated 2019-04-26. Refresh now. Tools for package owners.