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 ¶
View Source
const Type = "config"
Variables ¶
View Source
var ( // ErrNotFound defined error from kratos config package ErrNotFound = kratosconfig.ErrNotFound )
Functions ¶
This section is empty.
Types ¶
type EndpointURLFunc ¶
type Option ¶
type Option = kratosconfig.Option
Define types from kratos config package
func WithResolveActualTypes ¶
WithResolveActualTypes enables resolving actual types
type ServiceOption ¶
type ServiceSetting ¶
type ServiceSetting = func(config *ServiceOption)
func WithDiscovery ¶
func WithDiscovery(discovery registry.Discovery) ServiceSetting
func WithEndpointURL ¶
func WithEndpointURL(endpoint EndpointURLFunc) ServiceSetting
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...middleware.Middleware) ServiceSetting
type SourceOption ¶
type SourceSetting ¶
type SourceSetting = func(s *SourceOption)
SourceSetting is a function that takes a pointer to a SourceOption struct and modifies it.
func WithCustomize ¶
func WithCustomize(customize *configv1.Customize) SourceSetting
WithCustomize sets the customize field of the SourceOption struct.
func WithOptions ¶
func WithOptions(options ...Option) SourceSetting
WithOptions sets the options field of the SourceOption struct.
Click to show internal directories.
Click to hide internal directories.