Versions in this module Expand all Collapse all v0 v0.0.4 Oct 13, 2022 Changes in this version + const DEFAULT + const NAME + func Base(name string, conns ...string) *searchBase + func Configure(cfg Map) + func Go() + func Index(base string, docs ...Map) error + func IndexTo(conn string, base string, docs ...Map) error + func Query(base string, offset, limit int64, query string) (int64, []Map, error) + func QueryFrom(conn string, base string, offset, limit int64, query string) (int64, []Map, error) + func Ready() + func Register(name string, value Any, overrides ...bool) + type Config struct + Driver string + Expiry time.Duration + Prefix string + Setting Map + Weight int + type Configs map[string]Config + type Connect interface + Close func() error + Index func(string, ...Map) error + Open func() error + Query func(string, int64, int64, string) (int64, []Map, error) + type Driver interface + Connect func(name string, config Config) (Connect, error) + type Instance struct + type Module struct + func (module *Module) Driver(name string, driver Driver, override bool) + func (this *Module) Config(name string, config Config, override bool) + func (this *Module) Configs(config Configs, override bool) + func (this *Module) Configure(global Map) + func (this *Module) Connect() + func (this *Module) Initialize() + func (this *Module) Launch() + func (this *Module) Register(name string, value Any, override bool) + func (this *Module) Terminate() + func (this Module) Index(base string, docs ...Map) error + func (this Module) IndexTo(conn string, base string, docs ...Map) error + func (this Module) Query(base string, offset, limit int64, query string) (int64, []Map, error) + func (this Module) QueryFrom(conn string, base string, offset, limit int64, query string) (int64, []Map, error)