register

package
v3.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 2

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 Exist

func Exist(name string) bool

Exist return whether the engine exists.

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

type EngineConfig struct {
	// Path is the data directory.
	Path string
	// ExtraOptions contains extension options using a json format ("{key1:value1,key2:value2}").
	ExtraOptions map[string]interface{}
	// Schema
	Space *entity.Space
	//partitionID
	PartitionID entity.PartitionID

	DWPTNum uint64
}

Jump to

Keyboard shortcuts

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