crud

package
v0.0.0-...-24cf3dc Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TableABI = "" /* 4263-byte string literal not displayed */

TableABI is the input ABI used to generate the binding from.

View Source
const (
	TableKeyMaxLength int = 255
)
View Source
const TableManagerABI = "" /* 1858-byte string literal not displayed */

TableManagerABI is the input ABI used to generate the binding from.

Variables

View Source
var CRUDPrecompileAddress = common.HexToAddress("0x1002")

CRUDPrecompileAddress is the contract address of CRUD

View Source
var TableFactoryPrecompileAddress = common.HexToAddress("0x1002")

TableFactoryPrecompileAddress is the contract address of TableFactory

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Op    uint8
	Value string
}

Condition is an auto generated low-level Go binding around an user-defined struct.

type Entry

type Entry struct {
	Key    string
	Fields []string
}

Entry is an auto generated low-level Go binding around an user-defined struct.

type Limit

type Limit struct {
	Offset uint32
	Count  uint32
}

Limit is an auto generated low-level Go binding around an user-defined struct.

type Service

type Service struct {
	CallOpts *bind.CallOpts
	// contains filtered or unexported fields
}

CRUDService is a precompile contract service.

func NewCRUDService

func NewCRUDService(client *client.Client) (*Service, error)

NewCRUDService returns ptr of CRUDService

func (*Service) AsyncCreateTable

func (service *Service) AsyncCreateTable(handler func(*types.Receipt, error), tableName string, key string, valueFields []string) (*types.Transaction, error)

func (*Service) CreateTable

func (service *Service) CreateTable(tableName string, key string, valueFields []string) (int64, error)

func (*Service) Insert

func (service *Service) Insert(entry *Entry) (int64, error)

Insert entry

func (*Service) OpenTable

func (service *Service) OpenTable(tableName string) (int64, error)

func (*Service) Select

func (service *Service) Select(key string) (*Entry, error)

Select entry

type Table

type Table struct {
	TableCaller     // Read-only binding to the contract
	TableTransactor // Write-only binding to the contract
	TableFilterer   // Log filterer for contract events
}

Table is an auto generated Go binding around a Solidity contract.

func NewTable

func NewTable(address common.Address, backend bind.ContractBackend) (*Table, error)

NewTable creates a new instance of Table, bound to a specific deployed contract.

type TableCaller

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

TableCaller is an auto generated read-only Go binding around a Solidity contract.

func NewTableCaller

func NewTableCaller(address common.Address, caller bind.ContractCaller) (*TableCaller, error)

NewTableCaller creates a new read-only instance of Table, bound to a specific deployed contract.

func (*TableCaller) Count

func (_Table *TableCaller) Count(opts *bind.CallOpts, conditions []Condition) (uint32, error)

Count is a free data retrieval call binding the contract method 0xd8169b27.

Solidity: function count([]Condition conditions) constant returns(uint32)

func (*TableCaller) Select

func (_Table *TableCaller) Select(opts *bind.CallOpts, conditions []Condition, limit Limit) ([]Entry, error)

Select is a free data retrieval call binding the contract method 0x3cd5452e.

Solidity: function select([]Condition conditions, Limit limit) constant returns([]Entry)

func (*TableCaller) Select0

func (_Table *TableCaller) Select0(opts *bind.CallOpts, key string) (Entry, error)

Select0 is a free data retrieval call binding the contract method 0xfcd7e3c1.

Solidity: function select(string key) constant returns(Entry)

type TableCallerRaw

type TableCallerRaw struct {
	Contract *TableCaller // Generic read-only contract binding to access the raw methods on
}

TableCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*TableCallerRaw) Call

