models

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB        = sqlx.NewDatabase("demo").WithSchema("applet_management")
	MonitorDB = sqlx.NewDatabase("demo").WithSchema("monitor")
	WasmDB    = sqlx.NewDatabase("wasm_storage")
)
View Source
var AccountTable *builder.Table
View Source
var AppletTable *builder.Table
View Source
var BlockchainTable *builder.Table
View Source
var ChainHeightTable *builder.Table
View Source
var ChainTxTable *builder.Table
View Source
var ConfigTable *builder.Table
View Source
var ContractLogTable *builder.Table
View Source
var DefaultStrategyInfo = StrategyInfo{
	EventType: enums.EVENTTYPEDEFAULT,
	Handler:   "start",
}
View Source
var EventLogTable *builder.Table
View Source
var InstanceTable *builder.Table
View Source
var ProjectTable *builder.Table
View Source
var PublisherTable *builder.Table
View Source
var ResourceTable *builder.Table
View Source
var StrategyTable *builder.Table

Functions

This section is empty.

Types

type Account

Account w3bstream account @def primary AccountID DeletedAt @def unique_index ui_username Username

func (*Account) ColAccountID

func (m *Account) ColAccountID() *builder.Column

func (*Account) ColCreatedAt

func (m *Account) ColCreatedAt() *builder.Column

func (*Account) ColDeletedAt

func (m *Account) ColDeletedAt() *builder.Column

func (*Account) ColDesc

func (*Account) ColDesc() map[string][]string

func (*Account) ColIdentityType

func (m *Account) ColIdentityType() *builder.Column

func (*Account) ColMeta

func (m *Account) ColMeta() *builder.Column

func (*Account) ColPassword

func (m *Account) ColPassword() *builder.Column

func (*Account) ColRel

func (*Account) ColRel() map[string][]string

func (*Account) ColState

func (m *Account) ColState() *builder.Column

func (*Account) ColUpdatedAt

func (m *Account) ColUpdatedAt() *builder.Column

func (*Account) ColUsername

func (m *Account) ColUsername() *builder.Column

func (*Account) ColVendor

func (m *Account) ColVendor() *builder.Column

func (*Account) Comments

func (*Account) Comments() map[string]string

func (*Account) CondByValue

func (m *Account) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Account) Count

func (m *Account) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Account) Create

func (m *Account) Create(db sqlx.DBExecutor) error

func (*Account) Delete

func (m *Account) Delete(db sqlx.DBExecutor) error

func (*Account) DeleteByAccountID

func (m *Account) DeleteByAccountID(db sqlx.DBExecutor) error

func (*Account) DeleteByUsername

func (m *Account) DeleteByUsername(db sqlx.DBExecutor) error

func (*Account) FetchByAccountID

func (m *Account) FetchByAccountID(db sqlx.DBExecutor) error

func (*Account) FetchByUsername

func (m *Account) FetchByUsername(db sqlx.DBExecutor) error

func (*Account) FieldAccountID

func (*Account) FieldAccountID() string

func (*Account) FieldCreatedAt

func (*Account) FieldCreatedAt() string

func (*Account) FieldDeletedAt

func (*Account) FieldDeletedAt() string

func (*Account) FieldIdentityType

func (*Account) FieldIdentityType() string

func (*Account) FieldMeta

func (*Account) FieldMeta() string

func (*Account) FieldPassword

func (*Account) FieldPassword() string

func (*Account) FieldState

func (*Account) FieldState() string

func (*Account) FieldUpdatedAt

func (*Account) FieldUpdatedAt() string

func (*Account) FieldUsername

func (*Account) FieldUsername() string

func (*Account) FieldVendor

func (*Account) FieldVendor() string

func (*Account) IndexFieldNames

func (m *Account) IndexFieldNames() []string

func (*Account) List

func (m *Account) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Account, error)

func (*Account) PrimaryKey

func (*Account) PrimaryKey() []string

func (*Account) SoftDeleteByAccountID

func (m *Account) SoftDeleteByAccountID(db sqlx.DBExecutor) error

func (*Account) SoftDeleteByUsername

func (m *Account) SoftDeleteByUsername(db sqlx.DBExecutor) error

func (*Account) TableDesc

func (*Account) TableDesc() []string

func (*Account) TableName

func (*Account) TableName() string

func (*Account) UniqueIndexUIUsername

func (*Account) UniqueIndexUIUsername() string

func (*Account) UniqueIndexes

func (*Account) UniqueIndexes() builder.Indexes

func (*Account) UpdateByAccountID

func (m *Account) UpdateByAccountID(db sqlx.DBExecutor, zeros ...string) error

func (*Account) UpdateByAccountIDWithFVs

func (m *Account) UpdateByAccountIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Account) UpdateByUsername

func (m *Account) UpdateByUsername(db sqlx.DBExecutor, zeros ...string) error

func (*Account) UpdateByUsernameWithFVs

func (m *Account) UpdateByUsernameWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type AccountInfo

type AccountInfo struct {
	Username     string                    `db:"f_username"                  json:"username"`
	IdentityType enums.AccountIdentityType `db:"f_identity_type,default='0'" json:"identityType"`
	State        enums.AccountState        `db:"f_state,default='0'"         json:"-"`
	Password     AccountPassword           `db:"f_password"                  json:"-"`
	Vendor       AccountVendor             `db:"f_vendor,default=''"         json:"-"`
	Meta         Meta                      `db:"f_meta,default=''"           json:"meta"`
}

type AccountIterator

type AccountIterator struct {
}

func (*AccountIterator) New

func (*AccountIterator) New() interface{}

func (*AccountIterator) Resolve

func (*AccountIterator) Resolve(v interface{}) *Account

type AccountPassword

type AccountPassword struct {
	Type     enums.PasswordType `json:"type,omitempty"`
	Password string             `json:"password"`
	Scope    string             `json:"scope,omitempty"`
	Desc     string             `json:"desc,omitempty"`
}

func (AccountPassword) DataType

func (AccountPassword) DataType(drv string) string

func (*AccountPassword) Scan

func (v *AccountPassword) Scan(src interface{}) error

func (AccountPassword) Value

func (v AccountPassword) Value() (driver.Value, error)

type AccountVendor

type AccountVendor struct {
	From     string `json:"from"`
	Identity string `json:"identity"`
}

AccountVendor third part vendor

func (AccountVendor) DataType

func (AccountVendor) DataType(drv string) string

func (*AccountVendor) Scan

func (v *AccountVendor) Scan(src interface{}) error

func (AccountVendor) Value

func (v AccountVendor) Value() (driver.Value, error)

type Applet

Applet database model applet @def primary ID @def unique_index UI_applet_id AppletID @def unique_index UI_project_name ProjectID Name

func (*Applet) ColAppletID

func (m *Applet) ColAppletID() *builder.Column

func (*Applet) ColCreatedAt

func (m *Applet) ColCreatedAt() *builder.Column

func (*Applet) ColDesc

func (*Applet) ColDesc() map[string][]string

func (*Applet) ColID

func (m *Applet) ColID() *builder.Column

func (*Applet) ColName

func (m *Applet) ColName() *builder.Column

func (*Applet) ColProjectID

func (m *Applet) ColProjectID() *builder.Column

func (*Applet) ColRel

func (*Applet) ColRel() map[string][]string

func (*Applet) ColResourceID

func (m *Applet) ColResourceID() *builder.Column

func (*Applet) ColUpdatedAt

func (m *Applet) ColUpdatedAt() *builder.Column

func (*Applet) ColWasmName

func (m *Applet) ColWasmName() *builder.Column

func (*Applet) Comments

func (*Applet) Comments() map[string]string

func (*Applet) CondByValue

func (m *Applet) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Applet) Count

func (m *Applet) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Applet) Create

func (m *Applet) Create(db sqlx.DBExecutor) error

func (*Applet) Delete

func (m *Applet) Delete(db sqlx.DBExecutor) error

func (*Applet) DeleteByAppletID

func (m *Applet) DeleteByAppletID(db sqlx.DBExecutor) error

func (*Applet) DeleteByID

func (m *Applet) DeleteByID(db sqlx.DBExecutor) error

func (*Applet) DeleteByProjectIDAndName

func (m *Applet) DeleteByProjectIDAndName(db sqlx.DBExecutor) error

func (*Applet) FetchByAppletID

func (m *Applet) FetchByAppletID(db sqlx.DBExecutor) error

func (*Applet) FetchByID

func (m *Applet) FetchByID(db sqlx.DBExecutor) error

func (*Applet) FetchByProjectIDAndName

func (m *Applet) FetchByProjectIDAndName(db sqlx.DBExecutor) error

func (*Applet) FieldAppletID

func (*Applet) FieldAppletID() string

