Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Raw returns an io.ReadCloser of raw config loaded from server Raw() (io.ReadCloser, error) // Decode reads the configuration from server, and decodes it into a struct. Decode(v interface{}) error }
Client facilitates connection to the spring config server. The config URL is formed like this: http(s)://{ServerAddr}{/Branch}/{Application}{-Profile}.{json|yaml}
type ClientOption ¶
type ClientOption func(c *defaultClient) error
func WithBasicAuth ¶
func WithBasicAuth(username, password string) ClientOption
func WithBranch ¶
func WithBranch(branch string) ClientOption
func WithFormat ¶
func WithFormat(format Format) ClientOption
func WithScheme ¶
func WithScheme(scheme string) ClientOption
Click to show internal directories.
Click to hide internal directories.