func (_Table *TableCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type TableCallerSession

type TableCallerSession struct {
	Contract *TableCaller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

TableCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*TableCallerSession) Count

func (_Table *TableCallerSession) Count(conditions []Condition) (uint32, error)

Count is a free data retrieval call binding the contract method 0xd8169b27.

Solidity: function count([]Condition conditions) constant returns(uint32)

func (*TableCallerSession) Select

func (_Table *TableCallerSession) Select(conditions []Condition, limit Limit) ([]Entry, error)

Select is a free data retrieval call binding the contract method 0x3cd5452e.

Solidity: function select([]Condition conditions, Limit limit) constant returns([]Entry)

func (*TableCallerSession) Select0

func (_Table *TableCallerSession) Select0(key string) (Entry, error)

Select0 is a free data retrieval call binding the contract method 0xfcd7e3c1.

Solidity: function select(string key) constant returns(Entry)

type TableFilterer

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

TableFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewTableFilterer

func NewTableFilterer(address common.Address, filterer bind.ContractFilterer) (*TableFilterer, error)

NewTableFilterer creates a new log filterer instance of Table, bound to a specific deployed contract.

type TableInfo

type TableInfo struct {
	KeyColumn    string
	ValueColumns []string
}

TableInfo is an auto generated low-level Go binding around an user-defined struct.

type TableManager

type TableManager struct {
	TableManagerCaller     // Read-only binding to the contract
	TableManagerTransactor // Write-only binding to the contract
	TableManagerFilterer   // Log filterer for contract events
}

TableManager is an auto generated Go binding around a Solidity contract.

func NewTableManager

func NewTableManager(address common.Address, backend bind.ContractBackend) (*TableManager, error)

NewTableManager creates a new instance of TableManager, bound to a specific deployed contract.

type TableManagerCaller

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

TableManagerCaller is an auto generated read-only Go binding around a Solidity contract.

func NewTableManagerCaller

func NewTableManagerCaller(address common.Address, caller bind.ContractCaller) (*TableManagerCaller, error)

NewTableManagerCaller creates a new read-only instance of TableManager, bound to a specific deployed contract.

func (*TableManagerCaller) Desc

func (_TableManager *TableManagerCaller) Desc(opts *bind.CallOpts, tableName string) (TableInfo, error)

Desc is a free data retrieval call binding the contract method 0x5d0d6d54.

Solidity: function desc(string tableName) constant returns(TableInfo)

func (*TableManagerCaller) OpenTable

func (_TableManager *TableManagerCaller) OpenTable(opts *bind.CallOpts, path string) (common.Address, error)

OpenTable is a free data retrieval call binding the contract method 0xf23f63c9.

Solidity: function openTable(string path) constant returns(address)

type TableManagerCallerRaw

type TableManagerCallerRaw struct {
	Contract *TableManagerCaller // Generic read-only contract binding to access the raw methods on
}

TableManagerCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*TableManagerCallerRaw) Call

func (_TableManager *TableManagerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type TableManagerCallerSession

type TableManagerCallerSession struct {
	Contract *TableManagerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts       // Call options to use throughout this session
}

TableManagerCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*TableManagerCallerSession) Desc

func (_TableManager *TableManagerCallerSession) Desc(tableName string) (TableInfo, error)

Desc is a free data retrieval call binding the contract method 0x5d0d6d54.

Solidity: function desc(string tableName) constant returns(TableInfo)

func (*TableManagerCallerSession) OpenTable

func (_TableManager *TableManagerCallerSession) OpenTable(path string) (common.Address, error)

OpenTable is a free data retrieval call binding the contract method 0xf23f63c9.

Solidity: function openTable(string path) constant returns(address)

type TableManagerFilterer

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

TableManagerFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewTableManagerFilterer

func NewTableManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*TableManagerFilterer, error)

NewTableManagerFilterer creates a new log filterer instance of TableManager, bound to a specific deployed contract.

type TableManagerRaw

type TableManagerRaw struct {
	Contract *TableManager // Generic contract binding to access the raw methods on
}

TableManagerRaw is an auto generated low-level Go binding around a Solidity contract.

func (*TableManagerRaw) Call

func (_TableManager *TableManagerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*TableManagerRaw) Transact

func (_TableManager *TableManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*TableManagerRaw) Transfer