func (*Applet) FieldCreatedAt

func (*Applet) FieldCreatedAt() string

func (*Applet) FieldID

func (*Applet) FieldID() string

func (*Applet) FieldName

func (*Applet) FieldName() string

func (*Applet) FieldProjectID

func (*Applet) FieldProjectID() string

func (*Applet) FieldResourceID

func (*Applet) FieldResourceID() string

func (*Applet) FieldUpdatedAt

func (*Applet) FieldUpdatedAt() string

func (*Applet) FieldWasmName

func (*Applet) FieldWasmName() string

func (*Applet) IndexFieldNames

func (m *Applet) IndexFieldNames() []string

func (*Applet) List

func (m *Applet) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Applet, error)

func (*Applet) PrimaryKey

func (*Applet) PrimaryKey() []string

func (*Applet) TableDesc

func (*Applet) TableDesc() []string

func (*Applet) TableName

func (*Applet) TableName() string

func (*Applet) UniqueIndexUIAppletID

func (*Applet) UniqueIndexUIAppletID() string

func (*Applet) UniqueIndexUIProjectName

func (*Applet) UniqueIndexUIProjectName() string

func (*Applet) UniqueIndexes

func (*Applet) UniqueIndexes() builder.Indexes

func (*Applet) UpdateByAppletID

func (m *Applet) UpdateByAppletID(db sqlx.DBExecutor, zeros ...string) error

func (*Applet) UpdateByAppletIDWithFVs

func (m *Applet) UpdateByAppletIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Applet) UpdateByID

func (m *Applet) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Applet) UpdateByIDWithFVs

func (m *Applet) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Applet) UpdateByProjectIDAndName

func (m *Applet) UpdateByProjectIDAndName(db sqlx.DBExecutor, zeros ...string) error

func (*Applet) UpdateByProjectIDAndNameWithFVs

func (m *Applet) UpdateByProjectIDAndNameWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type AppletInfo

type AppletInfo struct {
	Name     string `db:"f_name"      json:"name"`
	WasmName string `db:"f_wasm_name" json:"wasmName"`
}

type AppletIterator

type AppletIterator struct {
}

func (*AppletIterator) New

func (*AppletIterator) New() interface{}

func (*AppletIterator) Resolve

func (*AppletIterator) Resolve(v interface{}) *Applet

type Blockchain

Blockchain database model blockchain @def primary ID @def unique_index UI_chain_id ChainID

func (*Blockchain) ColAddress

func (m *Blockchain) ColAddress() *builder.Column

func (*Blockchain) ColChainID

func (m *Blockchain) ColChainID() *builder.Column

func (*Blockchain) ColCreatedAt

func (m *Blockchain) ColCreatedAt() *builder.Column

func (*Blockchain) ColDesc

func (*Blockchain) ColDesc() map[string][]string

func (*Blockchain) ColID

func (m *Blockchain) ColID() *builder.Column

func (*Blockchain) ColRel

func (*Blockchain) ColRel() map[string][]string

func (*Blockchain) ColUpdatedAt

func (m *Blockchain) ColUpdatedAt() *builder.Column

func (*Blockchain) Comments

func (*Blockchain) Comments() map[string]string

func (*Blockchain) CondByValue

func (m *Blockchain) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Blockchain) Count

func (m *Blockchain) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Blockchain) Create

func (m *Blockchain) Create(db sqlx.DBExecutor) error

func (*Blockchain) Delete

func (m *Blockchain) Delete(db sqlx.DBExecutor) error

func (*Blockchain) DeleteByChainID

func (m *Blockchain) DeleteByChainID(db sqlx.DBExecutor) error

func (*Blockchain) DeleteByID

func (m *Blockchain) DeleteByID(db sqlx.DBExecutor) error

func (*Blockchain) FetchByChainID

func (m *Blockchain) FetchByChainID(db sqlx.DBExecutor) error

func (*Blockchain) FetchByID

func (m *Blockchain) FetchByID(db sqlx.DBExecutor) error

func (*Blockchain) FieldAddress

func (*Blockchain) FieldAddress() string

func (*Blockchain) FieldChainID

func (*Blockchain) FieldChainID() string

func (*Blockchain) FieldCreatedAt

func (*Blockchain) FieldCreatedAt() string

func (*Blockchain) FieldID

func (*Blockchain) FieldID() string

func (*Blockchain) FieldUpdatedAt

func (*Blockchain) FieldUpdatedAt() string

func (*Blockchain) IndexFieldNames

func (m *Blockchain) IndexFieldNames() []string

func (*Blockchain) List

func (m *Blockchain) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Blockchain, error)

func (*Blockchain) PrimaryKey

func (*Blockchain) PrimaryKey() []string

func (*Blockchain) TableDesc

func (*Blockchain) TableDesc() []string

func (*Blockchain) TableName

func (*Blockchain) TableName() string

func (*Blockchain) UniqueIndexUIChainID

func (*Blockchain) UniqueIndexUIChainID() string

func (*Blockchain) UniqueIndexes

func (*Blockchain) UniqueIndexes() builder.Indexes

func (*Blockchain) UpdateByChainID

func (m *Blockchain) UpdateByChainID(db sqlx.DBExecutor, zeros ...string) error

func (*Blockchain) UpdateByChainIDWithFVs

func (m *Blockchain) UpdateByChainIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Blockchain) UpdateByID

func (m *Blockchain) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Blockchain) UpdateByIDWithFVs

func (m *Blockchain) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type BlockchainInfo

type BlockchainInfo struct {
	Address string `db:"f_chain_address"         json:"chainAddress"`
}

type BlockchainIterator

type BlockchainIterator struct {
}

func (*BlockchainIterator) New

func (*BlockchainIterator) New() interface{}

func (*BlockchainIterator) Resolve

func (*BlockchainIterator) Resolve(v interface{}) *Blockchain

type ChainHeight

ChainHeight database model chainheight @def primary ID @def unique_index UI_chain_height_id ChainHeightID @def unique_index UI_chain_height_uniq ProjectName EventType ChainID Height Uniq

func (*ChainHeight) ColChainHeightID

func (m *ChainHeight) ColChainHeightID() *builder.Column

func (*ChainHeight) ColChainID

func (m *ChainHeight) ColChainID() *builder.Column

func (*ChainHeight) ColCreatedAt

func (m *ChainHeight) ColCreatedAt() *builder.Column

func (*ChainHeight) ColDesc

func (*ChainHeight) ColDesc() map[string][]string

func (*ChainHeight) ColEventType

func (m *ChainHeight) ColEventType() *builder.Column

func (*ChainHeight) ColFinished

func (m *ChainHeight) ColFinished() *builder.Column

func (*ChainHeight) ColHeight

func (m *ChainHeight) ColHeight() *builder.Column

func (*ChainHeight) ColID

func (m *ChainHeight) ColID() *builder.Column

func (*ChainHeight) ColProjectName

func (m *ChainHeight) ColProjectName() *builder.Column

func (*ChainHeight) ColRel

func (*ChainHeight) ColRel() map[string][]string

func (*ChainHeight) ColUniq

func (m *ChainHeight) ColUniq() *builder.Column

func (*ChainHeight) ColUpdatedAt

func (m *ChainHeight) ColUpdatedAt() *builder.Column

func (*ChainHeight) Comments

func (*ChainHeight) Comments() map[string]string

func (*ChainHeight) CondByValue

func (m *ChainHeight) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*ChainHeight) Count

func (m *ChainHeight) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*ChainHeight) Create

func (m *ChainHeight) Create(db sqlx.DBExecutor) error

func (*ChainHeight) Delete

func (m *ChainHeight) Delete(db sqlx.DBExecutor) error

func (*ChainHeight) DeleteByChainHeightID

func (m *ChainHeight) DeleteByChainHeightID(db sqlx.DBExecutor) error

func (*ChainHeight) DeleteByID

func (m *ChainHeight) DeleteByID(db sqlx.DBExecutor) error

func (*ChainHeight) DeleteByProjectNameAndEventTypeAndChainIDAndHeightAndUniq

func (m *ChainHeight) DeleteByProjectNameAndEventTypeAndChainIDAndHeightAndUniq(db sqlx.DBExecutor) error

func (*ChainHeight) FetchByChainHeightID

func (m *ChainHeight) FetchByChainHeightID(db sqlx.DBExecutor) error

func (*ChainHeight) FetchByID

func (m *ChainHeight) FetchByID(db sqlx.DBExecutor) error

func (*ChainHeight) FetchByProjectNameAndEventTypeAndChainIDAndHeightAndUniq

func (m *ChainHeight) FetchByProjectNameAndEventTypeAndChainIDAndHeightAndUniq(db sqlx.DBExecutor) error

