Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(scheme SchemeType, _ confmap.ProviderSettings) confmap.Provider
New returns a new provider that reads the configuration from http server using the configured transport mechanism depending on the selected scheme. There are two types of transport supported: PlainText (HTTPScheme) and TLS (HTTPSScheme).
One example for http-uri: http://localhost:3333/getConfig One example for https-uri: https://localhost:3333/getConfig This is used by the http and https external implementations.
Types ¶
type SchemeType ¶
type SchemeType string
const ( HTTPScheme SchemeType = "http" HTTPSScheme SchemeType = "https" )
Click to show internal directories.
Click to hide internal directories.