Versions in this module Expand all Collapse all v1 v1.0.0 Dec 28, 2024 Changes in this version + func GetConfigResolver(conf *loaderConf) *koanf.Koanf + func Load(opts ...LoaderConfOption) error + func NewLoaderConf(opts ...LoaderConfOption) *loaderConf + func SetConsumerServiceWithInfo(svc common.RPCService, info *client.ClientInfo) + func SetProviderServiceWithInfo(svc common.RPCService, info *server.ServiceInfo) + type Instance struct + func NewInstance(opts ...InstanceOption) (*Instance, error) + func (ins *Instance) NewClient(opts ...client.ClientOption) (*client.Client, error) + func (ins *Instance) NewServer(opts ...server.ServerOption) (*server.Server, error) + type InstanceOption func(*InstanceOptions) + func WithConfigCenter(opts ...config_center.Option) InstanceOption + func WithEnvironment(environment string) InstanceOption + func WithGroup(group string) InstanceOption + func WithLogger(opts ...logger.Option) InstanceOption + func WithMetadataReport(opts ...metadata.Option) InstanceOption + func WithMetrics(opts ...metrics.Option) InstanceOption + func WithModule(module string) InstanceOption + func WithName(name string) InstanceOption + func WithOrganization(organization string) InstanceOption + func WithOwner(owner string) InstanceOption + func WithProtocol(opts ...protocol.Option) InstanceOption + func WithRegistry(opts ...registry.Option) InstanceOption + func WithRemoteMetadata() InstanceOption + func WithShutdown(opts ...graceful_shutdown.Option) InstanceOption + func WithTag(tag string) InstanceOption + func WithTracing(opts ...trace.Option) InstanceOption + func WithVersion(version string) InstanceOption + type InstanceOptions struct + Application *global.ApplicationConfig + CacheFile string + ConfigCenter *global.CenterConfig + Consumer *global.ConsumerConfig + Custom *global.CustomConfig + EventDispatcherType string + Logger *global.LoggerConfig + MetadataReport *global.MetadataReportConfig + Metrics *global.MetricsConfig + Otel *global.OtelConfig + Profiles *global.ProfilesConfig + Protocols map[string]*global.ProtocolConfig + Provider *global.ProviderConfig + Registries map[string]*global.RegistryConfig + Shutdown *global.ShutdownConfig + TLSConfig *global.TLSConfig + func (rc *InstanceOptions) CloneApplication() *global.ApplicationConfig + func (rc *InstanceOptions) CloneConfigCenter() *global.CenterConfig + func (rc *InstanceOptions) CloneConsumer() *global.ConsumerConfig + func (rc *InstanceOptions) CloneCustom() *global.CustomConfig + func (rc *InstanceOptions) CloneLogger() *global.LoggerConfig + func (rc *InstanceOptions) CloneMetadataReport() *global.MetadataReportConfig + func (rc *InstanceOptions) CloneMetrics() *global.MetricsConfig + func (rc *InstanceOptions) CloneOtel() *global.OtelConfig + func (rc *InstanceOptions) CloneProfiles() *global.ProfilesConfig + func (rc *InstanceOptions) CloneProtocols() map[string]*global.ProtocolConfig + func (rc *InstanceOptions) CloneProvider() *global.ProviderConfig + func (rc *InstanceOptions) CloneRegistries() map[string]*global.RegistryConfig + func (rc *InstanceOptions) CloneShutdown() *global.ShutdownConfig + func (rc *InstanceOptions) CloneTLSConfig() *global.TLSConfig + func (rc *InstanceOptions) Prefix() string + type LoaderConfOption interface + func WithBytes(bytes []byte) LoaderConfOption + func WithDelim(delim string) LoaderConfOption + func WithGenre(suffix string) LoaderConfOption + func WithInstanceOptions(opts *InstanceOptions) LoaderConfOption + func WithPath(path string) LoaderConfOption + func WithSuffix(suffix file.Suffix) LoaderConfOption