Documentation ¶
Index ¶
- Constants
- 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
- type Configs
- type Connect
- type Driver
- type Instance
- type Module
- 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 (module *Module) Driver(name string, driver Driver, override bool)
- func (this Module) Index(base string, docs ...Map) error
- func (this Module) IndexTo(conn string, base string, docs ...Map) error
- func (this *Module) Initialize()
- func (this *Module) Launch()
- 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)
- func (this *Module) Register(name string, value Any, override bool)
- func (this *Module) Terminate()
Constants ¶
View Source
const ( NAME = "SEARCH" DEFAULT = "default" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶
type Connect interface { //打开、关闭 Open() error Close() error Index(string, ...Map) error Query(string, int64, int64, string) (int64, []Map, error) }
Connect 会话连接
Click to show internal directories.
Click to hide internal directories.