configprovider

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerKey       = "server"
	MeshSpecKey     = "mesh"
	MeshInstanceKey = "instance"
	OperationsKey   = "operations"
)

Variables

This section is empty.

Functions

func NewViper

func NewViper(serverConfig map[string]string, meshSpec map[string]string, meshInstance map[string]string, providerConfig map[string]string, operations adapter.Operations) (config.Handler, error)

Types

type Viper

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

func (*Viper) GetKey

func (v *Viper) GetKey(key string) string

func (*Viper) MeshInstance

func (v *Viper) MeshInstance(result interface{}) error

func (*Viper) MeshSpec

func (v *Viper) MeshSpec(result interface{}) error

func (*Viper) Operations

func (v *Viper) Operations(result interface{}) error

func (*Viper) Server

func (v *Viper) Server(result interface{}) error

func (*Viper) SetKey

func (v *Viper) SetKey(key string, value string)

Jump to

Keyboard shortcuts

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