Documentation
¶
Overview ¶
Package escompat contains shared REST implementation for Elasticsearch-compatible plugins.
Index ¶
- func Connect(ctx context.Context, cfg plugin.ConnectConfig, provider Provider) (plugin.Session, error)
- func ExecuteSearchRequest(ctx context.Context, s *Session, index string, req sqldb.QueryRequest) (sqldb.QueryResult, error)
- func Routes(provider Provider) []plugin.Route
- type Client
- type Options
- type Plugin
- type Product
- type Provider
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteSearchRequest ¶
func ExecuteSearchRequest(ctx context.Context, s *Session, index string, req sqldb.QueryRequest) (sqldb.QueryResult, error)
Types ¶
type Options ¶
type Options struct {
Endpoint string
Username string
Password string
Authorization string
TLSConfig *tls.Config
Timeout time.Duration
PageLimit int
ReadOnly bool
Product Product
}
func ParseOptions ¶
func ParseOptions(cfg plugin.ConnectConfig, provider Provider) (Options, error)
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) OpenChannel ¶
Click to show internal directories.
Click to hide internal directories.