Documentation ¶
Index ¶
- func ArangodbConfigFields() []*service.ConfigField
- func CopyMeta(src, dst *service.Message)
- func ElasticsearchConfigFields() []*service.ConfigField
- func IsArangodbConfigured(conf *service.ParsedConfig) bool
- func IsElasticsearchConfigured(conf *service.ParsedConfig) bool
- type ArangodbClient
- func (c ArangodbClient) Add(ctx context.Context, collection string, key string, value map[string]any) error
- func (c ArangodbClient) Close() error
- func (c ArangodbClient) Delete(ctx context.Context, collection string, key string) error
- func (c ArangodbClient) Get(ctx context.Context, collection string, key string) (map[string]any, error)
- func (c ArangodbClient) List(ctx context.Context, collection string, q any, pitEnabled bool, ...) (Cursor, error)
- func (c ArangodbClient) Merge(ctx context.Context, collection string, key string, value map[string]any) (map[string]any, error)
- func (c ArangodbClient) ParseQuery(config string) (any, error)
- func (c ArangodbClient) Set(ctx context.Context, collection string, key string, value map[string]any) error
- type Client
- type Cursor
- type ElasticsearchClient
- func (c *ElasticsearchClient) Add(ctx context.Context, collection string, key string, value map[string]any) error
- func (c *ElasticsearchClient) Close() error
- func (c *ElasticsearchClient) Delete(ctx context.Context, collection string, key string) error
- func (c *ElasticsearchClient) Get(ctx context.Context, collection string, key string) (map[string]any, error)
- func (c *ElasticsearchClient) List(ctx context.Context, collection string, q any, pitEnabled bool, ...) (Cursor, error)
- func (c *ElasticsearchClient) Merge(ctx context.Context, collection string, key string, value map[string]any) (map[string]any, error)
- func (c *ElasticsearchClient) ParseQuery(config string) (any, error)
- func (c *ElasticsearchClient) Set(ctx context.Context, collection string, key string, value map[string]any) error
- type PagingOpts
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArangodbConfigFields ¶
func ArangodbConfigFields() []*service.ConfigField
func ElasticsearchConfigFields ¶
func ElasticsearchConfigFields() []*service.ConfigField
func IsArangodbConfigured ¶
func IsArangodbConfigured(conf *service.ParsedConfig) bool
func IsElasticsearchConfigured ¶
func IsElasticsearchConfigured(conf *service.ParsedConfig) bool
Types ¶
type ArangodbClient ¶
type ArangodbClient struct {
// contains filtered or unexported fields
}
func (ArangodbClient) Close ¶
func (c ArangodbClient) Close() error
func (ArangodbClient) List ¶
func (c ArangodbClient) List(ctx context.Context, collection string, q any, pitEnabled bool, paging *PagingOpts) (Cursor, error)
func (ArangodbClient) ParseQuery ¶
func (c ArangodbClient) ParseQuery(config string) (any, error)
type Client ¶
type Client interface { ParseQuery(config string) (any, error) List(ctx context.Context, collection string, q any, pitEnabled bool, paging *PagingOpts) (Cursor, error) Get(ctx context.Context, collection string, key string) (map[string]any, error) Set(ctx context.Context, collection string, key string, value map[string]any) error Merge(ctx context.Context, collection string, key string, value map[string]any) (map[string]any, error) Add(ctx context.Context, collection string, key string, value map[string]any) error Delete(ctx context.Context, collection string, key string) error Close() error }
type ElasticsearchClient ¶
type ElasticsearchClient struct {
// contains filtered or unexported fields
}
func (*ElasticsearchClient) Close ¶
func (c *ElasticsearchClient) Close() error
func (*ElasticsearchClient) List ¶
func (c *ElasticsearchClient) List(ctx context.Context, collection string, q any, pitEnabled bool, paging *PagingOpts) (Cursor, error)
func (*ElasticsearchClient) ParseQuery ¶
func (c *ElasticsearchClient) ParseQuery(config string) (any, error)
type PagingOpts ¶
Click to show internal directories.
Click to hide internal directories.