func (*ChainHeight) FieldChainHeightID

func (*ChainHeight) FieldChainHeightID() string

func (*ChainHeight) FieldChainID

func (*ChainHeight) FieldChainID() string

func (*ChainHeight) FieldCreatedAt

func (*ChainHeight) FieldCreatedAt() string

func (*ChainHeight) FieldEventType

func (*ChainHeight) FieldEventType() string

func (*ChainHeight) FieldFinished

func (*ChainHeight) FieldFinished() string

func (*ChainHeight) FieldHeight

func (*ChainHeight) FieldHeight() string

func (*ChainHeight) FieldID

func (*ChainHeight) FieldID() string

func (*ChainHeight) FieldProjectName

func (*ChainHeight) FieldProjectName() string

func (*ChainHeight) FieldUniq

func (*ChainHeight) FieldUniq() string

func (*ChainHeight) FieldUpdatedAt

func (*ChainHeight) FieldUpdatedAt() string

func (*ChainHeight) IndexFieldNames

func (m *ChainHeight) IndexFieldNames() []string

func (*ChainHeight) List

func (*ChainHeight) PrimaryKey

func (*ChainHeight) PrimaryKey() []string

func (*ChainHeight) TableDesc

func (*ChainHeight) TableDesc() []string

func (*ChainHeight) TableName

func (*ChainHeight) TableName() string

func (*ChainHeight) UniqueIndexUIChainHeightID

func (*ChainHeight) UniqueIndexUIChainHeightID() string

func (*ChainHeight) UniqueIndexUIChainHeightUniq

func (*ChainHeight) UniqueIndexUIChainHeightUniq() string

func (*ChainHeight) UniqueIndexes

func (*ChainHeight) UniqueIndexes() builder.Indexes

func (*ChainHeight) UpdateByChainHeightID

func (m *ChainHeight) UpdateByChainHeightID(db sqlx.DBExecutor, zeros ...string) error

func (*ChainHeight) UpdateByChainHeightIDWithFVs

func (m *ChainHeight) UpdateByChainHeightIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*ChainHeight) UpdateByID

func (m *ChainHeight) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*ChainHeight) UpdateByIDWithFVs

func (m *ChainHeight) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*ChainHeight) UpdateByProjectNameAndEventTypeAndChainIDAndHeightAndUniq

func (m *ChainHeight) UpdateByProjectNameAndEventTypeAndChainIDAndHeightAndUniq(db sqlx.DBExecutor, zeros ...string) error

func (*ChainHeight) UpdateByProjectNameAndEventTypeAndChainIDAndHeightAndUniqWithFVs

func (m *ChainHeight) UpdateByProjectNameAndEventTypeAndChainIDAndHeightAndUniqWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ChainHeightData

type ChainHeightData struct {
	ProjectName string         `db:"f_project_name"                 json:"projectName"`
	Finished    datatypes.Bool `db:"f_finished,default='2'"         json:"-"`
	Uniq        types.SFID     `db:"f_uniq,default='0'"             json:"-"`
	ChainHeightInfo
}

type ChainHeightInfo

type ChainHeightInfo struct {
	EventType string `db:"f_event_type"                   json:"eventType,omitempty"`
	ChainID   uint64 `db:"f_chain_id"                     json:"chainID"`
	Height    uint64 `db:"f_height"                       json:"height"`
}

type ChainHeightIterator

type ChainHeightIterator struct {
}

func (*ChainHeightIterator) New

func (*ChainHeightIterator) New() interface{}

func (*ChainHeightIterator) Resolve

func (*ChainHeightIterator) Resolve(v interface{}) *ChainHeight

type ChainTx

ChainTx database model chain tx @def primary ID @def unique_index UI_chain_tx_id ChainTxID @def unique_index UI_chain_tx_uniq ProjectName EventType ChainID TxAddress Uniq

func (*ChainTx) ColChainID

func (m *ChainTx) ColChainID() *builder.Column

func (*ChainTx) ColChainTxID

func (m *ChainTx) ColChainTxID() *builder.Column

func (*ChainTx) ColCreatedAt

func (m *ChainTx) ColCreatedAt() *builder.Column

func (*ChainTx) ColDesc

func (*ChainTx) ColDesc() map[string][]string

func (*ChainTx) ColEventType

func (m *ChainTx) ColEventType() *builder.Column

func (*ChainTx) ColFinished

func (m *ChainTx) ColFinished() *builder.Column

func (*ChainTx) ColID

func (m *ChainTx) ColID() *builder.Column

func (*ChainTx) ColProjectName

func (m *ChainTx) ColProjectName() *builder.Column

func (*ChainTx) ColRel

func (*ChainTx) ColRel() map[string][]string

func (*ChainTx) ColTxAddress

func (m *ChainTx) ColTxAddress() *builder.Column

func (*ChainTx) ColUniq

func (m *ChainTx) ColUniq() *builder.Column

func (*ChainTx) ColUpdatedAt

func (m *ChainTx) ColUpdatedAt() *builder.Column

func (*ChainTx) Comments

func (*ChainTx) Comments() map[string]string

func (*ChainTx) CondByValue

func (m *ChainTx) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*ChainTx) Count

func (m *ChainTx) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*ChainTx) Create

func (m *ChainTx) Create(db sqlx.DBExecutor) error

func (*ChainTx) Delete

func (m *ChainTx) Delete(db sqlx.DBExecutor) error

func (*ChainTx) DeleteByChainTxID

func (m *ChainTx) DeleteByChainTxID(db sqlx.DBExecutor) error

func (*ChainTx) DeleteByID

func (m *ChainTx) DeleteByID(db sqlx.DBExecutor) error

func (*ChainTx) DeleteByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniq

func (m *ChainTx) DeleteByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniq(db sqlx.DBExecutor) error

func (*ChainTx) FetchByChainTxID

func (m *ChainTx) FetchByChainTxID(db sqlx.DBExecutor) error

func (*ChainTx) FetchByID

func (m *ChainTx) FetchByID(db sqlx.DBExecutor) error

func (*ChainTx) FetchByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniq

func (m *ChainTx) FetchByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniq(db sqlx.DBExecutor) error

func (*ChainTx) FieldChainID

func (*ChainTx) FieldChainID() string

func (*ChainTx) FieldChainTxID

func (*ChainTx) FieldChainTxID() string

func (*ChainTx) FieldCreatedAt

func (*ChainTx) FieldCreatedAt() string

func (*ChainTx) FieldEventType

func (*ChainTx) FieldEventType() string

func (*ChainTx) FieldFinished

func (*ChainTx) FieldFinished() string

func (*ChainTx) FieldID

func (*ChainTx) FieldID() string

func (*ChainTx) FieldProjectName

func (*ChainTx) FieldProjectName() string

func (*ChainTx) FieldTxAddress

func (*ChainTx) FieldTxAddress() string

func (*ChainTx) FieldUniq

func (*ChainTx) FieldUniq() string

func (*ChainTx) FieldUpdatedAt

func (*ChainTx) FieldUpdatedAt() string

func (*ChainTx) IndexFieldNames

func (m *ChainTx) IndexFieldNames() []string

func (*ChainTx) List

func (m *ChainTx) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]ChainTx, error)

func (*ChainTx) PrimaryKey

func (*ChainTx) PrimaryKey() []string

func (*ChainTx) TableDesc

func (*ChainTx) TableDesc() []string

func (*ChainTx) TableName

func (*ChainTx) TableName() string

func (*ChainTx) UniqueIndexUIChainTxID

func (*ChainTx) UniqueIndexUIChainTxID() string

func (*ChainTx) UniqueIndexUIChainTxUniq

func (*ChainTx) UniqueIndexUIChainTxUniq() string

func (*ChainTx) UniqueIndexes

func (*ChainTx) UniqueIndexes() builder.Indexes

func (*ChainTx) UpdateByChainTxID

func (m *ChainTx) UpdateByChainTxID(db sqlx.DBExecutor, zeros ...string) error

func (*ChainTx) UpdateByChainTxIDWithFVs

func (m *ChainTx) UpdateByChainTxIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*ChainTx) UpdateByID

func (m *ChainTx) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*ChainTx) UpdateByIDWithFVs

func (m *ChainTx) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*ChainTx) UpdateByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniq

func (m *ChainTx) UpdateByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniq(db sqlx.DBExecutor, zeros ...string) error

func (*ChainTx) UpdateByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniqWithFVs

func (m *ChainTx) UpdateByProjectNameAndEventTypeAndChainIDAndTxAddressAndUniqWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ChainTxData

type ChainTxData struct {
	ProjectName string         `db:"f_project_name"                 json:"projectName"`
	Finished    datatypes.Bool `db:"f_finished,default='2'"         json:"-"`
	Uniq        types.SFID     `db:"f_uniq,default='0'"             json:"-"`
	ChainTxInfo
}

