Documentation ¶
Index ¶
- func NewSource(opts ...source.Option) source.Source
- func WithConfig(data []byte) []source.Option
- func WithHTTPConfig(httpCfg httpConfig) source.Option
- func WithNamespace(namespace string) source.Option
- func WithService(service string) source.Option
- func WithVersion(version string) source.Option
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶
func WithHTTPConfig ¶
func WithNamespace ¶ added in v1.1.3
func WithService ¶
func WithVersion ¶
Types ¶
type Config ¶ added in v1.1.3
type Config struct { Namespace string `config:"namespace" desc:"default is global namespace"` Service string `config:"service" desc:"default is global service"` Version string `config:"version" desc:"default is global version"` Url string `config:"url"` Authorization authorization `json:"authorization"` }
Click to show internal directories.
Click to hide internal directories.