Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfName = "kusciaapp" GinServerName = "server" MetricsName = "metrics" )
Default Bean Names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bean ¶
type Bean interface { Init(e ConfBeanRegistry) error Start(ctx context.Context, e ConfBeanRegistry) error }
type ConfBeanRegistry ¶
type ConfBeanRegistry interface { GetBeanByName(name string) (Bean, bool) GetConfigByName(name string) (Config, bool) }
ConfBeanRegistry is a subset of the Framework Interface. Objects that implement the Framework interface can be used as ConfBeanRegistry, which is used to obtain other required config and bean in the Bean Init and Start stages。
type ConfigLoader ¶
type ConfigLoader interface { // RegisterFlags registers flags. RegisterFlags(conf Config, name string, fs *pflag.FlagSet) // Process config obtained by Flag. Process(conf Config, name string, errs *errorcode.Errs) }
ConfigLoader provides behavioral abstraction for different Config sources.
Click to show internal directories.
Click to hide internal directories.