func (_TableManager *TableManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TableManagerSession

type TableManagerSession struct {
	Contract     *TableManager     // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TableManagerSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*TableManagerSession) AppendColumns

func (_TableManager *TableManagerSession) AppendColumns(path string, newColumns []string) (*types.Transaction, *types.Receipt, error)

AppendColumns is a paid mutator transaction binding the contract method 0x302baee0.

Solidity: function appendColumns(string path, string[] newColumns) returns(int32)

func (*TableManagerSession) AsyncAppendColumns

func (_TableManager *TableManagerSession) AsyncAppendColumns(handler func(*types.Receipt, error), path string, newColumns []string) (*types.Transaction, error)

func (*TableManagerSession) AsyncCreateKVTable

func (_TableManager *TableManagerSession) AsyncCreateKVTable(handler func(*types.Receipt, error), tableName string, keyField string, valueField string) (*types.Transaction, error)

func (*TableManagerSession) AsyncCreateTable

func (_TableManager *TableManagerSession) AsyncCreateTable(handler func(*types.Receipt, error), path string, tableInfo TableInfo) (*types.Transaction, error)

func (*TableManagerSession) CreateKVTable

func (_TableManager *TableManagerSession) CreateKVTable(tableName string, keyField string, valueField string) (*types.Transaction, *types.Receipt, error)

CreateKVTable is a paid mutator transaction binding the contract method 0xb0e89adb.

Solidity: function createKVTable(string tableName, string keyField, string valueField) returns(int32)

func (*TableManagerSession) CreateTable

func (_TableManager *TableManagerSession) CreateTable(path string, tableInfo TableInfo) (*types.Transaction, *types.Receipt, error)

CreateTable is a paid mutator transaction binding the contract method 0x31a5a51e.

Solidity: function createTable(string path, TableInfo tableInfo) returns(int32)

func (*TableManagerSession) Desc

func (_TableManager *TableManagerSession) Desc(tableName string) (TableInfo, error)

Desc is a free data retrieval call binding the contract method 0x5d0d6d54.

Solidity: function desc(string tableName) constant returns(TableInfo)

func (*TableManagerSession) OpenTable

func (_TableManager *TableManagerSession) OpenTable(path string) (common.Address, error)

OpenTable is a free data retrieval call binding the contract method 0xf23f63c9.

Solidity: function openTable(string path) constant returns(address)

type TableManagerTransactor

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

TableManagerTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewTableManagerTransactor

func NewTableManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*TableManagerTransactor, error)

NewTableManagerTransactor creates a new write-only instance of TableManager, bound to a specific deployed contract.

func (*TableManagerTransactor) AppendColumns

func (_TableManager *TableManagerTransactor) AppendColumns(opts *bind.TransactOpts, path string, newColumns []string) (*types.Transaction, *types.Receipt, error)

AppendColumns is a paid mutator transaction binding the contract method 0x302baee0.

Solidity: function appendColumns(string path, string[] newColumns) returns(int32)

func (*TableManagerTransactor) AsyncAppendColumns

func (_TableManager *TableManagerTransactor) AsyncAppendColumns(handler func(*types.Receipt, error), opts *bind.TransactOpts, path string, newColumns []string) (*types.Transaction, error)

func (*TableManagerTransactor) AsyncCreateKVTable

func (_TableManager *TableManagerTransactor) AsyncCreateKVTable(handler func(*types.Receipt, error), opts *bind.TransactOpts, tableName string, keyField string, valueField string) (*types.Transaction, error)

func (*TableManagerTransactor) AsyncCreateTable

func (_TableManager *TableManagerTransactor) AsyncCreateTable(handler func(*types.Receipt, error), opts *bind.TransactOpts, path string, tableInfo TableInfo) (*types.Transaction, error)

func (*TableManagerTransactor) CreateKVTable

func (_TableManager *TableManagerTransactor) CreateKVTable(opts *bind.TransactOpts, tableName string, keyField string, valueField string) (*types.Transaction, *types.Receipt, error)

CreateKVTable is a paid mutator transaction binding the contract method 0xb0e89adb.

Solidity: function createKVTable(string tableName, string keyField, string valueField) returns(int32)

func (*TableManagerTransactor) CreateTable

func (_TableManager *TableManagerTransactor) CreateTable(opts *bind.TransactOpts, path string, tableInfo TableInfo) (*types.Transaction, *types.Receipt, error)

CreateTable is a paid mutator transaction binding the contract method 0x31a5a51e.

Solidity: function createTable(string path, TableInfo tableInfo) returns(int32)

type TableManagerTransactorRaw

type TableManagerTransactorRaw struct {
	Contract *TableManagerTransactor // Generic write-only contract binding to access the raw methods on
}

TableManagerTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*TableManagerTransactorRaw) Transact

