adapter

package
v0.0.0-...-a4f9c1c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KeyId = "key"

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	SaveData(data []byte, indexUid string) error
	DatabaseHealthCheck() error
}

type Config

type Config struct {
	ml.Config
	Timeout time.Duration
}

type KeyData

type KeyData struct {
	Id   string `json:"@id"`
	Keys []string
}

type SimpleAdapter

type SimpleAdapter struct {
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(conf *Config) (*SimpleAdapter, error)

func (*SimpleAdapter) DatabaseHealthCheck

func (a *SimpleAdapter) DatabaseHealthCheck() error

func (*SimpleAdapter) SaveData

func (a *SimpleAdapter) SaveData(data []byte, indexUid string) error

Jump to

Keyboard shortcuts

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