type ChainTxInfo

type ChainTxInfo struct {
	EventType string `db:"f_event_type"                   json:"eventType,omitempty"`
	ChainID   uint64 `db:"f_chain_id"                     json:"chainID"`
	TxAddress string `db:"f_tx_address"                   json:"txAddress"`
}

type ChainTxIterator

type ChainTxIterator struct {
}

func (*ChainTxIterator) New

func (*ChainTxIterator) New() interface{}

func (*ChainTxIterator) Resolve

func (*ChainTxIterator) Resolve(v interface{}) *ChainTx

type Config added in v1.0.0

Config database model config for configuration management @def primary ID @def unique_index UI_config_id ConfigID @def unique_index UI_rel_type RelID Type

func (*Config) ColConfigID added in v1.0.0

func (m *Config) ColConfigID() *builder.Column

func (*Config) ColCreatedAt added in v1.0.0

func (m *Config) ColCreatedAt() *builder.Column

func (*Config) ColDesc added in v1.0.0

func (*Config) ColDesc() map[string][]string

func (*Config) ColID added in v1.0.0

func (m *Config) ColID() *builder.Column

func (*Config) ColRel added in v1.0.0

func (*Config) ColRel() map[string][]string

func (*Config) ColRelID added in v1.0.0

func (m *Config) ColRelID() *builder.Column

func (*Config) ColType added in v1.0.0

func (m *Config) ColType() *builder.Column

func (*Config) ColUpdatedAt added in v1.0.0

func (m *Config) ColUpdatedAt() *builder.Column

func (*Config) ColValue added in v1.0.0

func (m *Config) ColValue() *builder.Column

func (*Config) Comments added in v1.0.0

func (*Config) Comments() map[string]string

func (*Config) CondByValue added in v1.0.0

func (m *Config) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Config) Count added in v1.0.0

func (m *Config) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Config) Create added in v1.0.0

func (m *Config) Create(db sqlx.DBExecutor) error

func (*Config) Delete added in v1.0.0

func (m *Config) Delete(db sqlx.DBExecutor) error

func (*Config) DeleteByConfigID added in v1.0.0

func (m *Config) DeleteByConfigID(db sqlx.DBExecutor) error

func (*Config) DeleteByID added in v1.0.0

func (m *Config) DeleteByID(db sqlx.DBExecutor) error

func (*Config) DeleteByRelIDAndType added in v1.0.0

func (m *Config) DeleteByRelIDAndType(db sqlx.DBExecutor) error

func (*Config) FetchByConfigID added in v1.0.0

func (m *Config) FetchByConfigID(db sqlx.DBExecutor) error

func (*Config) FetchByID added in v1.0.0

func (m *Config) FetchByID(db sqlx.DBExecutor) error

func (*Config) FetchByRelIDAndType added in v1.0.0

func (m *Config) FetchByRelIDAndType(db sqlx.DBExecutor) error

func (*Config) FieldConfigID added in v1.0.0

func (*Config) FieldConfigID() string

func (*Config) FieldCreatedAt added in v1.0.0

func (*Config) FieldCreatedAt() string

func (*Config) FieldID added in v1.0.0

func (*Config) FieldID() string

func (*Config) FieldRelID added in v1.0.0

func (*Config) FieldRelID() string

func (*Config) FieldType added in v1.0.0

func (*Config) FieldType() string

func (*Config) FieldUpdatedAt added in v1.0.0

func (*Config) FieldUpdatedAt() string

func (*Config) FieldValue added in v1.0.0

func (*Config) FieldValue() string

func (*Config) IndexFieldNames added in v1.0.0

func (m *Config) IndexFieldNames() []string

func (*Config) List added in v1.0.0

func (m *Config) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Config, error)

func (*Config) PrimaryKey added in v1.0.0

func (*Config) PrimaryKey() []string

func (*Config) TableDesc added in v1.0.0

func (*Config) TableDesc() []string

func (*Config) TableName added in v1.0.0

func (*Config) TableName() string

func (*Config) UniqueIndexUIConfigID added in v1.0.0

func (*Config) UniqueIndexUIConfigID() string

func (*Config) UniqueIndexUIRelType added in v1.0.0

func (*Config) UniqueIndexUIRelType() string

func (*Config) UniqueIndexes added in v1.0.0

func (*Config) UniqueIndexes() builder.Indexes

func (*Config) UpdateByConfigID added in v1.0.0

func (m *Config) UpdateByConfigID(db sqlx.DBExecutor, zeros ...string) error

func (*Config) UpdateByConfigIDWithFVs added in v1.0.0

func (m *Config) UpdateByConfigIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Config) UpdateByID added in v1.0.0

func (m *Config) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Config) UpdateByIDWithFVs added in v1.0.0

func (m *Config) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Config) UpdateByRelIDAndType added in v1.0.0

func (m *Config) UpdateByRelIDAndType(db sqlx.DBExecutor, zeros ...string) error

func (*Config) UpdateByRelIDAndTypeWithFVs added in v1.0.0

func (m *Config) UpdateByRelIDAndTypeWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ConfigBase added in v1.0.0

type ConfigBase struct {
	RelID types.SFID       `db:"f_rel_id"           json:"relID"`
	Type  enums.ConfigType `db:"f_type"             json:"type"`
	Value []byte           `db:"f_value,default=''" json:"-"`
}

type ConfigIterator added in v1.0.0

type ConfigIterator struct {
}

func (*ConfigIterator) New added in v1.0.0

func (*ConfigIterator) New() interface{}

func (*ConfigIterator) Resolve added in v1.0.0

func (*ConfigIterator) Resolve(v interface{}) *Config

type ContractLog

ContractLog database model contract log @def primary ID @def unique_index UI_contract_log_id ContractLogID @def unique_index UI_contract_log_uniq ProjectName EventType ChainID ContractAddress Topic0 Topic1 Topic2 Topic3 Uniq

func (*ContractLog) ColBlockCurrent

func (m *ContractLog) ColBlockCurrent() *builder.Column

func (*ContractLog) ColBlockEnd

func (m *ContractLog) ColBlockEnd() *builder.Column

func (*ContractLog) ColBlockStart

func (m *ContractLog) ColBlockStart() *builder.Column

func (*ContractLog) ColChainID

func (m *ContractLog) ColChainID() *builder.Column

func (*ContractLog) ColContractAddress

func (m *ContractLog) ColContractAddress() *builder.Column

func (*ContractLog) ColContractLogID

func (m *ContractLog) ColContractLogID() *builder.Column

func (*ContractLog) ColCreatedAt

func (m *ContractLog) ColCreatedAt() *builder.Column

func (*ContractLog) ColDesc

func (*ContractLog) ColDesc() map[string][]string

func (*ContractLog) ColEventType

func (m *ContractLog) ColEventType() *builder.Column

func (*ContractLog) ColID

func (m *ContractLog) ColID() *builder.Column

func (*ContractLog) ColProjectName

func (m *ContractLog) ColProjectName() *builder.Column

func (*ContractLog) ColRel

func (*ContractLog) ColRel() map[string][]string

func (*ContractLog) ColTopic0

func (m *ContractLog) ColTopic0() *builder.Column

func (*ContractLog) ColTopic1

func (m *ContractLog) ColTopic1() *builder.Column

func (*ContractLog) ColTopic2

func (m *ContractLog) ColTopic2() *builder.Column

func (*ContractLog) ColTopic3

func (m *ContractLog) ColTopic3() *builder.Column

func (*ContractLog) ColUniq

func (m *ContractLog) ColUniq() *builder.Column

func (*ContractLog) ColUpdatedAt

func (m *ContractLog) ColUpdatedAt() *builder.Column

func (*ContractLog) Comments

func (*ContractLog) Comments() map[string]string

func (*ContractLog) CondByValue

func (m *ContractLog) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*ContractLog) Count

func (m *ContractLog) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*ContractLog) Create

func (m *ContractLog) Create(db sqlx.DBExecutor) error

func (*ContractLog) Delete

func (m *ContractLog) Delete(db sqlx.DBExecutor) error

func (*ContractLog) DeleteByContractLogID

func (m *ContractLog) DeleteByContractLogID(db sqlx.DBExecutor) error

func (*ContractLog) DeleteByID

func (m *ContractLog) DeleteByID(db sqlx.DBExecutor) error

func (*ContractLog) DeleteByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniq

func (m *ContractLog) DeleteByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniq(db sqlx.DBExecutor) error

func (*ContractLog) FetchByContractLogID

func (m *ContractLog) FetchByContractLogID(db sqlx.DBExecutor) error

