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 ¶
const Type = "config"
Variables ¶
var ( // ErrNotFound defined error from kratos config package ErrNotFound = kratosconfig.ErrNotFound )
Functions ¶
This section is empty.
Types ¶
type Encoder ¶ added in v0.0.10
Encoder is a function that takes a value and returns a byte slice and an error.
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 ServiceOption ¶ added in v0.0.9
type ServiceSetting ¶ added in v0.0.10
type ServiceSetting = func(config *ServiceOption)
func WithDiscovery ¶ added in v0.0.9
func WithDiscovery(discovery registry.Discovery) ServiceSetting
func WithEndpointURL ¶ added in v0.0.9
func WithEndpointURL(endpoint EndpointURLFunc) ServiceSetting
func WithMiddlewares ¶ added in v0.0.9
func WithMiddlewares(middlewares ...middleware.Middleware) ServiceSetting
type SourceOption ¶ added in v0.0.9
type SourceSetting ¶ added in v0.0.10
type SourceSetting = func(s *SourceOption)
SourceSetting is a function that takes a pointer to a SourceOption struct and modifies it.
func WithCustomize ¶ added in v0.0.9
func WithCustomize(customize *configv1.Customize) SourceSetting
WithCustomize sets the customize field of the SourceOption struct.
func WithOptions ¶ added in v0.0.9
func WithOptions(options ...Option) SourceSetting
WithOptions sets the options field of the SourceOption struct.
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