Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(name string, cfg EngineConfig) (e engine.Engine, err error)
Build create an engine based on the specified name.
func Register ¶
func Register(name string, builder EngineBuilder)
Register is used to register the engine implementers in the initialization phase.
Types ¶
type EngineBuilder ¶
type EngineBuilder func(cfg EngineConfig) (engine.Engine, error)
EngineBuilder is used to build the engine.
type EngineConfig ¶
Click to show internal directories.
Click to hide internal directories.