Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAppComponents ¶
BuildAppComponents loads components from the configuration file and initializes them. Application level is generally singleton components
func BuildCacheComponents ¶
func BuildCacheComponents(cnf *conf.AppConfiguration)
BuildCacheComponents loads cache service components from the configuration file.
func BuildEntComponents ¶
func BuildEntComponents(cnf *conf.AppConfiguration) map[string]dialect.Driver
BuildEntComponents loads ent service components from the configuration file.
func New ¶
New initializes the Knockout application, will load common configurations from the configuration file and initialize them.
This function will try to load the following configurations from the configuration file:
Cache: Configuration for caching, currently supports redis and local. Snowflake: Configuration for generating unique IDs, currently supports snowflake. Note that this configuration is global, if there are multiple application instances, you need to ensure that the configuration of each instance is consistent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.