func (_TableManager *TableManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*TableManagerTransactorRaw) Transfer

func (_TableManager *TableManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TableManagerTransactorSession

type TableManagerTransactorSession struct {
	Contract     *TableManagerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts       // Transaction auth options to use throughout this session
}

TableManagerTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*TableManagerTransactorSession) AppendColumns

func (_TableManager *TableManagerTransactorSession) AppendColumns(path string, newColumns []string) (*types.Transaction, *types.Receipt, error)

AppendColumns is a paid mutator transaction binding the contract method 0x302baee0.

Solidity: function appendColumns(string path, string[] newColumns) returns(int32)

func (*TableManagerTransactorSession) AsyncAppendColumns

func (_TableManager *TableManagerTransactorSession) AsyncAppendColumns(handler func(*types.Receipt, error), path string, newColumns []string) (*types.Transaction, error)

func (*TableManagerTransactorSession) AsyncCreateKVTable

func (_TableManager *TableManagerTransactorSession) AsyncCreateKVTable(handler func(*types.Receipt, error), tableName string, keyField string, valueField string) (*types.Transaction, error)

func (*TableManagerTransactorSession) AsyncCreateTable

func (_TableManager *TableManagerTransactorSession) AsyncCreateTable(handler func(*types.Receipt, error), path string, tableInfo TableInfo) (*types.Transaction, error)

func (*TableManagerTransactorSession) CreateKVTable

func (_TableManager *TableManagerTransactorSession) CreateKVTable(tableName string, keyField string, valueField string) (*types.Transaction, *types.Receipt, error)

CreateKVTable is a paid mutator transaction binding the contract method 0xb0e89adb.

Solidity: function createKVTable(string tableName, string keyField, string valueField) returns(int32)

func (*TableManagerTransactorSession) CreateTable

func (_TableManager *TableManagerTransactorSession) CreateTable(path string, tableInfo TableInfo) (*types.Transaction, *types.Receipt, error)

CreateTable is a paid mutator transaction binding the contract method 0x31a5a51e.

Solidity: function createTable(string path, TableInfo tableInfo) returns(int32)

type TableRaw

type TableRaw struct {
	Contract *Table // Generic contract binding to access the raw methods on
}

TableRaw is an auto generated low-level Go binding around a Solidity contract.

func (*TableRaw) Call

func (_Table *TableRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*TableRaw) Transact

func (_Table *TableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*TableRaw) Transfer