func (*ContractLog) FetchByID

func (m *ContractLog) FetchByID(db sqlx.DBExecutor) error

func (*ContractLog) FetchByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniq

func (m *ContractLog) FetchByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniq(db sqlx.DBExecutor) error

func (*ContractLog) FieldBlockCurrent

func (*ContractLog) FieldBlockCurrent() string

func (*ContractLog) FieldBlockEnd

func (*ContractLog) FieldBlockEnd() string

func (*ContractLog) FieldBlockStart

func (*ContractLog) FieldBlockStart() string

func (*ContractLog) FieldChainID

func (*ContractLog) FieldChainID() string

func (*ContractLog) FieldContractAddress

func (*ContractLog) FieldContractAddress() string

func (*ContractLog) FieldContractLogID

func (*ContractLog) FieldContractLogID() string

func (*ContractLog) FieldCreatedAt

func (*ContractLog) FieldCreatedAt() string

func (*ContractLog) FieldEventType

func (*ContractLog) FieldEventType() string

func (*ContractLog) FieldID

func (*ContractLog) FieldID() string

func (*ContractLog) FieldProjectName

func (*ContractLog) FieldProjectName() string

func (*ContractLog) FieldTopic0

func (*ContractLog) FieldTopic0() string

func (*ContractLog) FieldTopic1

func (*ContractLog) FieldTopic1() string

func (*ContractLog) FieldTopic2

func (*ContractLog) FieldTopic2() string

func (*ContractLog) FieldTopic3

func (*ContractLog) FieldTopic3() string

func (*ContractLog) FieldUniq

func (*ContractLog) FieldUniq() string

func (*ContractLog) FieldUpdatedAt

func (*ContractLog) FieldUpdatedAt() string

func (*ContractLog) IndexFieldNames

func (m *ContractLog) IndexFieldNames() []string

func (*ContractLog) List

func (*ContractLog) PrimaryKey

func (*ContractLog) PrimaryKey() []string

func (*ContractLog) TableDesc

func (*ContractLog) TableDesc() []string

func (*ContractLog) TableName

func (*ContractLog) TableName() string

func (*ContractLog) UniqueIndexUIContractLogID

func (*ContractLog) UniqueIndexUIContractLogID() string

func (*ContractLog) UniqueIndexUIContractLogUniq

func (*ContractLog) UniqueIndexUIContractLogUniq() string

func (*ContractLog) UniqueIndexes

func (*ContractLog) UniqueIndexes() builder.Indexes

func (*ContractLog) UpdateByContractLogID

func (m *ContractLog) UpdateByContractLogID(db sqlx.DBExecutor, zeros ...string) error

func (*ContractLog) UpdateByContractLogIDWithFVs

func (m *ContractLog) UpdateByContractLogIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*ContractLog) UpdateByID

func (m *ContractLog) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*ContractLog) UpdateByIDWithFVs

func (m *ContractLog) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*ContractLog) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniq

func (m *ContractLog) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniq(db sqlx.DBExecutor, zeros ...string) error

func (*ContractLog) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniqWithFVs

func (m *ContractLog) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndTopic0AndTopic1AndTopic2AndTopic3AndUniqWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ContractLogData

type ContractLogData struct {
	ProjectName string     `db:"f_project_name"                 json:"projectName"`
	Uniq        types.SFID `db:"f_uniq,default='0'"             json:"-"`
	ContractLogInfo
}

type ContractLogInfo

type ContractLogInfo struct {
	EventType       string `db:"f_event_type"                   json:"eventType,omitempty"`
	ChainID         uint64 `db:"f_chain_id"                     json:"chainID"`
	ContractAddress string `db:"f_contract_address"             json:"contractAddress"`
	BlockStart      uint64 `db:"f_block_start"                  json:"blockStart"`
	BlockCurrent    uint64 `db:"f_block_current"                json:"blockCurrent,omitempty"`
	BlockEnd        uint64 `db:"f_block_end,default='0'"        json:"blockEnd,omitempty"`
	Topic0          string `db:"f_topic0,default=''"            json:"topic0,omitempty"`
	Topic1          string `db:"f_topic1,default=''"            json:"topic1,omitempty"`
	Topic2          string `db:"f_topic2,default=''"            json:"topic2,omitempty"`
	Topic3          string `db:"f_topic3,default=''"            json:"topic3,omitempty"`
}

type ContractLogIterator

type ContractLogIterator struct {
}

func (*ContractLogIterator) New

func (*ContractLogIterator) New() interface{}

func (*ContractLogIterator) Resolve

func (*ContractLogIterator) Resolve(v interface{}) *ContractLog

type EventInfo

type EventInfo struct {
	RelProject
	RelApplet
	RelPublisher
}

type EventLog

EventLog database model event @def primary ID @def unique_index UI_event_id EventID @def index I_project_id ProjectID @def index I_applet_id ProjectID @def index I_publisher_id PublisherID

func (*EventLog) ColAppletID

func (m *EventLog) ColAppletID() *builder.Column

func (*EventLog) ColCreatedAt

func (m *EventLog) ColCreatedAt() *builder.Column

func (*EventLog) ColDesc

func (*EventLog) ColDesc() map[string][]string

func (*EventLog) ColEventID

func (m *EventLog) ColEventID() *builder.Column

func (*EventLog) ColID

func (m *EventLog) ColID() *builder.Column

func (*EventLog) ColProjectID

func (m *EventLog) ColProjectID() *builder.Column

func (*EventLog) ColPublisherID

func (m *EventLog) ColPublisherID() *builder.Column

func (*EventLog) ColRel

func (*EventLog) ColRel() map[string][]string

func (*EventLog) ColUpdatedAt

func (m *EventLog) ColUpdatedAt() *builder.Column

func (*EventLog) Comments

func (*EventLog) Comments() map[string]string

func (*EventLog) CondByValue

func (m *EventLog) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*EventLog) Count

func (m *EventLog) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*EventLog) Create

func (m *EventLog) Create(db sqlx.DBExecutor) error

func (*EventLog) Delete

func (m *EventLog) Delete(db sqlx.DBExecutor) error

func (*EventLog) DeleteByEventID

func (m *EventLog) DeleteByEventID(db sqlx.DBExecutor) error

func (*EventLog) DeleteByID

func (m *EventLog) DeleteByID(db sqlx.DBExecutor) error

func (*EventLog) FetchByEventID

func (m *EventLog) FetchByEventID(db sqlx.DBExecutor) error

func (*EventLog) FetchByID

func (m *EventLog) FetchByID(db sqlx.DBExecutor) error

func (*EventLog) FieldAppletID

func (*EventLog) FieldAppletID() string

func (*EventLog) FieldCreatedAt

func (*EventLog) FieldCreatedAt() string

func (*EventLog) FieldEventID

func (*EventLog) FieldEventID() string

func (*EventLog) FieldID

func (*EventLog) FieldID() string

func (*EventLog) FieldProjectID

func (*EventLog) FieldProjectID() string

func (*EventLog) FieldPublisherID

func (*EventLog) FieldPublisherID() string

func (*EventLog) FieldUpdatedAt

func (*EventLog) FieldUpdatedAt() string

func (*EventLog) IndexFieldNames

func (m *EventLog) IndexFieldNames() []string

func (*EventLog) Indexes

func (*EventLog) Indexes() builder.Indexes

func (*EventLog) List

func (m *EventLog) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]EventLog, error)

func (*EventLog) PrimaryKey

func (*EventLog) PrimaryKey() []string

func (*EventLog) TableDesc

func (*EventLog) TableDesc() []string

func (*EventLog) TableName

func (*EventLog) TableName() string

func (*EventLog) UniqueIndexUIEventID

func (*EventLog) UniqueIndexUIEventID() string

func (*EventLog) UniqueIndexes

func (*EventLog) UniqueIndexes() builder.Indexes

func (*EventLog) UpdateByEventID

func (m *EventLog) UpdateByEventID(db sqlx.DBExecutor, zeros ...string) error

func (*EventLog) UpdateByEventIDWithFVs

func (m *EventLog) UpdateByEventIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*EventLog) UpdateByID

func (m *EventLog) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*EventLog) UpdateByIDWithFVs

func (m *EventLog) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type EventLogIterator

type EventLogIterator struct {
}

func (*EventLogIterator) New

func (*EventLogIterator) New() interface{}

func (*EventLogIterator) Resolve

func (*EventLogIterator) Resolve(v interface{}) *EventLog

type Instance

Instance database model instance @def primary ID @def unique_index UI_instance_id InstanceID @def unique_index UI_applet_id AppletID

func (*Instance) ColAppletID

func (m *Instance) ColAppletID() *builder.Column

func (*Instance) ColCreatedAt

