sqlite

package
v0.0.0-...-e03aae4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbiStorage

type AbiStorage struct {
	*Store
}

func NewAbiStorage

func NewAbiStorage(store *Store) *AbiStorage

func (*AbiStorage) Close

func (s *AbiStorage) Close() error

func (*AbiStorage) DeleteAbiInfoByAddress

func (s *AbiStorage) DeleteAbiInfoByAddress(tx storage.Transaction, address string) error

func (*AbiStorage) EditAbiInfo

func (s *AbiStorage) EditAbiInfo(tx storage.Transaction, abiInfo *models.AbiInfo) error

func (*AbiStorage) GetAbiAddressesByVersion

func (s *AbiStorage) GetAbiAddressesByVersion(tx storage.Transaction, version string) ([]string, error)

func (*AbiStorage) GetAbiInfosByVersion

func (s *AbiStorage) GetAbiInfosByVersion(tx storage.Transaction, version string) ([]*models.AbiInfo, error)

func (*AbiStorage) GetAbiJSON

func (s *AbiStorage) GetAbiJSON(tx storage.Transaction, address string) (string, error)

func (*AbiStorage) GetAbiVersion

func (s *AbiStorage) GetAbiVersion(tx storage.Transaction, address string) (string, error)

func (*AbiStorage) GetFullAbiInfo

func (s *AbiStorage) GetFullAbiInfo(tx storage.Transaction, address string) (*models.AbiInfo, error)

func (*AbiStorage) GetFullAbiInfoByVersionAndType

func (s *AbiStorage) GetFullAbiInfoByVersionAndType(tx storage.Transaction,
	version, contractType string) (*models.AbiInfo, error)

func (*AbiStorage) Init

func (s *AbiStorage) Init() (err error)

func (*AbiStorage) SaveAbiInfo

func (s *AbiStorage) SaveAbiInfo(tx storage.Transaction, abiInfo *models.AbiInfo) error

type SettingsStorage

type SettingsStorage struct {
	*Store
}

func NewSettingsStorage

func NewSettingsStorage(store *Store) *SettingsStorage

func (*SettingsStorage) GetSetting

func (s *SettingsStorage) GetSetting(key string) (value string, err error)

func (*SettingsStorage) Init

func (s *SettingsStorage) Init() (err error)

func (*SettingsStorage) SaveSetting

func (s *SettingsStorage) SaveSetting(key, value string) (err error)

type Store

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

func NewStore

func NewStore(dbPath string) (*Store, error)

func (*Store) BeginTx

func (s *Store) BeginTx() (storage.Transaction, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) GetOriginStorage

func (s *Store) GetOriginStorage() interface{}

Jump to

Keyboard shortcuts

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