remote

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 17 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedProvider = errors.New("This configuration manager is not supported")
)

Functions

func MarshalWriter

func MarshalWriter(w io.Writer, c map[string]interface{}, configType string) error

func SetAgolloOptions added in v1.0.4

func SetAgolloOptions(opts ...agollo.Option)

func SetAppID

func SetAppID(appid string)

func SetConfigType

func SetConfigType(ct string)

func UnmarshalReader

func UnmarshalReader(in io.Reader, c map[string]interface{}, configType string) error

Types

type ConfigMarshalError

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

ConfigMarshalError happens when failing to marshal the configuration.

func (ConfigMarshalError) Error

func (e ConfigMarshalError) Error() string

Error returns the formatted configuration error.

type ConfigParseError

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

func (ConfigParseError) Error

func (pe ConfigParseError) Error() string

Error returns the formatted configuration error.

Jump to

Keyboard shortcuts

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