func (m *Instance) ColCreatedAt() *builder.Column

func (*Instance) ColDeletedAt

func (m *Instance) ColDeletedAt() *builder.Column

func (*Instance) ColDesc

func (*Instance) ColDesc() map[string][]string

func (*Instance) ColID

func (m *Instance) ColID() *builder.Column

func (*Instance) ColInstanceID

func (m *Instance) ColInstanceID() *builder.Column

func (*Instance) ColRel

func (*Instance) ColRel() map[string][]string

func (*Instance) ColState

func (m *Instance) ColState() *builder.Column

func (*Instance) ColUpdatedAt

func (m *Instance) ColUpdatedAt() *builder.Column

func (*Instance) Comments

func (*Instance) Comments() map[string]string

func (*Instance) CondByValue

func (m *Instance) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Instance) Count

func (m *Instance) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Instance) Create

func (m *Instance) Create(db sqlx.DBExecutor) error

func (*Instance) Delete

func (m *Instance) Delete(db sqlx.DBExecutor) error

func (*Instance) DeleteByAppletID added in v1.0.0

func (m *Instance) DeleteByAppletID(db sqlx.DBExecutor) error

func (*Instance) DeleteByID

func (m *Instance) DeleteByID(db sqlx.DBExecutor) error

func (*Instance) DeleteByInstanceID

func (m *Instance) DeleteByInstanceID(db sqlx.DBExecutor) error

func (*Instance) FetchByAppletID added in v1.0.0

func (m *Instance) FetchByAppletID(db sqlx.DBExecutor) error

func (*Instance) FetchByID

func (m *Instance) FetchByID(db sqlx.DBExecutor) error

func (*Instance) FetchByInstanceID

func (m *Instance) FetchByInstanceID(db sqlx.DBExecutor) error

func (*Instance) FieldAppletID

func (*Instance) FieldAppletID() string

func (*Instance) FieldCreatedAt

func (*Instance) FieldCreatedAt() string

func (*Instance) FieldDeletedAt

func (*Instance) FieldDeletedAt() string

func (*Instance) FieldID

func (*Instance) FieldID() string

func (*Instance) FieldInstanceID

func (*Instance) FieldInstanceID() string

func (*Instance) FieldState

func (*Instance) FieldState() string

func (*Instance) FieldUpdatedAt

func (*Instance) FieldUpdatedAt() string

func (*Instance) IndexFieldNames

func (m *Instance) IndexFieldNames() []string

func (*Instance) List

func (m *Instance) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Instance, error)

func (*Instance) PrimaryKey

func (*Instance) PrimaryKey() []string

func (*Instance) SoftDeleteByAppletID added in v1.0.0

func (m *Instance) SoftDeleteByAppletID(db sqlx.DBExecutor) error

func (*Instance) SoftDeleteByID

func (m *Instance) SoftDeleteByID(db sqlx.DBExecutor) error

func (*Instance) SoftDeleteByInstanceID

func (m *Instance) SoftDeleteByInstanceID(db sqlx.DBExecutor) error

func (*Instance) TableDesc

func (*Instance) TableDesc() []string

func (*Instance) TableName

func (*Instance) TableName() string

func (*Instance) UniqueIndexUIAppletID added in v1.0.0

func (*Instance) UniqueIndexUIAppletID() string

func (*Instance) UniqueIndexUIInstanceID

func (*Instance) UniqueIndexUIInstanceID() string

func (*Instance) UniqueIndexes

func (*Instance) UniqueIndexes() builder.Indexes

func (*Instance) UpdateByAppletID added in v1.0.0

func (m *Instance) UpdateByAppletID(db sqlx.DBExecutor, zeros ...string) error

func (*Instance) UpdateByAppletIDWithFVs added in v1.0.0

func (m *Instance) UpdateByAppletIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Instance) UpdateByID

func (m *Instance) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Instance) UpdateByIDWithFVs

func (m *Instance) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Instance) UpdateByInstanceID

func (m *Instance) UpdateByInstanceID(db sqlx.DBExecutor, zeros ...string) error

func (*Instance) UpdateByInstanceIDWithFVs

func (m *Instance) UpdateByInstanceIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type InstanceInfo

type InstanceInfo struct {
	State enums.InstanceState `db:"f_state" json:"state"`
}

type InstanceIterator

type InstanceIterator struct {
}

func (*InstanceIterator) New

func (*InstanceIterator) New() interface{}

func (*InstanceIterator) Resolve

func (*InstanceIterator) Resolve(v interface{}) *Instance

type Meta

type Meta map[string]string

func (Meta) DataType

func (Meta) DataType(driver string) string

func (*Meta) Scan

func (m *Meta) Scan(src interface{}) error

func (Meta) Value

func (m Meta) Value() (driver.Value, error)

type Project

Project schema for project information @def primary ID @def unique_index UI_project_id ProjectID @def unique_index UI_name Name

func (*Project) ColAccountID

func (m *Project) ColAccountID() *builder.Column

func (*Project) ColCreatedAt

func (m *Project) ColCreatedAt() *builder.Column

func (*Project) ColDeletedAt

func (m *Project) ColDeletedAt() *builder.Column

func (*Project) ColDesc

func (*Project) ColDesc() map[string][]string

func (*Project) ColID

func (m *Project) ColID() *builder.Column

func (*Project) ColName

func (m *Project) ColName() *builder.Column

func (*Project) ColProjectID

func (m *Project) ColProjectID() *builder.Column

func (*Project) ColProto

func (m *Project) ColProto() *builder.Column

func (*Project) ColRel

func (*Project) ColRel() map[string][]string

func (*Project) ColUpdatedAt

func (m *Project) ColUpdatedAt() *builder.Column

func (*Project) ColVersion

func (m *Project) ColVersion() *builder.Column

func (*Project) Comments

func (*Project) Comments() map[string]string

func (*Project) CondByValue

func (m *Project) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Project) Count

func (m *Project) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Project) Create

func (m *Project) Create(db sqlx.DBExecutor) error

func (*Project) Delete

func (m *Project) Delete(db sqlx.DBExecutor) error

func (*Project) DeleteByID

func (m *Project) DeleteByID(db sqlx.DBExecutor) error

func (*Project) DeleteByName

func (m *Project) DeleteByName(db sqlx.DBExecutor) error

func (*Project) DeleteByProjectID

func (m *Project) DeleteByProjectID(db sqlx.DBExecutor) error

func (*Project) FetchByID

func (m *Project) FetchByID(db sqlx.DBExecutor) error

func (*Project) FetchByName

func (m *Project) FetchByName(db sqlx.DBExecutor) error

func (*Project) FetchByProjectID

func (m *Project) FetchByProjectID(db sqlx.DBExecutor) error

func (*Project) FieldAccountID

func (*Project) FieldAccountID() string

func (*Project) FieldCreatedAt

func (*Project) FieldCreatedAt() string

func (*Project) FieldDeletedAt

func (*Project) FieldDeletedAt() string

func (*Project) FieldID

func (*Project) FieldID() string

func (*Project) FieldName

func (*Project) FieldName() string

func (*Project) FieldProjectID

func (*Project) FieldProjectID() string

func (*Project) FieldProto

func (*Project) FieldProto() string

func (*Project) FieldUpdatedAt

func (*Project) FieldUpdatedAt() string

func (*Project) FieldVersion

func (*Project) FieldVersion() string

func (*Project) IndexFieldNames

func (m *Project) IndexFieldNames() []string

func (*Project) List

func (m *Project) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Project, error)

func (*Project) PrimaryKey

func (*Project) PrimaryKey() []string

func (*Project) SoftDeleteByID

func (m *Project) SoftDeleteByID(db sqlx.DBExecutor) error

func (*Project) SoftDeleteByName

func (m *Project) SoftDeleteByName(db sqlx.DBExecutor) error

func (*Project) SoftDeleteByProjectID

func (m *Project) SoftDeleteByProjectID(db sqlx.DBExecutor) error

func (*Project) TableDesc

func (*Project) TableDesc() []string

func (*Project) TableName

func (*Project) TableName() string

func (*Project) UniqueIndexUIName

func (*Project) UniqueIndexUIName() string

func (*Project) UniqueIndexUIProjectID

func (*Project) UniqueIndexUIProjectID() string

func (*Project) UniqueIndexes

func (*Project) UniqueIndexes() builder.Indexes

func (*Project) UpdateByID

func (m *Project) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Project) UpdateByIDWithFVs

func (m *Project) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Project) UpdateByName

func (m *Project) UpdateByName(db sqlx.DBExecutor, zeros ...string) error

func (*Project) UpdateByNameWithFVs

func (m *Project) UpdateByNameWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Project) UpdateByProjectID

