memoSQLStorage

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryTypes struct {
	MemoList   enum.Element
	MemoByHash enum.Element
	MemoByType enum.Element

	AddressList      enum.Element
	MemoUnderAddress enum.Element
	Statistics       enum.Element
}

Functions

func Load

func Load()

Types

type Storage

type Storage struct {
	Driver simpleSQLDatabase.IDriver
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(sqlDriver simpleSQLDatabase.IDriver) (s *Storage)

func (*Storage) DoQuery

func (s *Storage) DoQuery(queryReq memoSpace.QueryRequest) (result interface{}, err error)

func (*Storage) GetAddressList

func (s *Storage) GetAddressList(p []string) (ret interface{}, err error)

func (*Storage) GetMemoByHash

func (s *Storage) GetMemoByHash(p []string) (memoRow interface{}, err error)

func (*Storage) GetMemoByType

func (s *Storage) GetMemoByType(p []string) (memoRows interface{}, err error)

func (*Storage) GetMemoList

func (s *Storage) GetMemoList(p []string) (ret interface{}, err error)

func (*Storage) GetMemoUnderAddress

func (s *Storage) GetMemoUnderAddress(p []string) (memoRows interface{}, err error)

func (*Storage) GetStatistics

func (s *Storage) GetStatistics(_ []string) (ret interface{}, err error)

func (*Storage) StoreMemo

func (s *Storage) StoreMemo(height uint64, tm int64, req blockchainRequest.Entity, memo memoSpace.Memo) (err error)

Jump to

Keyboard shortcuts

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