Documentation ¶
Index ¶
- type DummyRecord
- func (dummy *DummyRecord) Search(name string, query string) (map[string][]string, error)
- func (dummy *DummyRecord) SearchMultiple(typeTable string, name string, query string) (map[string][]string, error)
- func (dummy *DummyRecord) SearchRelated(typeTable string, name string, query string) (map[string][]string, error)
- type ElasticsearchRecord
- func (elastic *ElasticsearchRecord) Search(name string, query string) (map[string][]string, error)
- func (elastic *ElasticsearchRecord) SearchMultiple(typeTable string, name string, query string) (map[string][]string, error)
- func (elastic *ElasticsearchRecord) SearchRelated(typeTable string, name string, query string) (map[string][]string, error)
- type MysqlRecord
- func (mysql *MysqlRecord) Search(name string, query string) (map[string][]string, error)
- func (mysql *MysqlRecord) SearchMultiple(typeTable string, name string, query string) (map[string][]string, error)
- func (mysql *MysqlRecord) SearchRelated(typeTable string, name string, query string) (map[string][]string, error)
- type Record
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyRecord ¶
type DummyRecord struct {
TypeTable string
}
DummyRecord - standard record (struct) for dummy storage package
func (*DummyRecord) SearchMultiple ¶
func (dummy *DummyRecord) SearchMultiple( typeTable string, name string, query string) (map[string][]string, error)
SearchMultiple - search multiple records of data in the storage
func (*DummyRecord) SearchRelated ¶
func (dummy *DummyRecord) SearchRelated( typeTable string, name string, query string) (map[string][]string, error)
SearchRelated - search data in the storage from related type or table
type ElasticsearchRecord ¶
ElasticsearchRecord - standard record (struct) for elasticsearch storage package
func (*ElasticsearchRecord) SearchMultiple ¶
func (elastic *ElasticsearchRecord) SearchMultiple( typeTable string, name string, query string) (map[string][]string, error)
SearchMultiple - search multiple records of data in the storage
func (*ElasticsearchRecord) SearchRelated ¶
func (elastic *ElasticsearchRecord) SearchRelated( typeTable string, name string, query string) (map[string][]string, error)
SearchRelated - search data in the storage from related type or table
type MysqlRecord ¶
type MysqlRecord struct { Host string Port int User string Password string DataBase string Table string }
MysqlRecord - standard record (struct) for mysql storage package
func (*MysqlRecord) SearchMultiple ¶
func (mysql *MysqlRecord) SearchMultiple( typeTable string, name string, query string) (map[string][]string, error)
SearchMultiple - search multiple records of data in the storage
func (*MysqlRecord) SearchRelated ¶
func (mysql *MysqlRecord) SearchRelated( typeTable string, name string, query string) (map[string][]string, error)
SearchRelated - search data in the storage from related type or table
type Record ¶
Record - standard record (struct) for storage package
type Storage ¶
type Storage interface { Search(name string, query string) (map[string][]string, error) SearchRelated(typeTable string, name string, query string) (map[string][]string, error) SearchMultiple(typeTable string, name string, query string) (map[string][]string, error) }
Storage - the interface for every implementation of storage