func (m *Project) UpdateByProjectID(db sqlx.DBExecutor, zeros ...string) error

func (*Project) UpdateByProjectIDWithFVs

func (m *Project) UpdateByProjectIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ProjectBase

type ProjectBase struct {
	Version string         `db:"f_version,default=''" json:"version,omitempty"`  // Version project version
	Proto   enums.Protocol `db:"f_proto,default='0'"  json:"protocol,omitempty"` // Proto project protocol for event publisher
}

type ProjectIterator

type ProjectIterator struct {
}

func (*ProjectIterator) New

func (*ProjectIterator) New() interface{}

func (*ProjectIterator) Resolve

func (*ProjectIterator) Resolve(v interface{}) *Project

type ProjectName

type ProjectName struct {
	Name string `db:"f_name" json:"name"` // Name project name
}

type Publisher

Publisher database model demo @def primary ID @def unique_index UI_publisher_id PublisherID @def unique_index UI_publisher_key Key

func (*Publisher) ColCreatedAt

func (m *Publisher) ColCreatedAt() *builder.Column

func (*Publisher) ColDesc

func (*Publisher) ColDesc() map[string][]string

func (*Publisher) ColID

func (m *Publisher) ColID() *builder.Column

func (*Publisher) ColKey

func (m *Publisher) ColKey() *builder.Column

func (*Publisher) ColName

func (m *Publisher) ColName() *builder.Column

func (*Publisher) ColProjectID

func (m *Publisher) ColProjectID() *builder.Column

func (*Publisher) ColPublisherID

func (m *Publisher) ColPublisherID() *builder.Column

func (*Publisher) ColRel

func (*Publisher) ColRel() map[string][]string

func (*Publisher) ColToken

func (m *Publisher) ColToken() *builder.Column

func (*Publisher) ColUpdatedAt

func (m *Publisher) ColUpdatedAt() *builder.Column

func (*Publisher) Comments

func (*Publisher) Comments() map[string]string

func (*Publisher) CondByValue

func (m *Publisher) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Publisher) Count

func (m *Publisher) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Publisher) Create

func (m *Publisher) Create(db sqlx.DBExecutor) error

func (*Publisher) Delete

func (m *Publisher) Delete(db sqlx.DBExecutor) error

func (*Publisher) DeleteByID

func (m *Publisher) DeleteByID(db sqlx.DBExecutor) error

func (*Publisher) DeleteByKey

func (m *Publisher) DeleteByKey(db sqlx.DBExecutor) error

func (*Publisher) DeleteByPublisherID

func (m *Publisher) DeleteByPublisherID(db sqlx.DBExecutor) error

func (*Publisher) FetchByID

func (m *Publisher) FetchByID(db sqlx.DBExecutor) error

func (*Publisher) FetchByKey

func (m *Publisher) FetchByKey(db sqlx.DBExecutor) error

func (*Publisher) FetchByPublisherID

func (m *Publisher) FetchByPublisherID(db sqlx.DBExecutor) error

func (*Publisher) FieldCreatedAt

func (*Publisher) FieldCreatedAt() string

func (*Publisher) FieldID

func (*Publisher) FieldID() string

func (*Publisher) FieldKey

func (*Publisher) FieldKey() string

func (*Publisher) FieldName

func (*Publisher) FieldName() string

func (*Publisher) FieldProjectID

func (*Publisher) FieldProjectID() string

func (*Publisher) FieldPublisherID

func (*Publisher) FieldPublisherID() string

func (*Publisher) FieldToken

func (*Publisher) FieldToken() string

func (*Publisher) FieldUpdatedAt

func (*Publisher) FieldUpdatedAt() string

func (*Publisher) IndexFieldNames

func (m *Publisher) IndexFieldNames() []string

func (*Publisher) List

func (m *Publisher) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Publisher, error)

func (*Publisher) PrimaryKey

func (*Publisher) PrimaryKey() []string

func (*Publisher) TableDesc

func (*Publisher) TableDesc() []string

func (*Publisher) TableName

func (*Publisher) TableName() string

func (*Publisher) UniqueIndexUIPublisherID

func (*Publisher) UniqueIndexUIPublisherID() string

func (*Publisher) UniqueIndexUIPublisherKey

func (*Publisher) UniqueIndexUIPublisherKey() string

func (*Publisher) UniqueIndexes

func (*Publisher) UniqueIndexes() builder.Indexes

func (*Publisher) UpdateByID

func (m *Publisher) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Publisher) UpdateByIDWithFVs

func (m *Publisher) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Publisher) UpdateByKey

func (m *Publisher) UpdateByKey(db sqlx.DBExecutor, zeros ...string) error

func (*Publisher) UpdateByKeyWithFVs

func (m *Publisher) UpdateByKeyWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Publisher) UpdateByPublisherID

func (m *Publisher) UpdateByPublisherID(db sqlx.DBExecutor, zeros ...string) error

func (*Publisher) UpdateByPublisherIDWithFVs

func (m *Publisher) UpdateByPublisherIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type PublisherInfo

type PublisherInfo struct {
	Name  string `db:"f_name"             json:"name"`
	Key   string `db:"f_key"              json:"key"` // Key the unique identifier for publisher
	Token string `db:"f_token,default=''" json:"token"`
}

type PublisherIterator

type PublisherIterator struct {
}

func (*PublisherIterator) New

func (*PublisherIterator) New() interface{}

func (*PublisherIterator) Resolve

func (*PublisherIterator) Resolve(v interface{}) *Publisher

type RefEventID

type RefEventID struct {
	EventID types.SFID `db:"f_event_id" json:"eventID"`
}

type RelAccount

type RelAccount struct {
	// @rel Account.AccountID
	AccountID types.SFID `db:"f_account_id" json:"accountID"` // AccountID  account id
}

type RelApplet

type RelApplet struct {
	AppletID types.SFID `db:"f_applet_id" json:"appletID"`
}

type RelBlockchain

type RelBlockchain struct {
	ChainID uint64 `db:"f_chain_id"             json:"chainID"`
}

type RelChainHeight

type RelChainHeight struct {
	ChainHeightID types.SFID `db:"f_chain_height_id" json:"chainHeightID"`
}

type RelChainTx

type RelChainTx struct {
	ChainTxID types.SFID `db:"f_chaintx_id" json:"chaintxID"`
}

type RelConfig added in v1.0.0

type RelConfig struct {
	ConfigID types.SFID `db:"f_config_id" json:"configID"`
}

type RelContractLog

type RelContractLog struct {
	ContractLogID types.SFID `db:"f_contractlog_id" json:"contractlogID"`
}

type RelInstance

type RelInstance struct {
	InstanceID types.SFID `db:"f_instance_id" json:"instanceID"`
}

type RelProject

type RelProject struct {
	ProjectID types.SFID `db:"f_project_id" json:"projectID"`
}

type RelPublisher

type RelPublisher struct {
	PublisherID types.SFID `db:"f_publisher_id" json:"publisherID"`
}

type RelResource

type RelResource struct {
	ResourceID types.SFID `db:"f_resource_id" json:"resourceID"`
}

type RelStrategy

type RelStrategy struct {
	StrategyID types.SFID `db:"f_strategy_id" json:"strategyID"`
}

type Resource

Resource database model wasm_resource @def primary ID @def unique_index UI_resource_id ResourceID @def unique_index UI_md5 Md5

func (*Resource) ColCreatedAt

func (m *Resource) ColCreatedAt() *builder.Column

func (*Resource) ColDesc

func (*Resource) ColDesc() map[string][]string

func (*Resource) ColID

func (m *Resource) ColID() *builder.Column

func (*Resource) ColMd5

func (m *Resource) ColMd5() *builder.Column

func (*Resource) ColPath

func (m *Resource) ColPath() *builder.Column

func (*Resource) ColRel

func (*Resource) ColRel() map[string][]string

func (*Resource) ColResourceID

func (m *Resource) ColResourceID() *builder.Column

func (*Resource) ColUpdatedAt

func (m *Resource) ColUpdatedAt() *builder.Column

func (*Resource) Comments

func (*Resource) Comments() map[string]string

func (*Resource) CondByValue

func (m *Resource) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Resource) Count

func (m *Resource) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Resource) Create

func (m *Resource) Create(db sqlx.DBExecutor) error

func (*Resource) Delete

func (m *Resource) Delete(db sqlx.DBExecutor) error

func (*Resource) DeleteByID

func (m *Resource) DeleteByID(db sqlx.DBExecutor) error

func (*Resource) DeleteByMd5

func (m *Resource) DeleteByMd5(db sqlx.DBExecutor) error

func (*Resource) DeleteByResourceID

func (m *Resource) DeleteByResourceID(db sqlx.DBExecutor) error

func (*Resource) FetchByID

