Documentation
¶
Overview ¶
Package config implements the functions, types, and interfaces for the module.
Package config implements the functions, types, and interfaces for the module.
Package config implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- Variables
- func WithDiscovery(discovery registry.Discovery) func(*ServiceConfig)
- func WithEndpointURL(endpoint EndpointURLFunc) func(*ServiceConfig)
- func WithMiddlewares(middlewares ...middleware.Middleware) func(*ServiceConfig)
- type Config
- type Decoder
- type EndpointURLFunc
- type KeyValue
- type Merge
- type Observer
- type Option
- type Reader
- type Resolver
- type ServiceConfig
- type ServiceOption
- type Source
- type SourceFunc
- type SourceOption
- type Value
- type Watcher
Constants ¶
View Source
const Type = "config"
Variables ¶
View Source
var ( // ErrNotFound defined error from kratos config package ErrNotFound = kratosconfig.ErrNotFound )
Functions ¶
func WithDiscovery ¶ added in v0.0.9
func WithDiscovery(discovery registry.Discovery) func(*ServiceConfig)
func WithEndpointURL ¶ added in v0.0.9
func WithEndpointURL(endpoint EndpointURLFunc) func(*ServiceConfig)
func WithMiddlewares ¶ added in v0.0.9
func WithMiddlewares(middlewares ...middleware.Middleware) func(*ServiceConfig)
Types ¶
type EndpointURLFunc ¶ added in v0.0.9
type KeyValue ¶ added in v0.0.4
type KeyValue = kratosconfig.KeyValue
Define types from kratos config package
type Observer ¶ added in v0.0.4
type Observer = kratosconfig.Observer
Define types from kratos config package
type Option ¶
type Option = kratosconfig.Option
Define types from kratos config package
func WithResolveActualTypes ¶ added in v0.0.4
WithResolveActualTypes enables resolving actual types
type Reader ¶ added in v0.0.4
type Reader = kratosconfig.Reader
Define types from kratos config package
type ServiceConfig ¶ added in v0.0.4
type ServiceOption ¶ added in v0.0.9
type ServiceOption = func(*ServiceConfig)
type SourceFunc ¶ added in v0.0.9
type SourceFunc = func(s *SourceOption)
func WithCustomize ¶ added in v0.0.9
func WithCustomize(customize *configv1.Customize) SourceFunc
WithCustomize sets the customize field of the SourceOption struct.
func WithOptions ¶ added in v0.0.9
func WithOptions(options ...Option) SourceFunc
WithOptions sets the options field of the SourceOption struct.
type SourceOption ¶ added in v0.0.9
type Value ¶ added in v0.0.4
type Value = kratosconfig.Value
Define types from kratos config package
type Watcher ¶ added in v0.0.4
type Watcher = kratosconfig.Watcher
Define types from kratos config package
Click to show internal directories.
Click to hide internal directories.