Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Config of the client
Config() *Config
// FetchFile queries the remote configuration service and returns the resulting file
// it is possible to pass error handler function as second parameter
FetchFile(source string, errorHandler func([]byte, error) []byte) []byte
// FetchFileE queries the remote configuration service and returns the resulting file
FetchFileE(source string) ([]byte, error)
// FetchAs queries the remote configuration service and returns the result in specified format
FetchAs(extension Extension) (string, error)
// FetchAsJSON queries the remote configuration service and returns the result as a JSON string
FetchAsJSON() (string, error)
// FetchAsYAML queries the remote configuration service and returns the result as a YAML string
FetchAsYAML() (string, error)
// FetchAsProperties queries the remote configuration service and returns the result as a Properties string
FetchAsProperties() (string, error)
// Encrypt encrypts the value server side and returns result
Encrypt(value string) (string, error)
// Decrypt decrypts the value server side and returns result
Decrypt(value string) (string, error)
}
Client Spring Cloud Config Client.
type Extension ¶
type Extension string
Extension format of downloaded config.
func ParseExtension ¶
ParseExtension parse string into Extension type.
Click to show internal directories.
Click to hide internal directories.