func (_Table *TableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TableSession

type TableSession struct {
	Contract     *Table            // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TableSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*TableSession) AsyncInsert

func (_Table *TableSession) AsyncInsert(handler func(*types.Receipt, error), entry Entry) (*types.Transaction, error)

func (*TableSession) AsyncRemove

func (_Table *TableSession) AsyncRemove(handler func(*types.Receipt, error), conditions []Condition, limit Limit) (*types.Transaction, error)

func (*TableSession) AsyncRemove0

func (_Table *TableSession) AsyncRemove0(handler func(*types.Receipt, error), key string) (*types.Transaction, error)

func (*TableSession) AsyncUpdate

func (_Table *TableSession) AsyncUpdate(handler func(*types.Receipt, error), key string, updateFields []UpdateField) (*types.Transaction, error)

func (*TableSession) AsyncUpdate0

func (_Table *TableSession) AsyncUpdate0(handler func(*types.Receipt, error), conditions []Condition, limit Limit, updateFields []UpdateField) (*types.Transaction, error)

func (*TableSession) Count

func (_Table *TableSession) Count(conditions []Condition) (uint32, error)

Count is a free data retrieval call binding the contract method 0xd8169b27.

Solidity: function count([]Condition conditions) constant returns(uint32)

func (*TableSession) Insert

func (_Table *TableSession) Insert(entry Entry) (*types.Transaction, *types.Receipt, error)

Insert is a paid mutator transaction binding the contract method 0x5c6e105f.

Solidity: function insert(Entry entry) returns(int32)

func (*TableSession) Remove

func (_Table *TableSession) Remove(conditions []Condition, limit Limit) (*types.Transaction, *types.Receipt, error)

Remove is a paid mutator transaction binding the contract method 0x686138ff.

Solidity: function remove([]Condition conditions, Limit limit) returns(int32)

func (*TableSession) Remove0

func (_Table *TableSession) Remove0(key string) (*types.Transaction, *types.Receipt, error)

Remove0 is a paid mutator transaction binding the contract method 0x80599e4b.

Solidity: function remove(string key) returns(int32)

func (*TableSession) Select

func (_Table *TableSession) Select(conditions []Condition, limit Limit) ([]Entry, error)

Select is a free data retrieval call binding the contract method 0x3cd5452e.

Solidity: function select([]Condition conditions, Limit limit) constant returns([]Entry)

func (*TableSession) Select0

func (_Table *TableSession) Select0(key string) (Entry, error)

Select0 is a free data retrieval call binding the contract method 0xfcd7e3c1.

Solidity: function select(string key) constant returns(Entry)

func (*TableSession) Update

func (_Table *TableSession) Update(key string, updateFields []UpdateField) (*types.Transaction, *types.Receipt, error)

Update is a paid mutator transaction binding the contract method 0x41ffd75f.

Solidity: function update(string key, []UpdateField updateFields) returns(int32)

func (*TableSession) Update0

func (_Table *TableSession) Update0(conditions []Condition, limit Limit, updateFields []UpdateField) (*types.Transaction, *types.Receipt, error)

Update0 is a paid mutator transaction binding the contract method 0x9953df92.

Solidity: function update([]Condition conditions, Limit limit, []UpdateField updateFields) returns(int32)

type TableTransactor

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

TableTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewTableTransactor

func NewTableTransactor(address common.Address, transactor bind.ContractTransactor) (*TableTransactor, error)

NewTableTransactor creates a new write-only instance of Table, bound to a specific deployed contract.

func (*TableTransactor) AsyncInsert

func (_Table *TableTransactor) AsyncInsert(handler func(*types.Receipt, error), opts *bind.TransactOpts, entry Entry) (*types.Transaction, error)

func (*TableTransactor) AsyncRemove

func (_Table *TableTransactor) AsyncRemove(handler func(*types.Receipt, error), opts *bind.TransactOpts, conditions []Condition, limit Limit) (*types.Transaction, error)

func (*TableTransactor) AsyncRemove0

func (_Table *TableTransactor) AsyncRemove0(handler func(*types.Receipt, error), opts *bind.TransactOpts, key string) (*types.Transaction, error)

func (*TableTransactor) AsyncUpdate

func (_Table *TableTransactor) AsyncUpdate(handler func(*types.Receipt, error), opts *bind.TransactOpts, key string, updateFields []UpdateField) (*types.Transaction, error)

func (*TableTransactor) AsyncUpdate0

func (_Table *TableTransactor) AsyncUpdate0(handler func(*types.Receipt, error), opts *bind.TransactOpts, conditions []Condition, limit Limit, updateFields []UpdateField) (*types.Transaction, error)

func (*TableTransactor) Insert

func (_Table *TableTransactor) Insert(opts *bind.TransactOpts, entry Entry) (*types.Transaction, *types.Receipt, error)

Insert is a paid mutator transaction binding the contract method 0x5c6e105f.

Solidity: function insert(Entry entry) returns(int32)

func (*TableTransactor) Remove

func (_Table *TableTransactor) Remove(opts *bind.TransactOpts, conditions []Condition, limit Limit) (*types.Transaction, *types.Receipt, error)

Remove is a paid mutator transaction binding the contract method 0x686138ff.

Solidity: function remove([]Condition conditions, Limit limit) returns(int32)

func (*TableTransactor) Remove0

func (_Table *TableTransactor) Remove0(opts *bind.TransactOpts, key string) (*types.Transaction, *types.Receipt, error)

Remove0 is a paid mutator transaction binding the contract method 0x80599e4b.

Solidity: function remove(string key) returns(int32)

func (*TableTransactor) Update

func (_Table *TableTransactor) Update(opts *bind.TransactOpts, key string, updateFields []UpdateField) (*types.Transaction, *types.Receipt, error)

Update is a paid mutator transaction binding the contract method 0x41ffd75f.

Solidity: function update(string key, []UpdateField updateFields) returns(int32)

func (*TableTransactor) Update0

func (_Table *TableTransactor) Update0(opts *bind.TransactOpts, conditions []Condition, limit Limit, updateFields []UpdateField) (*types.Transaction, *types.Receipt, error)

Update0 is a paid mutator transaction binding the contract method 0x9953df92.

Solidity: function update([]Condition conditions, Limit limit, []UpdateField updateFields) returns(int32)

type TableTransactorRaw

type TableTransactorRaw struct {
	Contract *TableTransactor // Generic write-only contract binding to access the raw methods on
}

TableTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*TableTransactorRaw) Transact

func (_Table *TableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*TableTransactorRaw) Transfer

func (_Table *TableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TableTransactorSession

type TableTransactorSession struct {
	Contract     *TableTransactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TableTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*TableTransactorSession) AsyncInsert

func (_Table *TableTransactorSession) AsyncInsert(handler func(*types.Receipt, error), entry Entry) (*types.Transaction, error)

func (*TableTransactorSession) AsyncRemove

func (_Table *TableTransactorSession) AsyncRemove(handler func(*types.Receipt, error), conditions []Condition, limit Limit) (*types.Transaction, error)

func (*TableTransactorSession) AsyncRemove0

func (_Table *TableTransactorSession) AsyncRemove0(handler func(*types.Receipt, error), key string) (*types.Transaction, error)

func (*TableTransactorSession) AsyncUpdate

func (_Table *TableTransactorSession) AsyncUpdate(handler func(*types.Receipt, error), key string, updateFields []UpdateField) (*types.Transaction, error)

func (*TableTransactorSession) AsyncUpdate0

func (_Table *TableTransactorSession) AsyncUpdate0(handler func(*types.Receipt, error), conditions []Condition, limit Limit, updateFields []UpdateField) (*types.Transaction, error)

func (*TableTransactorSession) Insert

func (_Table *TableTransactorSession) Insert(entry Entry) (*types.Transaction, *types.Receipt, error)

Insert is a paid mutator transaction binding the contract method 0x5c6e105f.

Solidity: function insert(Entry entry) returns(int32)

func (*TableTransactorSession) Remove

func (_Table *TableTransactorSession) Remove(conditions []Condition, limit Limit) (*types.Transaction, *types.Receipt, error)

Remove is a paid mutator transaction binding the contract method 0x686138ff.

Solidity: function remove([]Condition conditions, Limit limit) returns(int32)

func (*TableTransactorSession) Remove0

func (_Table *TableTransactorSession) Remove0(key string) (*types.Transaction, *types.Receipt, error)

Remove0 is a paid mutator transaction binding the contract method 0x80599e4b.

Solidity: function remove(string key) returns(int32)

func (*TableTransactorSession) Update

func (_Table *TableTransactorSession) Update(key string, updateFields []UpdateField) (*types.Transaction, *types.Receipt, error)

Update is a paid mutator transaction binding the contract method 0x41ffd75f.

Solidity: function update(string key, []UpdateField updateFields) returns(int32)

func (*TableTransactorSession) Update0

func (_Table *TableTransactorSession) Update0(conditions []Condition, limit Limit, updateFields []UpdateField) (*types.Transaction, *types.Receipt, error)

Update0 is a paid mutator transaction binding the contract method 0x9953df92.

Solidity: function update([]Condition conditions, Limit limit, []UpdateField updateFields) returns(int32)

type UpdateField

type UpdateField struct {
	ColumnName string
	Value      string
}

UpdateField is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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