storage

package
v0.0.0-...-aec2e1a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsStorage

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

func (*EsStorage) InitStorage

func (e *EsStorage) InitStorage(cfg *config.EsConfig) error

func (*EsStorage) Query

func (e *EsStorage) Query(_query map[string]interface{}, page, pageSize int) (map[string]interface{}, error)

func (*EsStorage) QueryFingerPrintInfo

func (e *EsStorage) QueryFingerPrintInfo(_query map[string]interface{}, page, pageSize int) (map[string]interface{}, error)

func (*EsStorage) QueryInfo

func (e *EsStorage) QueryInfo(_query map[string]interface{}) ([]byte, error)

func (*EsStorage) Save

func (e *EsStorage) Save(body interface{}) error

type Storage

type Storage interface {
	InitStorage(cfg *config.EsConfig) error
	Query(query map[string]interface{}, page, size int) (map[string]interface{}, error)
	QueryInfo(map[string]interface{}) ([]byte, error)
	QueryFingerPrintInfo(map[string]interface{}, int, int) (map[string]interface{}, error)
	Save(body interface{}) error
}

func GetStorage

func GetStorage(cfg *config.EsConfig) (Storage, error)

Jump to

Keyboard shortcuts

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