Documentation
¶
Overview ¶
Package adapter abstracts a data source. An `Adapter` is an abstraction of a Data Source. Example of adatpers would be ElasticSearch, Redis, MongoDB, and SQL. All adapters should implement the same interface (IAdapter). The data - in, or out should be generic. Adapters should have a `name`, `description`. It should be able to read and write data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// Name of the adapter.
Name string `json:"name" validate:"required"`
// Description of the adapter.
Description string `json:"description"`
}
Adapter definition.
func (*Adapter) GetDescription ¶
GetDescription returns the `Description` of the `Adapter`.
Click to show internal directories.
Click to hide internal directories.