Versions in this module Expand all Collapse all v3 v3.0.1 Mar 15, 2024 v3.0.0 Mar 4, 2024 Changes in this version + const KVTableABI + const TableABI + const TableKeyMaxLength + const TableManagerABI + var TableManagerAddress = common.HexToAddress("0x1002") + type Condition struct + Field string + Op uint8 + Value string + type Entry struct + Fields []string + Key string + type KVTable struct + func NewKVTable(address common.Address, backend bind.ContractBackend) (*KVTable, error) + type KVTableCaller struct + func NewKVTableCaller(address common.Address, caller bind.ContractCaller) (*KVTableCaller, error) + func (_KVTable *KVTableCaller) Get(opts *bind.CallOpts, key string) (bool, string, error) + type KVTableCallerRaw struct + Contract *KVTableCaller + func (_KVTable *KVTableCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type KVTableCallerSession struct + CallOpts bind.CallOpts + Contract *KVTableCaller + func (_KVTable *KVTableCallerSession) Get(key string) (bool, string, error) + type KVTableFilterer struct + func NewKVTableFilterer(address common.Address, filterer bind.ContractFilterer) (*KVTableFilterer, error) + type KVTableRaw struct + Contract *KVTable + func (_KVTable *KVTableRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_KVTable *KVTableRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error) + func (_KVTable *KVTableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type KVTableSession struct + CallOpts bind.CallOpts + Contract *KVTable + TransactOpts bind.TransactOpts + func (_KVTable *KVTableSession) AsyncSet(handler func(*types.Receipt, error), key string, value string) (*types.Transaction, error) + func (_KVTable *KVTableSession) Get(key string) (bool, string, error) + func (_KVTable *KVTableSession) Set(key string, value string) (int32, *types.Transaction, *types.Receipt, error) + type KVTableTransactor struct + func NewKVTableTransactor(address common.Address, transactor bind.ContractTransactor) (*KVTableTransactor, error) + func (_KVTable *KVTableTransactor) AsyncSet(handler func(*types.Receipt, error), opts *bind.TransactOpts, key string, ...) (*types.Transaction, error) + func (_KVTable *KVTableTransactor) Set(opts *bind.TransactOpts, key string, value string) (int32, *types.Transaction, *types.Receipt, error) + type KVTableTransactorRaw struct + Contract *KVTableTransactor + func (_KVTable *KVTableTransactorRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error) + func (_KVTable *KVTableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type KVTableTransactorSession struct + Contract *KVTableTransactor + TransactOpts bind.TransactOpts + func (_KVTable *KVTableTransactorSession) AsyncSet(handler func(*types.Receipt, error), key string, value string) (*types.Transaction, error) + func (_KVTable *KVTableTransactorSession) Set(key string, value string) (int32, *types.Transaction, *types.Receipt, error) + type Limit struct + Count uint32 + Offset uint32 + type Service struct + CallOpts *bind.CallOpts + KVTable *KVTable + func NewTableManagerService(client *client.Client) (*Service, error) + func (service *Service) AppendColumns(path string, newColumns []string) (int64, error) + func (service *Service) AsyncAppendColumns(handler func(*types.Receipt, error), path string, newColumns []string) (*types.Transaction, error) + func (service *Service) AsyncCreateKVTable(handler func(*types.Receipt, error), tableName string, keyField string, ...) (*types.Transaction, error) + func (service *Service) AsyncCreateTable(handler func(*types.Receipt, error), tableName string, key string, ...) (*types.Transaction, error) + func (service *Service) AsyncInsert(handler func(*types.Receipt, error), tableName string, entry Entry) (*types.Transaction, error) + func (service *Service) AsyncRemove(handler func(*types.Receipt, error), tableName string, key string) (*types.Transaction, error) + func (service *Service) AsyncRemove0(handler func(*types.Receipt, error), tableName string, conditions []Condition, ...) (*types.Transaction, error) + func (service *Service) AsyncUpdate(handler func(*types.Receipt, error), tableName string, key string, ...) (*types.Transaction, error) + func (service *Service) AsyncUpdate0(handler func(*types.Receipt, error), tableName string, conditions []Condition, ...) (*types.Transaction, error) + func (service *Service) CreateKVTable(tableName string, keyField string, valueField string) (int64, error) + func (service *Service) CreateTable(tableName string, key string, valueFields []string) (int64, error) + func (service *Service) DescWithKeyOrder(tableName string) (TableInfo, error) + func (service *Service) Get(tableName string, key string) (bool, string, error) + func (service *Service) Insert(tableName string, entry Entry) (int64, error) + func (service *Service) OpenKVTable(tableName string) (int64, error) + func (service *Service) OpenTable(tableName string) (int64, error) + func (service *Service) Remove(tableName string, key string) (int64, error) + func (service *Service) Remove0(tableName string, conditions []Condition, limit Limit) (int64, error) + func (service *Service) Select(tableName string, conditions []Condition, limit Limit) ([]Entry, error) + func (service *Service) Select0(tableName string, key string) (Entry, error) + func (service *Service) Set(tableName string, key string, value string) (int64, error) + func (service *Service) Update(tableName string, key string, updateFields []UpdateField) (int64, error) + func (service *Service) Update0(tableName string, conditions []Condition, limit Limit, ...) (int64, error) + type Table struct + func NewTable(address common.Address, backend bind.ContractBackend) (*Table, error) + type TableCaller struct + func NewTableCaller(address common.Address, caller bind.ContractCaller) (*TableCaller, error) + func (_Table *TableCaller) Count(opts *bind.CallOpts, conditions []Condition) (uint32, error) + func (_Table *TableCaller) Select(opts *bind.CallOpts, conditions []Condition, limit Limit) ([]Entry, error) + func (_Table *TableCaller) Select0(opts *bind.CallOpts, key string) (Entry, error) + type TableCallerRaw struct + Contract *TableCaller + func (_Table *TableCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type TableCallerSession struct + CallOpts bind.CallOpts + Contract *TableCaller + func (_Table *TableCallerSession) Count(conditions []Condition) (uint32, error) + func (_Table *TableCallerSession) Select(conditions []Condition, limit Limit) ([]Entry, error) + func (_Table *TableCallerSession) Select0(key string) (Entry, error) + type TableFilterer struct + func NewTableFilterer(address common.Address, filterer bind.ContractFilterer) (*TableFilterer, error) + type TableInfo struct + KeyColumn string + KeyOrder uint8 + ValueColumns []string + type TableManager struct + func NewTableManager(address common.Address, backend bind.ContractBackend) (*TableManager, error) + type TableManagerCaller struct + func NewTableManagerCaller(address common.Address, caller bind.ContractCaller) (*TableManagerCaller, error) + func (_TableManager *TableManagerCaller) DescWithKeyOrder(opts *bind.CallOpts, tableName string) (TableInfo, error) + func (_TableManager *TableManagerCaller) OpenTable(opts *bind.CallOpts, path string) (common.Address, error) + type TableManagerCallerRaw struct + Contract *TableManagerCaller + func (_TableManager *TableManagerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type TableManagerCallerSession struct + CallOpts bind.CallOpts + Contract *TableManagerCaller + func (_TableManager *TableManagerCallerSession) DescWithKeyOrder(tableName string) (TableInfo, error) + func (_TableManager *TableManagerCallerSession) OpenTable(path string) (common.Address, error) + type TableManagerFilterer struct + func NewTableManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*TableManagerFilterer, error) + type TableManagerRaw struct + Contract *TableManager + func (_TableManager *TableManagerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_TableManager *TableManagerRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type TableManagerSession struct + CallOpts bind.CallOpts + Contract *TableManager + TransactOpts bind.TransactOpts + func (_TableManager *TableManagerSession) AppendColumns(path string, newColumns []string) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerSession) AsyncAppendColumns(handler func(*types.Receipt, error), path string, newColumns []string) (*types.Transaction, error) + func (_TableManager *TableManagerSession) AsyncCreateKVTable(handler func(*types.Receipt, error), tableName string, keyField string, ...) (*types.Transaction, error) + func (_TableManager *TableManagerSession) AsyncCreateTable(handler func(*types.Receipt, error), path string, tableInfo TableInfo) (*types.Transaction, error) + func (_TableManager *TableManagerSession) CreateKVTable(tableName string, keyField string, valueField string) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerSession) CreateTable(path string, tableInfo TableInfo) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerSession) DescWithKeyOrder(tableName string) (TableInfo, error) + func (_TableManager *TableManagerSession) OpenTable(path string) (common.Address, error) + type TableManagerTransactor struct + func NewTableManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*TableManagerTransactor, error) + func (_TableManager *TableManagerTransactor) AppendColumns(opts *bind.TransactOpts, path string, newColumns []string) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerTransactor) AsyncAppendColumns(handler func(*types.Receipt, error), opts *bind.TransactOpts, path string, ...) (*types.Transaction, error) + func (_TableManager *TableManagerTransactor) AsyncCreateKVTable(handler func(*types.Receipt, error), opts *bind.TransactOpts, tableName string, ...) (*types.Transaction, error) + func (_TableManager *TableManagerTransactor) AsyncCreateTable(handler func(*types.Receipt, error), opts *bind.TransactOpts, path string, ...) (*types.Transaction, error) + func (_TableManager *TableManagerTransactor) CreateKVTable(opts *bind.TransactOpts, tableName string, keyField string, valueField string) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerTransactor) CreateTable(opts *bind.TransactOpts, path string, tableInfo TableInfo) (int32, *types.Transaction, *types.Receipt, error) + type TableManagerTransactorRaw struct + Contract *TableManagerTransactor + func (_TableManager *TableManagerTransactorRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type TableManagerTransactorSession struct + Contract *TableManagerTransactor + TransactOpts bind.TransactOpts + func (_TableManager *TableManagerTransactorSession) AppendColumns(path string, newColumns []string) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerTransactorSession) AsyncAppendColumns(handler func(*types.Receipt, error), path string, newColumns []string) (*types.Transaction, error) + func (_TableManager *TableManagerTransactorSession) AsyncCreateKVTable(handler func(*types.Receipt, error), tableName string, keyField string, ...) (*types.Transaction, error) + func (_TableManager *TableManagerTransactorSession) AsyncCreateTable(handler func(*types.Receipt, error), path string, tableInfo TableInfo) (*types.Transaction, error) + func (_TableManager *TableManagerTransactorSession) CreateKVTable(tableName string, keyField string, valueField string) (int32, *types.Transaction, *types.Receipt, error) + func (_TableManager *TableManagerTransactorSession) CreateTable(path string, tableInfo TableInfo) (int32, *types.Transaction, *types.Receipt, error) + type TableRaw struct + Contract *Table + func (_Table *TableRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_Table *TableRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error) + func (_Table *TableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type TableSession struct + CallOpts bind.CallOpts + Contract *Table + TransactOpts bind.TransactOpts + func (_Table *TableSession) AsyncInsert(handler func(*types.Receipt, error), entry Entry) (*types.Transaction, error) + func (_Table *TableSession) AsyncRemove(handler func(*types.Receipt, error), key string) (*types.Transaction, error) + func (_Table *TableSession) AsyncRemove0(handler func(*types.Receipt, error), conditions []Condition, limit Limit) (*types.Transaction, error) + func (_Table *TableSession) AsyncUpdate(handler func(*types.Receipt, error), key string, updateFields []UpdateField) (*types.Transaction, error) + func (_Table *TableSession) AsyncUpdate0(handler func(*types.Receipt, error), conditions []Condition, limit Limit, ...) (*types.Transaction, error) + func (_Table *TableSession) Count(conditions []Condition) (uint32, error) + func (_Table *TableSession) Insert(entry Entry) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableSession) Remove(key string) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableSession) Remove0(conditions []Condition, limit Limit) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableSession) Select(conditions []Condition, limit Limit) ([]Entry, error) + func (_Table *TableSession) Select0(key string) (Entry, error) + func (_Table *TableSession) Update(key string, updateFields []UpdateField) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableSession) Update0(conditions []Condition, limit Limit, updateFields []UpdateField) (int32, *types.Transaction, *types.Receipt, error) + type TableTransactor struct + func NewTableTransactor(address common.Address, transactor bind.ContractTransactor) (*TableTransactor, error) + func (_Table *TableTransactor) AsyncInsert(handler func(*types.Receipt, error), opts *bind.TransactOpts, entry Entry) (*types.Transaction, error) + func (_Table *TableTransactor) AsyncRemove(handler func(*types.Receipt, error), opts *bind.TransactOpts, key string) (*types.Transaction, error) + func (_Table *TableTransactor) AsyncRemove0(handler func(*types.Receipt, error), opts *bind.TransactOpts, ...) (*types.Transaction, error) + func (_Table *TableTransactor) AsyncUpdate(handler func(*types.Receipt, error), opts *bind.TransactOpts, key string, ...) (*types.Transaction, error) + func (_Table *TableTransactor) AsyncUpdate0(handler func(*types.Receipt, error), opts *bind.TransactOpts, ...) (*types.Transaction, error) + func (_Table *TableTransactor) Insert(opts *bind.TransactOpts, entry Entry) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactor) Remove(opts *bind.TransactOpts, key string) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactor) Remove0(opts *bind.TransactOpts, conditions []Condition, limit Limit) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactor) Update(opts *bind.TransactOpts, key string, updateFields []UpdateField) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactor) Update0(opts *bind.TransactOpts, conditions []Condition, limit Limit, ...) (int32, *types.Transaction, *types.Receipt, error) + type TableTransactorRaw struct + Contract *TableTransactor + func (_Table *TableTransactorRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error) + func (_Table *TableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type TableTransactorSession struct + Contract *TableTransactor + TransactOpts bind.TransactOpts + func (_Table *TableTransactorSession) AsyncInsert(handler func(*types.Receipt, error), entry Entry) (*types.Transaction, error) + func (_Table *TableTransactorSession) AsyncRemove(handler func(*types.Receipt, error), key string) (*types.Transaction, error) + func (_Table *TableTransactorSession) AsyncRemove0(handler func(*types.Receipt, error), conditions []Condition, limit Limit) (*types.Transaction, error) + func (_Table *TableTransactorSession) AsyncUpdate(handler func(*types.Receipt, error), key string, updateFields []UpdateField) (*types.Transaction, error) + func (_Table *TableTransactorSession) AsyncUpdate0(handler func(*types.Receipt, error), conditions []Condition, limit Limit, ...) (*types.Transaction, error) + func (_Table *TableTransactorSession) Insert(entry Entry) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactorSession) Remove(key string) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactorSession) Remove0(conditions []Condition, limit Limit) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactorSession) Update(key string, updateFields []UpdateField) (int32, *types.Transaction, *types.Receipt, error) + func (_Table *TableTransactorSession) Update0(conditions []Condition, limit Limit, updateFields []UpdateField) (int32, *types.Transaction, *types.Receipt, error) + type UpdateField struct + ColumnName string + Value string Other modules containing this package github.com/FISCO-BCOS/go-sdk