func (m *Resource) FetchByID(db sqlx.DBExecutor) error

func (*Resource) FetchByMd5

func (m *Resource) FetchByMd5(db sqlx.DBExecutor) error

func (*Resource) FetchByResourceID

func (m *Resource) FetchByResourceID(db sqlx.DBExecutor) error

func (*Resource) FieldCreatedAt

func (*Resource) FieldCreatedAt() string

func (*Resource) FieldID

func (*Resource) FieldID() string

func (*Resource) FieldMd5

func (*Resource) FieldMd5() string

func (*Resource) FieldPath

func (*Resource) FieldPath() string

func (*Resource) FieldResourceID

func (*Resource) FieldResourceID() string

func (*Resource) FieldUpdatedAt

func (*Resource) FieldUpdatedAt() string

func (*Resource) IndexFieldNames

func (m *Resource) IndexFieldNames() []string

func (*Resource) List

func (m *Resource) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Resource, error)

func (*Resource) PrimaryKey

func (*Resource) PrimaryKey() []string

func (*Resource) TableDesc

func (*Resource) TableDesc() []string

func (*Resource) TableName

func (*Resource) TableName() string

func (*Resource) UniqueIndexUIMd5

func (*Resource) UniqueIndexUIMd5() string

func (*Resource) UniqueIndexUIResourceID

func (*Resource) UniqueIndexUIResourceID() string

func (*Resource) UniqueIndexes

func (*Resource) UniqueIndexes() builder.Indexes

func (*Resource) UpdateByID

func (m *Resource) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Resource) UpdateByIDWithFVs

func (m *Resource) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Resource) UpdateByMd5

func (m *Resource) UpdateByMd5(db sqlx.DBExecutor, zeros ...string) error

func (*Resource) UpdateByMd5WithFVs

func (m *Resource) UpdateByMd5WithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Resource) UpdateByResourceID

func (m *Resource) UpdateByResourceID(db sqlx.DBExecutor, zeros ...string) error

func (*Resource) UpdateByResourceIDWithFVs

func (m *Resource) UpdateByResourceIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ResourceInfo

type ResourceInfo struct {
	Path string `db:"f_path,default=''" json:"path"`
	Md5  string `db:"f_md5"             json:"md5"`
}

type ResourceIterator

type ResourceIterator struct {
}

func (*ResourceIterator) New

func (*ResourceIterator) New() interface{}

func (*ResourceIterator) Resolve

func (*ResourceIterator) Resolve(v interface{}) *Resource

type Strategy

Strategy event route strategy @def primary ID @def unique_index UI_strategy_id StrategyID @def unique_index UI_prj_app_event ProjectID AppletID EventType Handler

func (*Strategy) ColAppletID

func (m *Strategy) ColAppletID() *builder.Column

func (*Strategy) ColCreatedAt

func (m *Strategy) ColCreatedAt() *builder.Column

func (*Strategy) ColDeletedAt

func (m *Strategy) ColDeletedAt() *builder.Column

func (*Strategy) ColDesc

func (*Strategy) ColDesc() map[string][]string

func (*Strategy) ColEventType

func (m *Strategy) ColEventType() *builder.Column

func (*Strategy) ColHandler

func (m *Strategy) ColHandler() *builder.Column

func (*Strategy) ColID

func (m *Strategy) ColID() *builder.Column

func (*Strategy) ColProjectID

func (m *Strategy) ColProjectID() *builder.Column

func (*Strategy) ColRel

func (*Strategy) ColRel() map[string][]string

func (*Strategy) ColStrategyID

func (m *Strategy) ColStrategyID() *builder.Column

func (*Strategy) ColUpdatedAt

func (m *Strategy) ColUpdatedAt() *builder.Column

func (*Strategy) Comments

func (*Strategy) Comments() map[string]string

func (*Strategy) CondByValue

func (m *Strategy) CondByValue(db sqlx.DBExecutor) builder.SqlCondition

func (*Strategy) Count

func (m *Strategy) Count(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) (cnt int64, err error)

func (*Strategy) Create

func (m *Strategy) Create(db sqlx.DBExecutor) error

func (*Strategy) Delete

func (m *Strategy) Delete(db sqlx.DBExecutor) error

func (*Strategy) DeleteByID

func (m *Strategy) DeleteByID(db sqlx.DBExecutor) error

func (*Strategy) DeleteByProjectIDAndAppletIDAndEventTypeAndHandler

func (m *Strategy) DeleteByProjectIDAndAppletIDAndEventTypeAndHandler(db sqlx.DBExecutor) error

func (*Strategy) DeleteByStrategyID

func (m *Strategy) DeleteByStrategyID(db sqlx.DBExecutor) error

func (*Strategy) FetchByID

func (m *Strategy) FetchByID(db sqlx.DBExecutor) error

func (*Strategy) FetchByProjectIDAndAppletIDAndEventTypeAndHandler

func (m *Strategy) FetchByProjectIDAndAppletIDAndEventTypeAndHandler(db sqlx.DBExecutor) error

func (*Strategy) FetchByStrategyID

func (m *Strategy) FetchByStrategyID(db sqlx.DBExecutor) error

func (*Strategy) FieldAppletID

func (*Strategy) FieldAppletID() string

func (*Strategy) FieldCreatedAt

func (*Strategy) FieldCreatedAt() string

func (*Strategy) FieldDeletedAt

func (*Strategy) FieldDeletedAt() string

func (*Strategy) FieldEventType

func (*Strategy) FieldEventType() string

func (*Strategy) FieldHandler

func (*Strategy) FieldHandler() string

func (*Strategy) FieldID

func (*Strategy) FieldID() string

func (*Strategy) FieldProjectID

func (*Strategy) FieldProjectID() string

func (*Strategy) FieldStrategyID

func (*Strategy) FieldStrategyID() string

func (*Strategy) FieldUpdatedAt

func (*Strategy) FieldUpdatedAt() string

func (*Strategy) IndexFieldNames

func (m *Strategy) IndexFieldNames() []string

func (*Strategy) List

func (m *Strategy) List(db sqlx.DBExecutor, cond builder.SqlCondition, adds ...builder.Addition) ([]Strategy, error)

func (*Strategy) PrimaryKey

func (*Strategy) PrimaryKey() []string

func (*Strategy) SoftDeleteByID

func (m *Strategy) SoftDeleteByID(db sqlx.DBExecutor) error

func (*Strategy) SoftDeleteByProjectIDAndAppletIDAndEventTypeAndHandler

func (m *Strategy) SoftDeleteByProjectIDAndAppletIDAndEventTypeAndHandler(db sqlx.DBExecutor) error

func (*Strategy) SoftDeleteByStrategyID

func (m *Strategy) SoftDeleteByStrategyID(db sqlx.DBExecutor) error

func (*Strategy) TableDesc

func (*Strategy) TableDesc() []string

func (*Strategy) TableName

func (*Strategy) TableName() string

func (*Strategy) UniqueIndexUIPrjAppEvent

func (*Strategy) UniqueIndexUIPrjAppEvent() string

func (*Strategy) UniqueIndexUIStrategyID

func (*Strategy) UniqueIndexUIStrategyID() string

func (*Strategy) UniqueIndexes

func (*Strategy) UniqueIndexes() builder.Indexes

func (*Strategy) UpdateByID

func (m *Strategy) UpdateByID(db sqlx.DBExecutor, zeros ...string) error

func (*Strategy) UpdateByIDWithFVs

func (m *Strategy) UpdateByIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Strategy) UpdateByProjectIDAndAppletIDAndEventTypeAndHandler

func (m *Strategy) UpdateByProjectIDAndAppletIDAndEventTypeAndHandler(db sqlx.DBExecutor, zeros ...string) error

func (*Strategy) UpdateByProjectIDAndAppletIDAndEventTypeAndHandlerWithFVs

func (m *Strategy) UpdateByProjectIDAndAppletIDAndEventTypeAndHandlerWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Strategy) UpdateByStrategyID

func (m *Strategy) UpdateByStrategyID(db sqlx.DBExecutor, zeros ...string) error

func (*Strategy) UpdateByStrategyIDWithFVs

func (m *Strategy) UpdateByStrategyIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type StrategyInfo

type StrategyInfo struct {
	EventType string `db:"f_event_type" json:"eventType"`
	Handler   string `db:"f_handler"    json:"handler"`
}

type StrategyIterator

type StrategyIterator struct {
}

func (*StrategyIterator) New

func (*StrategyIterator) New() interface{}

func (*StrategyIterator) Resolve

func (*StrategyIterator) Resolve(v interface{}) *Strategy

type Text

type Text string

func (Text) Datatype

func (Text) Datatype(driver string) string

Jump to

Keyboard shortcuts

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