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 (
EnvPrefix = "ORIGADMIN_SERVICE"
)
Variables ¶
View Source
var ( // ErrNotFound defined error from kratos config package ErrNotFound = kratosconfig.ErrNotFound )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
EnvPrefixes []string
// contains filtered or unexported fields
}
func (*Config) LoadFromFile ¶ added in v0.1.15
type Option ¶
type Option = kratosconfig.Option
Define types from kratos config package
func WithResolveActualTypes ¶
WithResolveActualTypes enables resolving actual types
type SourceConfig ¶ added in v0.1.15
type SourceConfig = kratosconfig.Config
Define types from kratos config package
type SourceOption ¶
type SourceOptionSetting ¶ added in v0.0.4
type SourceOptionSetting = func(s *SourceOption)
SourceOptionSetting is a function that takes a pointer to a SourceOption struct and modifies it.
func WithOptions ¶
func WithOptions(options ...Option) SourceOptionSetting
WithOptions sets the options field of the SourceOption struct.
Click to show internal directories.
Click to hide internal directories.