koapp

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAppComponents

func BuildAppComponents(app *woocoo.App)

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

func New(opts ...woocoo.Option) *woocoo.App

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL