models

package
v1.6.5-rc55 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountIdentityMetaKey_EthAddress_Nonce string = "nonce"
)

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 AccessKeyTable *builder.Table
View Source
var AccountIdentityTable *builder.Table
View Source
var AccountPasswordTable *builder.Table
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 CronJobTable *builder.Table
View Source
var DefaultStrategyInfo = StrategyInfo{
	EventType:         enums.EVENTTYPEDEFAULT,
	Handler:           "start",
	AutoCollectMetric: datatypes.FALSE,
}
View Source
var EventLogTable *builder.Table
View Source
var EventTable *builder.Table
View Source
var InstanceTable *builder.Table
View Source
var OperatorTable *builder.Table
View Source
var ProjectOperatorTable *builder.Table
View Source
var ProjectTable *builder.Table
View Source
var PublisherTable *builder.Table
View Source
var ResourceOwnershipTable *builder.Table
View Source
var ResourceTable *builder.Table
View Source
var StrategyTable *builder.Table
View Source
var TrafficLimitTable *builder.Table
View Source
var TransactionTable *builder.Table
View Source
var WasmLogTable *builder.Table

Functions

func BatchCreateEvents

func BatchCreateEvents(d sqlx.DBExecutor, vs ...*Event) error

func BatchCreateWasmLogs

func BatchCreateWasmLogs(db sqlx.DBExecutor, vs ...*WasmLog) error

Types

type AccessKey added in v1.4.0

AccessKey api access key @def primary ID @def unique_index ui_name AccountID Name @def unique_index ui_rand Rand

func (*AccessKey) ColAccountID added in v1.4.0

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

func (*AccessKey) ColCreatedAt added in v1.4.0

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

func (*AccessKey) ColDeletedAt added in v1.4.0

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

func (*AccessKey) ColDesc added in v1.4.0

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

func (*AccessKey) ColDescription added in v1.4.0

func (m *AccessKey) ColDescription() *builder.Column

func (*AccessKey) ColExpiredAt added in v1.4.0

func (m *AccessKey) ColExpiredAt() *builder.Column

func (*AccessKey) ColID added in v1.4.0

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

func (*AccessKey) ColIdentityID added in v1.4.0

func (m *AccessKey) ColIdentityID() *builder.Column

func (*AccessKey) ColIdentityType added in v1.4.0

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

func (*AccessKey) ColLastUsed added in v1.4.0

func (m *AccessKey) ColLastUsed() *builder.Column

func (*AccessKey) ColName added in v1.4.0

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

func (*AccessKey) ColPrivileges added in v1.4.6

func (m *AccessKey) ColPrivileges() *builder.Column

func (*AccessKey) ColRand added in v1.4.0

func (m *AccessKey) ColRand() *builder.Column

func (*AccessKey) ColRel added in v1.4.0

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

func (*AccessKey) ColUpdatedAt added in v1.4.0

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

func (*AccessKey) Comments added in v1.4.0

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

func (*AccessKey) CondByValue added in v1.4.0

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

func (*AccessKey) Count added in v1.4.0

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

func (*AccessKey) Create added in v1.4.0

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

func (*AccessKey) Delete added in v1.4.0

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

func (*AccessKey) DeleteByAccountIDAndName added in v1.4.0

func (m *AccessKey) DeleteByAccountIDAndName(db sqlx.DBExecutor) error

func (*AccessKey) DeleteByID added in v1.4.0

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

func (*AccessKey) DeleteByRand added in v1.4.0

func (m *AccessKey) DeleteByRand(db sqlx.DBExecutor) error

func (*AccessKey) FetchByAccountIDAndName added in v1.4.0

func (m *AccessKey) FetchByAccountIDAndName(db sqlx.DBExecutor) error

func (*AccessKey) FetchByID added in v1.4.0

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

func (*AccessKey) FetchByRand added in v1.4.0

func (m *AccessKey) FetchByRand(db sqlx.DBExecutor) error

func (*AccessKey) FieldAccountID added in v1.4.0

func (*AccessKey) FieldAccountID() string

func (*AccessKey) FieldCreatedAt added in v1.4.0

func (*AccessKey) FieldCreatedAt() string

func (*AccessKey) FieldDeletedAt added in v1.4.0

func (*AccessKey) FieldDeletedAt() string

func (*AccessKey) FieldDescription added in v1.4.0

func (*AccessKey) FieldDescription() string

func (*AccessKey) FieldExpiredAt added in v1.4.0

func (*AccessKey) FieldExpiredAt() string

func (*AccessKey) FieldID added in v1.4.0

func (*AccessKey) FieldID() string

func (*AccessKey) FieldIdentityID added in v1.4.0

func (*AccessKey) FieldIdentityID() string

func (*AccessKey) FieldIdentityType added in v1.4.0

func (*AccessKey) FieldIdentityType() string

func (*AccessKey) FieldLastUsed added in v1.4.0

func (*AccessKey) FieldLastUsed() string

func (*AccessKey) FieldName added in v1.4.0

func (*AccessKey) FieldName() string

func (*AccessKey) FieldPrivileges added in v1.4.6

func (*AccessKey) FieldPrivileges() string

func (*AccessKey) FieldRand added in v1.4.0

func (*AccessKey) FieldRand() string

func (*AccessKey) FieldUpdatedAt added in v1.4.0

func (*AccessKey) FieldUpdatedAt() string

func (*AccessKey) IndexFieldNames added in v1.4.0

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

func (*AccessKey) List added in v1.4.0

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

func (*AccessKey) PrimaryKey added in v1.4.0

func (*AccessKey) PrimaryKey() []string

func (*AccessKey) SoftDeleteByAccountIDAndName added in v1.4.0

func (m *AccessKey) SoftDeleteByAccountIDAndName(db sqlx.DBExecutor) error

func (*AccessKey) SoftDeleteByID added in v1.4.0

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

func (*AccessKey) SoftDeleteByRand added in v1.4.0

func (m *AccessKey) SoftDeleteByRand(db sqlx.DBExecutor) error

func (*AccessKey) TableDesc added in v1.4.0

func (*AccessKey) TableDesc() []string

func (*AccessKey) TableName added in v1.4.0

func (*AccessKey) TableName() string

func (*AccessKey) UniqueIndexUIName added in v1.4.0

func (*AccessKey) UniqueIndexUIName() string

func (*AccessKey) UniqueIndexUIRand added in v1.4.0

func (*AccessKey) UniqueIndexUIRand() string

func (*AccessKey) UniqueIndexes added in v1.4.0

func (*AccessKey) UniqueIndexes() builder.Indexes

func (*AccessKey) UpdateByAccountIDAndName added in v1.4.0

func (m *AccessKey) UpdateByAccountIDAndName(db sqlx.DBExecutor, zeros ...string) error

func (*AccessKey) UpdateByAccountIDAndNameWithFVs added in v1.4.0

func (m *AccessKey) UpdateByAccountIDAndNameWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*AccessKey) UpdateByID added in v1.4.0

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

func (*AccessKey) UpdateByIDWithFVs added in v1.4.0

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

func (*AccessKey) UpdateByRand added in v1.4.0

func (m *AccessKey) UpdateByRand(db sqlx.DBExecutor, zeros ...string) error

func (*AccessKey) UpdateByRandWithFVs added in v1.4.0

func (m *AccessKey) UpdateByRandWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type AccessKeyInfo added in v1.4.0

type AccessKeyInfo struct {
	IdentityID   types.SFID                  `db:"f_identity_id"`
	IdentityType enums.AccessKeyIdentityType `db:"f_identity_type"`
	Name         string                      `db:"f_name"`
	Rand         string                      `db:"f_rand"`
	ExpiredAt    types.Timestamp             `db:"f_expired_at,default='0'"`
	LastUsed     types.Timestamp             `db:"f_last_used,default='0'"`
	Description  string                      `db:"f_desc,default=''"`
	Privileges   GroupAccessPrivileges       `db:"f_privileges,default='[]'"`
}

type AccessKeyIterator added in v1.4.0

type AccessKeyIterator struct {
}

func (*AccessKeyIterator) New added in v1.4.0

func (*AccessKeyIterator) New() interface{}

func (*AccessKeyIterator) Resolve added in v1.4.0

func (*AccessKeyIterator) Resolve(v interface{}) *AccessKey

type Account

Account w3bstream account @def primary ID @def unique_index UI_account_id AccountID

func (*Account) ColAccountID

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

func (*Account) ColAvatar added in v1.1.0

func (m *Account) ColAvatar() *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) ColID added in v1.1.0

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

func (*Account) ColMeta

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

func (*Account) ColOperatorPrivateKey added in v1.1.0

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

func (*Account) ColRel

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

func (*Account) ColRole added in v1.1.0

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

func (*Account) ColState

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

func (*Account) ColUpdatedAt

func (m *Account) ColUpdatedAt() *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) DeleteByID added in v1.1.0

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

func (*Account) FetchByAccountID

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

func (*Account) FetchByID added in v1.1.0

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

func (*Account) FieldAccountID

func (*Account) FieldAccountID() string

func (*Account) FieldAvatar added in v1.1.0

func (*Account) FieldAvatar() string

func (*Account) FieldCreatedAt

func (*Account) FieldCreatedAt() string

func (*Account) FieldDeletedAt

func (*Account) FieldDeletedAt() string

func (*Account) FieldID added in v1.1.0

func (*Account) FieldID() string

func (*Account) FieldMeta

func (*Account) FieldMeta() string

func (*Account) FieldOperatorPrivateKey added in v1.1.0

func (*Account) FieldOperatorPrivateKey() string

func (*Account) FieldRole added in v1.1.0

func (*Account) FieldRole() string

func (*Account) FieldState

func (*Account) FieldState() string

func (*Account) FieldUpdatedAt

func (*Account) FieldUpdatedAt() 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) SoftDeleteByID added in v1.1.0

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

func (*Account) TableDesc

func (*Account) TableDesc() []string

func (*Account) TableName

func (*Account) TableName() string

func (*Account) UniqueIndexUIAccountID added in v1.1.0

func (*Account) UniqueIndexUIAccountID() 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) UpdateByID added in v1.1.0

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

func (*Account) UpdateByIDWithFVs added in v1.1.0

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

type AccountIdentity added in v1.1.0

AccountIdentity account identity @def primary ID @def unique_index ui_account_identity AccountID Type @def unique_index ui_identity_id Type IdentityID @def index i_identity_id IdentityID @def index i_source Source

func (*AccountIdentity) ColAccountID added in v1.1.0

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

func (*AccountIdentity) ColCreatedAt added in v1.1.0

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

func (*AccountIdentity) ColDeletedAt added in v1.1.0

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

func (*AccountIdentity) ColDesc added in v1.1.0

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

func (*AccountIdentity) ColID added in v1.1.0

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

func (*AccountIdentity) ColIdentityID added in v1.1.0

func (m *AccountIdentity) ColIdentityID() *builder.Column

func (*AccountIdentity) ColMeta added in v1.1.0

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

func (*AccountIdentity) ColRel added in v1.1.0

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

func (*AccountIdentity) ColSource added in v1.1.0

func (m *AccountIdentity) ColSource() *builder.Column

func (*AccountIdentity) ColType added in v1.1.0

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

func (*AccountIdentity) ColUpdatedAt added in v1.1.0

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

func (*AccountIdentity) Comments added in v1.1.0

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

func (*AccountIdentity) CondByValue added in v1.1.0

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

func (*AccountIdentity) Count added in v1.1.0

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

func (*AccountIdentity) Create added in v1.1.0

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

func (*AccountIdentity) Delete added in v1.1.0

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

func (*AccountIdentity) DeleteByAccountIDAndType added in v1.1.0

func (m *AccountIdentity) DeleteByAccountIDAndType(db sqlx.DBExecutor) error

func (*AccountIdentity) DeleteByID added in v1.1.0

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

func (*AccountIdentity) DeleteByTypeAndIdentityID added in v1.1.0

func (m *AccountIdentity) DeleteByTypeAndIdentityID(db sqlx.DBExecutor) error

func (*AccountIdentity) FetchByAccountIDAndType added in v1.1.0

func (m *AccountIdentity) FetchByAccountIDAndType(db sqlx.DBExecutor) error

func (*AccountIdentity) FetchByID added in v1.1.0

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

func (*AccountIdentity) FetchByTypeAndIdentityID added in v1.1.0

func (m *AccountIdentity) FetchByTypeAndIdentityID(db sqlx.DBExecutor) error

func (*AccountIdentity) FieldAccountID added in v1.1.0

func (*AccountIdentity) FieldAccountID() string

func (*AccountIdentity) FieldCreatedAt added in v1.1.0

func (*AccountIdentity) FieldCreatedAt() string

func (*AccountIdentity) FieldDeletedAt added in v1.1.0

func (*AccountIdentity) FieldDeletedAt() string

func (*AccountIdentity) FieldID added in v1.1.0

func (*AccountIdentity) FieldID() string

func (*AccountIdentity) FieldIdentityID added in v1.1.0

func (*AccountIdentity) FieldIdentityID() string

func (*AccountIdentity) FieldMeta added in v1.1.0

func (*AccountIdentity) FieldMeta() string

func (*AccountIdentity) FieldSource added in v1.1.0

func (*AccountIdentity) FieldSource() string

func (*AccountIdentity) FieldType added in v1.1.0

func (*AccountIdentity) FieldType() string

func (*AccountIdentity) FieldUpdatedAt added in v1.1.0

func (*AccountIdentity) FieldUpdatedAt() string

func (*AccountIdentity) IndexFieldNames added in v1.1.0

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

func (*AccountIdentity) Indexes added in v1.1.0

func (*AccountIdentity) Indexes() builder.Indexes

func (*AccountIdentity) List added in v1.1.0

func (*AccountIdentity) PrimaryKey added in v1.1.0

func (*AccountIdentity) PrimaryKey() []string

func (*AccountIdentity) SoftDeleteByAccountIDAndType added in v1.1.0

func (m *AccountIdentity) SoftDeleteByAccountIDAndType(db sqlx.DBExecutor) error

func (*AccountIdentity) SoftDeleteByID added in v1.1.0

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

func (*AccountIdentity) SoftDeleteByTypeAndIdentityID added in v1.1.0

func (m *AccountIdentity) SoftDeleteByTypeAndIdentityID(db sqlx.DBExecutor) error

func (*AccountIdentity) TableDesc added in v1.1.0

func (*AccountIdentity) TableDesc() []string

func (*AccountIdentity) TableName added in v1.1.0

func (*AccountIdentity) TableName() string

func (*AccountIdentity) UniqueIndexUIAccountIdentity added in v1.1.0

func (*AccountIdentity) UniqueIndexUIAccountIdentity() string

func (*AccountIdentity) UniqueIndexUIIdentityID added in v1.1.0

func (*AccountIdentity) UniqueIndexUIIdentityID() string

func (*AccountIdentity) UniqueIndexes added in v1.1.0

func (*AccountIdentity) UniqueIndexes() builder.Indexes

func (*AccountIdentity) UpdateByAccountIDAndType added in v1.1.0

func (m *AccountIdentity) UpdateByAccountIDAndType(db sqlx.DBExecutor, zeros ...string) error

func (*AccountIdentity) UpdateByAccountIDAndTypeWithFVs added in v1.1.0

func (m *AccountIdentity) UpdateByAccountIDAndTypeWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*AccountIdentity) UpdateByID added in v1.1.0

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

func (*AccountIdentity) UpdateByIDWithFVs added in v1.1.0

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

func (*AccountIdentity) UpdateByTypeAndIdentityID added in v1.1.0

func (m *AccountIdentity) UpdateByTypeAndIdentityID(db sqlx.DBExecutor, zeros ...string) error

func (*AccountIdentity) UpdateByTypeAndIdentityIDWithFVs added in v1.1.0

func (m *AccountIdentity) UpdateByTypeAndIdentityIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type AccountIdentityInfo added in v1.1.0

type AccountIdentityInfo struct {
	Type       enums.AccountIdentityType `db:"f_type"            json:"type"`
	IdentityID string                    `db:"f_identity_id"     json:"identityID"`
	Source     enums.AccountSource       `db:"f_source"          json:"source"`
	Meta       Meta                      `db:"f_meta,default=''" json:"meta"`
}

type AccountIdentityIterator added in v1.1.0

type AccountIdentityIterator struct {
}

func (*AccountIdentityIterator) New added in v1.1.0

func (*AccountIdentityIterator) New() interface{}

func (*AccountIdentityIterator) Resolve added in v1.1.0

func (*AccountIdentityIterator) Resolve(v interface{}) *AccountIdentity

type AccountInfo

type AccountInfo struct {
	Role               enums.AccountRole  `db:"f_role,default=2"    json:"role"`
	State              enums.AccountState `db:"f_state,default='1'" json:"state"`
	Avatar             string             `db:"f_avatar,default=''" json:"avatar,omitempty"`
	Meta               Meta               `db:"f_meta,default='{}'" json:"meta,omitempty"`
	OperatorPrivateKey string             `db:"f_prvkey,default=''" json:"-"` // Deprecated: pls use pkg/modules/operator
}

type AccountIterator

type AccountIterator struct {
}

func (*AccountIterator) New

func (*AccountIterator) New() interface{}

func (*AccountIterator) Resolve

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

type AccountPassword

AccountPassword account password @def primary PasswordID @def unique_index ui_account_password AccountID Type DeletedAt

func (*AccountPassword) ColAccountID added in v1.1.0

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

func (*AccountPassword) ColCreatedAt added in v1.1.0

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

func (*AccountPassword) ColDeletedAt added in v1.1.0

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

func (*AccountPassword) ColDesc added in v1.1.0

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

func (*AccountPassword) ColPassword added in v1.1.0

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

func (*AccountPassword) ColPasswordID added in v1.1.0

func (m *AccountPassword) ColPasswordID() *builder.Column

func (*AccountPassword) ColRel added in v1.1.0

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

func (*AccountPassword) ColRemark added in v1.1.0

func (m *AccountPassword) ColRemark() *builder.Column

func (*AccountPassword) ColScope added in v1.1.0

func (m *AccountPassword) ColScope() *builder.Column

func (*AccountPassword) ColType added in v1.1.0

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

func (*AccountPassword) ColUpdatedAt added in v1.1.0

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

func (*AccountPassword) Comments added in v1.1.0

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

func (*AccountPassword) CondByValue added in v1.1.0

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

func (*AccountPassword) Count added in v1.1.0

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

func (*AccountPassword) Create added in v1.1.0

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

func (*AccountPassword) Delete added in v1.1.0

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

func (*AccountPassword) DeleteByAccountIDAndType added in v1.1.0

func (m *AccountPassword) DeleteByAccountIDAndType(db sqlx.DBExecutor) error

func (*AccountPassword) DeleteByPasswordID added in v1.1.0

func (m *AccountPassword) DeleteByPasswordID(db sqlx.DBExecutor) error

func (*AccountPassword) FetchByAccountIDAndType added in v1.1.0

func (m *AccountPassword) FetchByAccountIDAndType(db sqlx.DBExecutor) error

func (*AccountPassword) FetchByPasswordID added in v1.1.0

func (m *AccountPassword) FetchByPasswordID(db sqlx.DBExecutor) error

func (*AccountPassword) FieldAccountID added in v1.1.0

func (*AccountPassword) FieldAccountID() string

func (*AccountPassword) FieldCreatedAt added in v1.1.0

func (*AccountPassword) FieldCreatedAt() string

func (*AccountPassword) FieldDeletedAt added in v1.1.0

func (*AccountPassword) FieldDeletedAt() string

func (*AccountPassword) FieldPassword added in v1.1.0

func (*AccountPassword) FieldPassword() string

func (*AccountPassword) FieldPasswordID added in v1.1.0

func (*AccountPassword) FieldPasswordID() string

func (*AccountPassword) FieldRemark added in v1.1.0

func (*AccountPassword) FieldRemark() string

func (*AccountPassword) FieldScope added in v1.1.0

func (*AccountPassword) FieldScope() string

func (*AccountPassword) FieldType added in v1.1.0

func (*AccountPassword) FieldType() string

func (*AccountPassword) FieldUpdatedAt added in v1.1.0

func (*AccountPassword) FieldUpdatedAt() string

func (*AccountPassword) IndexFieldNames added in v1.1.0

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

func (*AccountPassword) List added in v1.1.0

func (*AccountPassword) PrimaryKey added in v1.1.0

func (*AccountPassword) PrimaryKey() []string

func (*AccountPassword) SoftDeleteByAccountIDAndType added in v1.1.0

func (m *AccountPassword) SoftDeleteByAccountIDAndType(db sqlx.DBExecutor) error

func (*AccountPassword) SoftDeleteByPasswordID added in v1.1.0

func (m *AccountPassword) SoftDeleteByPasswordID(db sqlx.DBExecutor) error

func (*AccountPassword) TableDesc added in v1.1.0

func (*AccountPassword) TableDesc() []string

func (*AccountPassword) TableName added in v1.1.0

func (*AccountPassword) TableName() string

func (*AccountPassword) UniqueIndexUIAccountPassword added in v1.1.0

func (*AccountPassword) UniqueIndexUIAccountPassword() string

func (*AccountPassword) UniqueIndexes added in v1.1.0

func (*AccountPassword) UniqueIndexes() builder.Indexes

func (*AccountPassword) UpdateByAccountIDAndType added in v1.1.0

func (m *AccountPassword) UpdateByAccountIDAndType(db sqlx.DBExecutor, zeros ...string) error

func (*AccountPassword) UpdateByAccountIDAndTypeWithFVs added in v1.1.0

func (m *AccountPassword) UpdateByAccountIDAndTypeWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*AccountPassword) UpdateByPasswordID added in v1.1.0

func (m *AccountPassword) UpdateByPasswordID(db sqlx.DBExecutor, zeros ...string) error

func (*AccountPassword) UpdateByPasswordIDWithFVs added in v1.1.0

func (m *AccountPassword) UpdateByPasswordIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type AccountPasswordData added in v1.1.0

type AccountPasswordData struct {
	Type     enums.PasswordType `db:"f_type"              json:"type,omitempty"`   // Type password type
	Password string             `db:"f_password,size=32"  json:"password"`         // Password md5(md5(${account_id}-${password}))
	Scope    string             `db:"f_scope,default=''"  json:"scope,omitempty"`  // Scope comma separated
	Remark   string             `db:"f_remark,default=''" json:"remark,omitempty"` // Remark
}

type AccountPasswordIterator added in v1.1.0

type AccountPasswordIterator struct {
}

func (*AccountPasswordIterator) New added in v1.1.0

func (*AccountPasswordIterator) New() interface{}

func (*AccountPasswordIterator) Resolve added in v1.1.0

func (*AccountPasswordIterator) Resolve(v interface{}) *AccountPassword

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) 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) 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"`
}

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 ChainName Height Uniq

func (*ChainHeight) ColChainHeightID

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

func (*ChainHeight) ColChainID

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

func (*ChainHeight) ColChainName added in v1.6.0

func (m *ChainHeight) ColChainName() *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) ColPaused added in v1.2.5

func (m *ChainHeight) ColPaused() *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) DeleteByProjectNameAndEventTypeAndChainIDAndChainNameAndHeightAndUniq added in v1.6.0

func (m *ChainHeight) DeleteByProjectNameAndEventTypeAndChainIDAndChainNameAndHeightAndUniq(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) FetchByProjectNameAndEventTypeAndChainIDAndChainNameAndHeightAndUniq added in v1.6.0

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

func (*ChainHeight) FieldChainHeightID

func (*ChainHeight) FieldChainHeightID() string

func (*ChainHeight) FieldChainID

func (*ChainHeight) FieldChainID() string

func (*ChainHeight) FieldChainName added in v1.6.0

func (*ChainHeight) FieldChainName() 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) FieldPaused added in v1.2.5

func (*ChainHeight) FieldPaused() 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) UpdateByProjectNameAndEventTypeAndChainIDAndChainNameAndHeightAndUniq added in v1.6.0

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

func (*ChainHeight) UpdateByProjectNameAndEventTypeAndChainIDAndChainNameAndHeightAndUniqWithFVs added in v1.6.0

func (m *ChainHeight) UpdateByProjectNameAndEventTypeAndChainIDAndChainNameAndHeightAndUniqWithFVs(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,default='MONITOR_DEFAULT'"`
	ChainID   uint64          `db:"f_chain_id,default='0'"         json:"chainID,omitempty"`
	ChainName enums.ChainName `db:"f_chain_name,default=''"        json:"chainName,omitempty"`
	Height    uint64          `db:"f_height"                       json:"height"`
	Paused    datatypes.Bool  `db:"f_paused,default='2'"           json:"paused,omitempty,default='false'"`
}

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) ColPaused added in v1.2.5

func (m *ChainTx) ColPaused() *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) FieldPaused added in v1.2.5

func (*ChainTx) FieldPaused() 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,default='MONITOR_DEFAULT'"`
	ChainID   uint64         `db:"f_chain_id"                     json:"chainID"`
	TxAddress string         `db:"f_tx_address"                   json:"txAddress"`
	Paused    datatypes.Bool `db:"f_paused,default='2'"           json:"paused,omitempty,default='false'"`
}

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 BlockStart BlockEnd 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) ColPaused added in v1.2.5

func (m *ContractLog) ColPaused() *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) DeleteByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniq added in v1.1.0

func (m *ContractLog) DeleteByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniq(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) FetchByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniq added in v1.1.0

func (m *ContractLog) FetchByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniq(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) FieldPaused added in v1.2.5

func (*ContractLog) FieldPaused() 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) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniq added in v1.1.0

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

func (*ContractLog) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniqWithFVs added in v1.1.0

func (m *ContractLog) UpdateByProjectNameAndEventTypeAndChainIDAndContractAddressAndBlockStartAndBlockEndAndTopic0AndTopic1AndTopic2AndTopic3AndUniqWithFVs(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,default='MONITOR_DEFAULT'"`
	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"`
	Paused          datatypes.Bool `db:"f_paused,default='2'"           json:"paused,omitempty,default='false'"`
}

type ContractLogIterator

type ContractLogIterator struct {
}

func (*ContractLogIterator) New

func (*ContractLogIterator) New() interface{}

func (*ContractLogIterator) Resolve

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

type CronJob added in v1.1.0

CronJob schema for cron job information @def primary ID @def unique_index UI_cron_job_id CronJobID @def unique_index UI_cron ProjectID CronExpressions EventType

func (*CronJob) ColCreatedAt added in v1.1.0

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

func (*CronJob) ColCronExpressions added in v1.1.0

func (m *CronJob) ColCronExpressions() *builder.Column

func (*CronJob) ColCronJobID added in v1.1.0

func (m *CronJob) ColCronJobID() *builder.Column

func (*CronJob) ColDeletedAt added in v1.1.0

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

func (*CronJob) ColDesc added in v1.1.0

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

func (*CronJob) ColEventType added in v1.1.0

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

func (*CronJob) ColID added in v1.1.0

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

func (*CronJob) ColProjectID added in v1.1.0

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

func (*CronJob) ColRel added in v1.1.0

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

func (*CronJob) ColUpdatedAt added in v1.1.0

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

func (*CronJob) Comments added in v1.1.0

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

func (*CronJob) CondByValue added in v1.1.0

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

func (*CronJob) Count added in v1.1.0

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

func (*CronJob) Create added in v1.1.0

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

func (*CronJob) Delete added in v1.1.0

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

func (*CronJob) DeleteByCronJobID added in v1.1.0

func (m *CronJob) DeleteByCronJobID(db sqlx.DBExecutor) error

func (*CronJob) DeleteByID added in v1.1.0

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

func (*CronJob) DeleteByProjectIDAndCronExpressionsAndEventType added in v1.1.0

func (m *CronJob) DeleteByProjectIDAndCronExpressionsAndEventType(db sqlx.DBExecutor) error

func (*CronJob) FetchByCronJobID added in v1.1.0

func (m *CronJob) FetchByCronJobID(db sqlx.DBExecutor) error

func (*CronJob) FetchByID added in v1.1.0

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

func (*CronJob) FetchByProjectIDAndCronExpressionsAndEventType added in v1.1.0

func (m *CronJob) FetchByProjectIDAndCronExpressionsAndEventType(db sqlx.DBExecutor) error

func (*CronJob) FieldCreatedAt added in v1.1.0

func (*CronJob) FieldCreatedAt() string

func (*CronJob) FieldCronExpressions added in v1.1.0

func (*CronJob) FieldCronExpressions() string

func (*CronJob) FieldCronJobID added in v1.1.0

func (*CronJob) FieldCronJobID() string

func (*CronJob) FieldDeletedAt added in v1.1.0

func (*CronJob) FieldDeletedAt() string

func (*CronJob) FieldEventType added in v1.1.0

func (*CronJob) FieldEventType() string

func (*CronJob) FieldID added in v1.1.0

func (*CronJob) FieldID() string

func (*CronJob) FieldProjectID added in v1.1.0

func (*CronJob) FieldProjectID() string

func (*CronJob) FieldUpdatedAt added in v1.1.0

func (*CronJob) FieldUpdatedAt() string

func (*CronJob) IndexFieldNames added in v1.1.0

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

func (*CronJob) List added in v1.1.0

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

func (*CronJob) PrimaryKey added in v1.1.0

func (*CronJob) PrimaryKey() []string

func (*CronJob) SoftDeleteByCronJobID added in v1.1.0

func (m *CronJob) SoftDeleteByCronJobID(db sqlx.DBExecutor) error

func (*CronJob) SoftDeleteByID added in v1.1.0

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

func (*CronJob) SoftDeleteByProjectIDAndCronExpressionsAndEventType added in v1.1.0

func (m *CronJob) SoftDeleteByProjectIDAndCronExpressionsAndEventType(db sqlx.DBExecutor) error

func (*CronJob) TableDesc added in v1.1.0

func (*CronJob) TableDesc() []string

func (*CronJob) TableName added in v1.1.0

func (*CronJob) TableName() string

func (*CronJob) UniqueIndexUICron added in v1.1.0

func (*CronJob) UniqueIndexUICron() string

func (*CronJob) UniqueIndexUICronJobID added in v1.1.0

func (*CronJob) UniqueIndexUICronJobID() string

func (*CronJob) UniqueIndexes added in v1.1.0

func (*CronJob) UniqueIndexes() builder.Indexes

func (*CronJob) UpdateByCronJobID added in v1.1.0

func (m *CronJob) UpdateByCronJobID(db sqlx.DBExecutor, zeros ...string) error

func (*CronJob) UpdateByCronJobIDWithFVs added in v1.1.0

func (m *CronJob) UpdateByCronJobIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*CronJob) UpdateByID added in v1.1.0

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

func (*CronJob) UpdateByIDWithFVs added in v1.1.0

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

func (*CronJob) UpdateByProjectIDAndCronExpressionsAndEventType added in v1.1.0

func (m *CronJob) UpdateByProjectIDAndCronExpressionsAndEventType(db sqlx.DBExecutor, zeros ...string) error

func (*CronJob) UpdateByProjectIDAndCronExpressionsAndEventTypeWithFVs added in v1.1.0

func (m *CronJob) UpdateByProjectIDAndCronExpressionsAndEventTypeWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type CronJobInfo added in v1.1.0

type CronJobInfo struct {
	CronExpressions string `db:"f_cron_expressions"    json:"cronExpressions"`
	EventType       string `db:"f_event_type"          json:"eventType,omitempty"`
}

type CronJobIterator added in v1.1.0

type CronJobIterator struct {
}

func (*CronJobIterator) New added in v1.1.0

func (*CronJobIterator) New() interface{}

func (*CronJobIterator) Resolve added in v1.1.0

func (*CronJobIterator) Resolve(v interface{}) *CronJob

type Event

type Event struct {
	datatypes.PrimaryID
	EventContext
}

EventLog database model for event context @def primary ID @def index I_event_id EventID @def index I_event_type EventType @def index I_project_id ProjectID @def index I_publisher_id PublisherID @def index I_instance_id InstanceID @def index I_handler Handler @def index I_result_code ResultCode @def index I_published_at PublishedAt @def index I_received_at ReceivedAt @def index I_handled_at HandledAt @def index I_completed_at CompletedAt @def index I_stage Stage

func BatchFetchEvents

func BatchFetchEvents(d sqlx.DBExecutor, adds ...builder.Addition) (results []*Event, err error)

func BatchFetchLastUnhandledEvents

func BatchFetchLastUnhandledEvents(ctx context.Context, d sqlx.DBExecutor, batch int64, prj types.SFID) ([]*Event, error)

func (*Event) ColAccountID

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

func (*Event) ColAutoCollect

func (m *Event) ColAutoCollect() *builder.Column

func (*Event) ColCompletedAt

func (m *Event) ColCompletedAt() *builder.Column

func (*Event) ColDesc

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

func (*Event) ColError

func (m *Event) ColError() *builder.Column

func (*Event) ColEventID

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

func (*Event) ColEventType

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

func (*Event) ColFrom

func (m *Event) ColFrom() *builder.Column

func (*Event) ColHandledAt

func (m *Event) ColHandledAt() *builder.Column

func (*Event) ColHandler

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

func (*Event) ColID

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

func (*Event) ColIndex

func (m *Event) ColIndex() *builder.Column

func (*Event) ColInput

func (m *Event) ColInput() *builder.Column

func (*Event) ColInstanceID

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

func (*Event) ColProjectID

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

func (*Event) ColProjectName

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

func (*Event) ColPublishedAt

func (m *Event) ColPublishedAt() *builder.Column

func (*Event) ColPublisherID

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

func (*Event) ColPublisherKey

func (m *Event) ColPublisherKey() *builder.Column

func (*Event) ColReceivedAt

func (m *Event) ColReceivedAt() *builder.Column

func (*Event) ColRel

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

func (*Event) ColResultCode

func (m *Event) ColResultCode() *builder.Column

func (*Event) ColStage

func (m *Event) ColStage() *builder.Column

func (*Event) ColTotal

func (m *Event) ColTotal() *builder.Column

func (*Event) Comments

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

func (*Event) CondByValue

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

func (*Event) Count

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

func (*Event) Create

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

func (*Event) Delete

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

func (*Event) DeleteByID

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

func (*Event) FetchByID

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

func (*Event) FieldAccountID

func (*Event) FieldAccountID() string

func (*Event) FieldAutoCollect

func (*Event) FieldAutoCollect() string

func (*Event) FieldCompletedAt

func (*Event) FieldCompletedAt() string

func (*Event) FieldError

func (*Event) FieldError() string

func (*Event) FieldEventID

func (*Event) FieldEventID() string

func (*Event) FieldEventType

func (*Event) FieldEventType() string

func (*Event) FieldFrom

func (*Event) FieldFrom() string

func (*Event) FieldHandledAt

func (*Event) FieldHandledAt() string

func (*Event) FieldHandler

func (*Event) FieldHandler() string

func (*Event) FieldID

func (*Event) FieldID() string

func (*Event) FieldIndex

func (*Event) FieldIndex() string

func (*Event) FieldInput

func (*Event) FieldInput() string

func (*Event) FieldInstanceID

func (*Event) FieldInstanceID() string

func (*Event) FieldProjectID

func (*Event) FieldProjectID() string

func (*Event) FieldProjectName

func (*Event) FieldProjectName() string

func (*Event) FieldPublishedAt

func (*Event) FieldPublishedAt() string

func (*Event) FieldPublisherID

func (*Event) FieldPublisherID() string

func (*Event) FieldPublisherKey

func (*Event) FieldPublisherKey() string

func (*Event) FieldReceivedAt

func (*Event) FieldReceivedAt() string

func (*Event) FieldResultCode

func (*Event) FieldResultCode() string

func (*Event) FieldStage

func (*Event) FieldStage() string

func (*Event) FieldTotal

func (*Event) FieldTotal() string

func (*Event) IndexFieldNames

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

func (*Event) Indexes

func (*Event) Indexes() builder.Indexes

func (*Event) List

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

func (*Event) PrimaryKey

func (*Event) PrimaryKey() []string

func (*Event) TableDesc

func (*Event) TableDesc() []string

func (*Event) TableName

func (*Event) TableName() string

func (*Event) UpdateByID

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

func (*Event) UpdateByIDWithFVs

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

type EventContext

type EventContext struct {
	// Stage event handle stage: RECEIVED, HANDLED and COMPLETED
	Stage enums.EventStage `db:"f_stage" json:"stage"`
	// From channel type: MQTT HTTP
	From enums.EventSource `db:"f_from" json:"from"`
	// AccountID account ID
	AccountID types.SFID `db:"f_account_id" json:"accountID"`
	// ProjectID project ID
	ProjectID types.SFID `db:"f_project_id" json:"projectID"`
	// ProjectName project name
	ProjectName string `db:"f_project_name" json:"projectName"`
	// PublisherID publisher ID
	PublisherID types.SFID `db:"f_publisher_id" json:"publisherID"`
	// PublisherKey publisher key
	PublisherKey string `db:"f_publisher_key" json:"publisherKey"`
	// EventID event ID
	EventID string `db:"f_event_id" json:"eventID"`
	// Index strategy index for different handler
	Index int `db:"f_index,default='0'" json:"index"`
	// Total strategy total
	Total int `db:"f_total,default='1'" json:"total"`
	// EventType event type
	EventType string `db:"f_event_type" json:"eventType"`
	// InstanceID instance ID
	InstanceID types.SFID `db:"f_instance_id" json:"instanceID"`
	// Handler wasm exported handling func
	Handler string `db:"f_handler" json:"handler"`
	// Input event payload
	Input []byte `db:"f_input" json:"input"`
	// ResultCode wasm handle result code
	ResultCode int32 `db:"f_result_code,default='0'" json:"resultCode"`
	// Error wasm handle error message
	Error string `db:"f_error,default=''"   json:"error"`
	// PublishedAt event published timestamp(epoch milliseconds) from request
	PublishedAt int64 `db:"f_published_at" json:"publishedAt"`
	// ReceivedAt event received timestamp(epoch milliseconds)
	ReceivedAt int64 `db:"f_received_at"  json:"receivedAt"`
	// HandledAt event handled timestamp(epoch milliseconds)
	HandledAt int64 `db:"f_handled_at,default='0'"   json:"handledAt"`
	// CompletedAt event completed timestamp(epoch milliseconds)
	CompletedAt int64 `db:"f_completed_at,default='0'" json:"completedAt"`
	// AutoCollect if do geo collection
	AutoCollect datatypes.Bool `db:"f_auto_collection,default='2'" json:"autoCollection"`
}

type EventInfo

type EventInfo struct {
	EventID string `db:"f_event_id" json:"eventID"`
	RelProject
	RelPublisher
	// PublishedAt the timestamp when device publish event
	PublishedAt int64 `db:"f_published_at" json:"publishedAt"`
	// ReceivedAt the timestamp when event received by us
	ReceivedAt int64 `db:"f_received_at" json:"receivedAt"`
	// RespondedAt the timestamp when event handled and send response
	RespondedAt int64 `db:"f_responded_at" json:"respondedAt"`
}

type EventIterator

type EventIterator struct {
}

func (*EventIterator) New

func (*EventIterator) New() interface{}

func (*EventIterator) Resolve

func (*EventIterator) Resolve(v interface{}) *Event

type EventLog

EventLog database model event @def primary ID @def index I_event_id EventID @def index I_project_id ProjectID @def index I_publisher_id PublisherID @def index I_created_at CreatedAt

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) ColPublishedAt added in v1.5.6

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

func (*EventLog) ColPublisherID

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

func (*EventLog) ColReceivedAt added in v1.5.6

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

func (*EventLog) ColRel

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

func (*EventLog) ColRespondedAt added in v1.5.6

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

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) DeleteByID

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

func (*EventLog) FetchByID

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

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) FieldPublishedAt added in v1.5.6

func (*EventLog) FieldPublishedAt() string

func (*EventLog) FieldPublisherID

func (*EventLog) FieldPublisherID() string

func (*EventLog) FieldReceivedAt added in v1.5.6

func (*EventLog) FieldReceivedAt() string

func (*EventLog) FieldRespondedAt added in v1.5.6

func (*EventLog) FieldRespondedAt() 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) 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 GroupAccessPrivileges added in v1.4.6

type GroupAccessPrivileges map[string]enums.AccessPermission

GroupAccessPrivileges mapping group name and access permission

func (GroupAccessPrivileges) DataType added in v1.4.6

func (GroupAccessPrivileges) DataType(driver string) string

func (*GroupAccessPrivileges) Scan added in v1.4.6

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

func (GroupAccessPrivileges) Value added in v1.4.6

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

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) 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) 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) 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 Operator added in v1.1.0

Operator schema for blockchain operate information @def primary ID @def unique_index UI_operator_id OperatorID @def unique_index UI_name AccountID Name

func (*Operator) ColAccountID added in v1.1.0

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

func (*Operator) ColCreatedAt added in v1.1.0

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

func (*Operator) ColDeletedAt added in v1.1.0

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

func (*Operator) ColDesc added in v1.1.0

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

func (*Operator) ColID added in v1.1.0

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

func (*Operator) ColName added in v1.1.0

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

func (*Operator) ColOperatorID added in v1.1.0

func (m *Operator) ColOperatorID() *builder.Column

func (*Operator) ColPaymasterKey added in v1.5.9

func (m *Operator) ColPaymasterKey() *builder.Column

func (*Operator) ColPrivateKey added in v1.1.0

func (m *Operator) ColPrivateKey() *builder.Column

func (*Operator) ColRel added in v1.1.0

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

func (*Operator) ColType added in v1.5.3

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

func (*Operator) ColUpdatedAt added in v1.1.0

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

func (*Operator) Comments added in v1.1.0

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

func (*Operator) CondByValue added in v1.1.0

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

func (*Operator) Count added in v1.1.0

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

func (*Operator) Create added in v1.1.0

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

func (*Operator) Delete added in v1.1.0

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

func (*Operator) DeleteByAccountIDAndName added in v1.1.0

func (m *Operator) DeleteByAccountIDAndName(db sqlx.DBExecutor) error

func (*Operator) DeleteByID added in v1.1.0

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

func (*Operator) DeleteByOperatorID added in v1.1.0

func (m *Operator) DeleteByOperatorID(db sqlx.DBExecutor) error

func (*Operator) FetchByAccountIDAndName added in v1.1.0

func (m *Operator) FetchByAccountIDAndName(db sqlx.DBExecutor) error

func (*Operator) FetchByID added in v1.1.0

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

func (*Operator) FetchByOperatorID added in v1.1.0

func (m *Operator) FetchByOperatorID(db sqlx.DBExecutor) error

func (*Operator) FieldAccountID added in v1.1.0

func (*Operator) FieldAccountID() string

func (*Operator) FieldCreatedAt added in v1.1.0

func (*Operator) FieldCreatedAt() string

func (*Operator) FieldDeletedAt added in v1.1.0

func (*Operator) FieldDeletedAt() string

func (*Operator) FieldID added in v1.1.0

func (*Operator) FieldID() string

func (*Operator) FieldName added in v1.1.0

func (*Operator) FieldName() string

func (*Operator) FieldOperatorID added in v1.1.0

func (*Operator) FieldOperatorID() string

func (*Operator) FieldPaymasterKey added in v1.5.9

func (*Operator) FieldPaymasterKey() string

func (*Operator) FieldPrivateKey added in v1.1.0

func (*Operator) FieldPrivateKey() string

func (*Operator) FieldType added in v1.5.3

func (*Operator) FieldType() string

func (*Operator) FieldUpdatedAt added in v1.1.0

func (*Operator) FieldUpdatedAt() string

func (*Operator) IndexFieldNames added in v1.1.0

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

func (*Operator) List added in v1.1.0

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

func (*Operator) PrimaryKey added in v1.1.0

func (*Operator) PrimaryKey() []string

func (*Operator) SoftDeleteByAccountIDAndName added in v1.1.0

func (m *Operator) SoftDeleteByAccountIDAndName(db sqlx.DBExecutor) error

func (*Operator) SoftDeleteByID added in v1.1.0

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

func (*Operator) SoftDeleteByOperatorID added in v1.1.0

func (m *Operator) SoftDeleteByOperatorID(db sqlx.DBExecutor) error

func (*Operator) TableDesc added in v1.1.0

func (*Operator) TableDesc() []string

func (*Operator) TableName added in v1.1.0

func (*Operator) TableName() string

func (*Operator) UniqueIndexUIName added in v1.1.0

func (*Operator) UniqueIndexUIName() string

func (*Operator) UniqueIndexUIOperatorID added in v1.1.0

func (*Operator) UniqueIndexUIOperatorID() string

func (*Operator) UniqueIndexes added in v1.1.0

func (*Operator) UniqueIndexes() builder.Indexes

func (*Operator) UpdateByAccountIDAndName added in v1.1.0

func (m *Operator) UpdateByAccountIDAndName(db sqlx.DBExecutor, zeros ...string) error

func (*Operator) UpdateByAccountIDAndNameWithFVs added in v1.1.0

func (m *Operator) UpdateByAccountIDAndNameWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*Operator) UpdateByID added in v1.1.0

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

func (*Operator) UpdateByIDWithFVs added in v1.1.0

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

func (*Operator) UpdateByOperatorID added in v1.1.0

func (m *Operator) UpdateByOperatorID(db sqlx.DBExecutor, zeros ...string) error

func (*Operator) UpdateByOperatorIDWithFVs added in v1.1.0

func (m *Operator) UpdateByOperatorIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type OperatorInfo added in v1.1.0

type OperatorInfo struct {
	PrivateKey   string                `db:"f_private_key,size=1024"        json:"-"`
	PaymasterKey string                `db:"f_paymaster_key,default=''"     json:"-"`
	Name         string                `db:"f_name"                         json:"name"`
	Type         enums.OperatorKeyType `db:"f_type,default='1'"             json:"type,omitempty,default='1'"`
}

type OperatorIterator added in v1.1.0

type OperatorIterator struct {
}

func (*OperatorIterator) New added in v1.1.0

func (*OperatorIterator) New() interface{}

func (*OperatorIterator) Resolve added in v1.1.0

func (*OperatorIterator) Resolve(v interface{}) *Operator

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) ColDescription added in v1.1.0

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

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) ColPublic added in v1.5.9

func (m *Project) ColPublic() *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) DatabaseName added in v1.1.0

func (m Project) DatabaseName() string

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) FieldDescription added in v1.1.0

func (*Project) FieldDescription() 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) FieldPublic added in v1.5.9

func (*Project) FieldPublic() 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) Privileges added in v1.2.2

func (m Project) Privileges() (usename, passwd 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 {
	Public      datatypes.Bool `db:"f_public,default='2'" json:"public,omitempty"`   // Public is true, project receive event from anonymous publisher
	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
	Description string         `db:"f_description,default=''"    json:"description,omitempty"`
}

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" validate:"@projectName"` // Name project name
}

type ProjectOperator added in v1.2.2

ProjectOperator schema for project operator relationship @def primary ID @def unique_index UI_project_id ProjectID

func (*ProjectOperator) ColCreatedAt added in v1.2.2

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

func (*ProjectOperator) ColDeletedAt added in v1.2.2

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

func (*ProjectOperator) ColDesc added in v1.2.2

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

func (*ProjectOperator) ColID added in v1.2.2

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

func (*ProjectOperator) ColOperatorID added in v1.2.2

func (m *ProjectOperator) ColOperatorID() *builder.Column

func (*ProjectOperator) ColProjectID added in v1.2.2

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

func (*ProjectOperator) ColRel added in v1.2.2

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

func (*ProjectOperator) ColUpdatedAt added in v1.2.2

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

func (*ProjectOperator) Comments added in v1.2.2

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

func (*ProjectOperator) CondByValue added in v1.2.2

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

func (*ProjectOperator) Count added in v1.2.2

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

func (*ProjectOperator) Create added in v1.2.2

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

func (*ProjectOperator) Delete added in v1.2.2

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

func (*ProjectOperator) DeleteByID added in v1.2.2

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

func (*ProjectOperator) DeleteByProjectID added in v1.2.2

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

func (*ProjectOperator) FetchByID added in v1.2.2

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

func (*ProjectOperator) FetchByProjectID added in v1.2.2

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

func (*ProjectOperator) FieldCreatedAt added in v1.2.2

func (*ProjectOperator) FieldCreatedAt() string

func (*ProjectOperator) FieldDeletedAt added in v1.2.2

func (*ProjectOperator) FieldDeletedAt() string

func (*ProjectOperator) FieldID added in v1.2.2

func (*ProjectOperator) FieldID() string

func (*ProjectOperator) FieldOperatorID added in v1.2.2

func (*ProjectOperator) FieldOperatorID() string

func (*ProjectOperator) FieldProjectID added in v1.2.2

func (*ProjectOperator) FieldProjectID() string

func (*ProjectOperator) FieldUpdatedAt added in v1.2.2

func (*ProjectOperator) FieldUpdatedAt() string

func (*ProjectOperator) IndexFieldNames added in v1.2.2

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

func (*ProjectOperator) List added in v1.2.2

func (*ProjectOperator) PrimaryKey added in v1.2.2

func (*ProjectOperator) PrimaryKey() []string

func (*ProjectOperator) SoftDeleteByID added in v1.2.2

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

func (*ProjectOperator) SoftDeleteByProjectID added in v1.2.2

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

func (*ProjectOperator) TableDesc added in v1.2.2

func (*ProjectOperator) TableDesc() []string

func (*ProjectOperator) TableName added in v1.2.2

func (*ProjectOperator) TableName() string

func (*ProjectOperator) UniqueIndexUIProjectID added in v1.2.2

func (*ProjectOperator) UniqueIndexUIProjectID() string

func (*ProjectOperator) UniqueIndexes added in v1.2.2

func (*ProjectOperator) UniqueIndexes() builder.Indexes

func (*ProjectOperator) UpdateByID added in v1.2.2

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

func (*ProjectOperator) UpdateByIDWithFVs added in v1.2.2

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

func (*ProjectOperator) UpdateByProjectID added in v1.2.2

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

func (*ProjectOperator) UpdateByProjectIDWithFVs added in v1.2.2

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

type ProjectOperatorIterator added in v1.2.2

type ProjectOperatorIterator struct {
}

func (*ProjectOperatorIterator) New added in v1.2.2

func (*ProjectOperatorIterator) New() interface{}

func (*ProjectOperatorIterator) Resolve added in v1.2.2

func (*ProjectOperatorIterator) Resolve(v interface{}) *ProjectOperator

type Publisher

Publisher database model demo @def primary ID @def unique_index UI_publisher_id PublisherID @def unique_index UI_project_id_publisher_key ProjectID 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) DeleteByProjectIDAndKey added in v1.1.0

func (m *Publisher) DeleteByProjectIDAndKey(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) FetchByProjectIDAndKey added in v1.1.0

func (m *Publisher) FetchByProjectIDAndKey(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) UniqueIndexUIProjectIDPublisherKey added in v1.1.0

func (*Publisher) UniqueIndexUIProjectIDPublisherKey() string

func (*Publisher) UniqueIndexUIPublisherID

func (*Publisher) UniqueIndexUIPublisherID() 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) UpdateByProjectIDAndKey added in v1.1.0

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

func (*Publisher) UpdateByProjectIDAndKeyWithFVs added in v1.1.0

func (m *Publisher) UpdateByProjectIDAndKeyWithFVs(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 RelAccount

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

type RelAccountPassword added in v1.1.0

type RelAccountPassword struct {
	PasswordID types.SFID `db:"f_password_id" json:"passwordID"`
}

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 RelCronJob added in v1.1.0

type RelCronJob struct {
	CronJobID types.SFID `db:"f_cron_job_id" json:"cronJobID"`
}

type RelInstance

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

type RelOperator added in v1.1.0

type RelOperator struct {
	OperatorID types.SFID `db:"f_operator_id" json:"operatorID"`
}

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 RelTrafficLimit added in v1.2.5

type RelTrafficLimit struct {
	TrafficLimitID types.SFID `db:"f_traffic_limit_id" json:"trafficLimitID"`
}

type RelTransaction added in v1.5.9

type RelTransaction struct {
	TransactionID types.SFID `db:"f_transaction_id" json:"transactionID"`
}

type RelWasmLog added in v1.1.0

type RelWasmLog struct {
	WasmLogID types.SFID `db:"f_wasm_log_id" json:"wasmLogID"`
}

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"` // Path rel 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 ResourceOwnerInfo added in v1.1.0

type ResourceOwnerInfo struct {
	UploadedAt types.Timestamp `db:"f_uploaded_at"           json:"uploadedAt"`
	ExpireAt   types.Timestamp `db:"f_expire_at,default='0'" json:"expireAt"`
	Filename   string          `db:"f_filename,default=''"   json:"filename"`
	Comment    string          `db:"f_comment,default=''"    json:"comment"`
}

type ResourceOwnership added in v1.1.0

ResourceOwnership database model resource ownership @def primary ID @def unique_index UI_resource_account ResourceID AccountID

func (*ResourceOwnership) ColAccountID added in v1.1.0

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

func (*ResourceOwnership) ColComment added in v1.1.0

func (m *ResourceOwnership) ColComment() *builder.Column

func (*ResourceOwnership) ColCreatedAt added in v1.1.0

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

func (*ResourceOwnership) ColDesc added in v1.1.0

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

func (*ResourceOwnership) ColExpireAt added in v1.1.0

func (m *ResourceOwnership) ColExpireAt() *builder.Column

func (*ResourceOwnership) ColFilename added in v1.1.0

func (m *ResourceOwnership) ColFilename() *builder.Column

func (*ResourceOwnership) ColID added in v1.1.0

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

func (*ResourceOwnership) ColRel added in v1.1.0

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

func (*ResourceOwnership) ColResourceID added in v1.1.0

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

func (*ResourceOwnership) ColUpdatedAt added in v1.1.0

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

func (*ResourceOwnership) ColUploadedAt added in v1.1.0

func (m *ResourceOwnership) ColUploadedAt() *builder.Column

func (*ResourceOwnership) Comments added in v1.1.0

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

func (*ResourceOwnership) CondByValue added in v1.1.0

func (*ResourceOwnership) Count added in v1.1.0

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

func (*ResourceOwnership) Create added in v1.1.0

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

func (*ResourceOwnership) Delete added in v1.1.0

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

func (*ResourceOwnership) DeleteByID added in v1.1.0

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

func (*ResourceOwnership) DeleteByResourceIDAndAccountID added in v1.1.0

func (m *ResourceOwnership) DeleteByResourceIDAndAccountID(db sqlx.DBExecutor) error

func (*ResourceOwnership) FetchByID added in v1.1.0

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

func (*ResourceOwnership) FetchByResourceIDAndAccountID added in v1.1.0

func (m *ResourceOwnership) FetchByResourceIDAndAccountID(db sqlx.DBExecutor) error

func (*ResourceOwnership) FieldAccountID added in v1.1.0

func (*ResourceOwnership) FieldAccountID() string

func (*ResourceOwnership) FieldComment added in v1.1.0

func (*ResourceOwnership) FieldComment() string

func (*ResourceOwnership) FieldCreatedAt added in v1.1.0

func (*ResourceOwnership) FieldCreatedAt() string

func (*ResourceOwnership) FieldExpireAt added in v1.1.0

func (*ResourceOwnership) FieldExpireAt() string

func (*ResourceOwnership) FieldFilename added in v1.1.0

func (*ResourceOwnership) FieldFilename() string

func (*ResourceOwnership) FieldID added in v1.1.0

func (*ResourceOwnership) FieldID() string

func (*ResourceOwnership) FieldResourceID added in v1.1.0

func (*ResourceOwnership) FieldResourceID() string

func (*ResourceOwnership) FieldUpdatedAt added in v1.1.0

func (*ResourceOwnership) FieldUpdatedAt() string

func (*ResourceOwnership) FieldUploadedAt added in v1.1.0

func (*ResourceOwnership) FieldUploadedAt() string

func (*ResourceOwnership) IndexFieldNames added in v1.1.0

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

func (*ResourceOwnership) List added in v1.1.0

func (*ResourceOwnership) PrimaryKey added in v1.1.0

func (*ResourceOwnership) PrimaryKey() []string

func (*ResourceOwnership) TableDesc added in v1.1.0

func (*ResourceOwnership) TableDesc() []string

func (*ResourceOwnership) TableName added in v1.1.0

func (*ResourceOwnership) TableName() string

func (*ResourceOwnership) UniqueIndexUIResourceAccount added in v1.1.0

func (*ResourceOwnership) UniqueIndexUIResourceAccount() string

func (*ResourceOwnership) UniqueIndexes added in v1.1.0

func (*ResourceOwnership) UniqueIndexes() builder.Indexes

func (*ResourceOwnership) UpdateByID added in v1.1.0

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

func (*ResourceOwnership) UpdateByIDWithFVs added in v1.1.0

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

func (*ResourceOwnership) UpdateByResourceIDAndAccountID added in v1.1.0

func (m *ResourceOwnership) UpdateByResourceIDAndAccountID(db sqlx.DBExecutor, zeros ...string) error

func (*ResourceOwnership) UpdateByResourceIDAndAccountIDWithFVs added in v1.1.0

func (m *ResourceOwnership) UpdateByResourceIDAndAccountIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type ResourceOwnershipIterator added in v1.1.0

type ResourceOwnershipIterator struct {
}

func (*ResourceOwnershipIterator) New added in v1.1.0

func (*ResourceOwnershipIterator) New() interface{}

func (*ResourceOwnershipIterator) Resolve added in v1.1.0

func (*ResourceOwnershipIterator) Resolve(v interface{}) *ResourceOwnership

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

func (*Strategy) ColAppletID

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

func (*Strategy) ColAutoCollectMetric added in v1.5.4

func (m *Strategy) ColAutoCollectMetric() *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) DeleteByProjectIDAndAppletIDAndEventType added in v1.1.0

func (m *Strategy) DeleteByProjectIDAndAppletIDAndEventType(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) FetchByProjectIDAndAppletIDAndEventType added in v1.1.0

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

func (*Strategy) FetchByStrategyID

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

func (*Strategy) FieldAppletID

func (*Strategy) FieldAppletID() string

func (*Strategy) FieldAutoCollectMetric added in v1.5.4

func (*Strategy) FieldAutoCollectMetric() 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) SoftDeleteByProjectIDAndAppletIDAndEventType added in v1.1.0

func (m *Strategy) SoftDeleteByProjectIDAndAppletIDAndEventType(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) UpdateByProjectIDAndAppletIDAndEventType added in v1.1.0

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

func (*Strategy) UpdateByProjectIDAndAppletIDAndEventTypeWithFVs added in v1.1.0

func (m *Strategy) UpdateByProjectIDAndAppletIDAndEventTypeWithFVs(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 user defined event type
	EventType string `db:"f_event_type" json:"eventType"`
	// Handler wasm handler fn name
	Handler string `db:"f_handler" json:"handler"`
	// AutoCollectMetric if allow host collect event data for metering
	AutoCollectMetric datatypes.Bool `db:"f_auto_collect_metric,default='2'" json:"autoCollectMetric,omitempty"`
}

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

type TrafficLimit added in v1.2.5

TrafficLimit traffic limit for each project @def primary ID @def unique_index UI_traffic_limit_id TrafficLimitID @def unique_index UI_prj_api_type ProjectID ApiType

func (*TrafficLimit) CacheKey

func (m *TrafficLimit) CacheKey() string

func (*TrafficLimit) ColApiType added in v1.2.5

func (m *TrafficLimit) ColApiType() *builder.Column

func (*TrafficLimit) ColCreatedAt added in v1.2.5

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

func (*TrafficLimit) ColDeletedAt added in v1.2.5

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

func (*TrafficLimit) ColDesc added in v1.2.5

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

func (*TrafficLimit) ColDuration added in v1.2.5

func (m *TrafficLimit) ColDuration() *builder.Column

func (*TrafficLimit) ColID added in v1.2.5

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

func (*TrafficLimit) ColProjectID added in v1.2.5

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

func (*TrafficLimit) ColRel added in v1.2.5

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

func (*TrafficLimit) ColStartAt added in v1.3.1

func (m *TrafficLimit) ColStartAt() *builder.Column

func (*TrafficLimit) ColThreshold added in v1.2.5

func (m *TrafficLimit) ColThreshold() *builder.Column

func (*TrafficLimit) ColTrafficLimitID added in v1.2.5

func (m *TrafficLimit) ColTrafficLimitID() *builder.Column

func (*TrafficLimit) ColUpdatedAt added in v1.2.5

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

func (*TrafficLimit) Comments added in v1.2.5

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

func (*TrafficLimit) CondByValue added in v1.2.5

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

func (*TrafficLimit) Count added in v1.2.5

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

func (*TrafficLimit) Create added in v1.2.5

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

func (*TrafficLimit) Delete added in v1.2.5

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

func (*TrafficLimit) DeleteByID added in v1.2.5

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

func (*TrafficLimit) DeleteByProjectIDAndApiType added in v1.2.5

func (m *TrafficLimit) DeleteByProjectIDAndApiType(db sqlx.DBExecutor) error

func (*TrafficLimit) DeleteByTrafficLimitID added in v1.2.5

func (m *TrafficLimit) DeleteByTrafficLimitID(db sqlx.DBExecutor) error

func (*TrafficLimit) FetchByID added in v1.2.5

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

func (*TrafficLimit) FetchByProjectIDAndApiType added in v1.2.5

func (m *TrafficLimit) FetchByProjectIDAndApiType(db sqlx.DBExecutor) error

func (*TrafficLimit) FetchByTrafficLimitID added in v1.2.5

func (m *TrafficLimit) FetchByTrafficLimitID(db sqlx.DBExecutor) error

func (*TrafficLimit) FieldApiType added in v1.2.5

func (*TrafficLimit) FieldApiType() string

func (*TrafficLimit) FieldCreatedAt added in v1.2.5

func (*TrafficLimit) FieldCreatedAt() string

func (*TrafficLimit) FieldDeletedAt added in v1.2.5

func (*TrafficLimit) FieldDeletedAt() string

func (*TrafficLimit) FieldDuration added in v1.2.5

func (*TrafficLimit) FieldDuration() string

func (*TrafficLimit) FieldID added in v1.2.5

func (*TrafficLimit) FieldID() string

func (*TrafficLimit) FieldProjectID added in v1.2.5

func (*TrafficLimit) FieldProjectID() string

func (*TrafficLimit) FieldStartAt added in v1.3.1

func (*TrafficLimit) FieldStartAt() string

func (*TrafficLimit) FieldThreshold added in v1.2.5

func (*TrafficLimit) FieldThreshold() string

func (*TrafficLimit) FieldTrafficLimitID added in v1.2.5

func (*TrafficLimit) FieldTrafficLimitID() string

func (*TrafficLimit) FieldUpdatedAt added in v1.2.5

func (*TrafficLimit) FieldUpdatedAt() string

func (*TrafficLimit) IndexFieldNames added in v1.2.5

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

func (*TrafficLimit) List added in v1.2.5

func (*TrafficLimit) PrimaryKey added in v1.2.5

func (*TrafficLimit) PrimaryKey() []string

func (*TrafficLimit) SoftDeleteByID added in v1.2.5

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

func (*TrafficLimit) SoftDeleteByProjectIDAndApiType added in v1.2.5

func (m *TrafficLimit) SoftDeleteByProjectIDAndApiType(db sqlx.DBExecutor) error

func (*TrafficLimit) SoftDeleteByTrafficLimitID added in v1.2.5

func (m *TrafficLimit) SoftDeleteByTrafficLimitID(db sqlx.DBExecutor) error

func (*TrafficLimit) TableDesc added in v1.2.5

func (*TrafficLimit) TableDesc() []string

func (*TrafficLimit) TableName added in v1.2.5

func (*TrafficLimit) TableName() string

func (*TrafficLimit) UniqueIndexUIPrjAPIType added in v1.2.5

func (*TrafficLimit) UniqueIndexUIPrjAPIType() string

func (*TrafficLimit) UniqueIndexUITrafficLimitID added in v1.2.5

func (*TrafficLimit) UniqueIndexUITrafficLimitID() string

func (*TrafficLimit) UniqueIndexes added in v1.2.5

func (*TrafficLimit) UniqueIndexes() builder.Indexes

func (*TrafficLimit) UpdateByID added in v1.2.5

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

func (*TrafficLimit) UpdateByIDWithFVs added in v1.2.5

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

func (*TrafficLimit) UpdateByProjectIDAndApiType added in v1.2.5

func (m *TrafficLimit) UpdateByProjectIDAndApiType(db sqlx.DBExecutor, zeros ...string) error

func (*TrafficLimit) UpdateByProjectIDAndApiTypeWithFVs added in v1.2.5

func (m *TrafficLimit) UpdateByProjectIDAndApiTypeWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

func (*TrafficLimit) UpdateByTrafficLimitID added in v1.2.5

func (m *TrafficLimit) UpdateByTrafficLimitID(db sqlx.DBExecutor, zeros ...string) error

func (*TrafficLimit) UpdateByTrafficLimitIDWithFVs added in v1.2.5

func (m *TrafficLimit) UpdateByTrafficLimitIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type TrafficLimitInfo added in v1.2.5

type TrafficLimitInfo struct {
	Threshold int                    `db:"f_threshold"            json:"threshold"`
	Duration  types.Duration         `db:"f_duration"             json:"duration"`
	ApiType   enums.TrafficLimitType `db:"f_api_type"             json:"apiType"`
	StartAt   types.Timestamp        `db:"f_start_at,default='0'" json:"startAt"`
}

type TrafficLimitIterator added in v1.2.5

type TrafficLimitIterator struct {
}

func (*TrafficLimitIterator) New added in v1.2.5

func (*TrafficLimitIterator) New() interface{}

func (*TrafficLimitIterator) Resolve added in v1.2.5

func (*TrafficLimitIterator) Resolve(v interface{}) *TrafficLimit

type Transaction added in v1.5.9

Transaction schema for blockchain transaction information @def primary ID @def unique_index UI_transaction_id TransactionID @def index I_project_id ProjectID

func (*Transaction) ColChainName added in v1.5.9

func (m *Transaction) ColChainName() *builder.Column

func (*Transaction) ColCreatedAt added in v1.5.9

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

func (*Transaction) ColData added in v1.5.9

func (m *Transaction) ColData() *builder.Column

func (*Transaction) ColDeletedAt added in v1.5.9

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

func (*Transaction) ColDesc added in v1.5.9

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

func (*Transaction) ColEventType added in v1.5.9

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

func (*Transaction) ColHash added in v1.5.9

func (m *Transaction) ColHash() *builder.Column

func (*Transaction) ColID added in v1.5.9

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

func (*Transaction) ColNonce added in v1.5.9

func (m *Transaction) ColNonce() *builder.Column

func (*Transaction) ColOperatorName added in v1.5.9

func (m *Transaction) ColOperatorName() *builder.Column

func (*Transaction) ColProjectID added in v1.5.9

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

func (*Transaction) ColReceiver added in v1.5.9

func (m *Transaction) ColReceiver() *builder.Column

func (*Transaction) ColRel added in v1.5.9

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

func (*Transaction) ColSender added in v1.5.9

func (m *Transaction) ColSender() *builder.Column

func (*Transaction) ColState added in v1.5.9

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

func (*Transaction) ColTransactionID added in v1.5.9

func (m *Transaction) ColTransactionID() *builder.Column

func (*Transaction) ColUpdatedAt added in v1.5.9

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

func (*Transaction) ColValue added in v1.5.9

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

func (*Transaction) Comments added in v1.5.9

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

func (*Transaction) CondByValue added in v1.5.9

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

func (*Transaction) Count added in v1.5.9

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

func (*Transaction) Create added in v1.5.9

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

func (*Transaction) Delete added in v1.5.9

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

func (*Transaction) DeleteByID added in v1.5.9

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

func (*Transaction) DeleteByTransactionID added in v1.5.9

func (m *Transaction) DeleteByTransactionID(db sqlx.DBExecutor) error

func (*Transaction) FetchByID added in v1.5.9

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

func (*Transaction) FetchByTransactionID added in v1.5.9

func (m *Transaction) FetchByTransactionID(db sqlx.DBExecutor) error

func (*Transaction) FieldChainName added in v1.5.9

func (*Transaction) FieldChainName() string

func (*Transaction) FieldCreatedAt added in v1.5.9

func (*Transaction) FieldCreatedAt() string

func (*Transaction) FieldData added in v1.5.9

func (*Transaction) FieldData() string

func (*Transaction) FieldDeletedAt added in v1.5.9

func (*Transaction) FieldDeletedAt() string

func (*Transaction) FieldEventType added in v1.5.9

func (*Transaction) FieldEventType() string

func (*Transaction) FieldHash added in v1.5.9

func (*Transaction) FieldHash() string

func (*Transaction) FieldID added in v1.5.9

func (*Transaction) FieldID() string

func (*Transaction) FieldNonce added in v1.5.9

func (*Transaction) FieldNonce() string

func (*Transaction) FieldOperatorName added in v1.5.9

func (*Transaction) FieldOperatorName() string

func (*Transaction) FieldProjectID added in v1.5.9

func (*Transaction) FieldProjectID() string

func (*Transaction) FieldReceiver added in v1.5.9

func (*Transaction) FieldReceiver() string

func (*Transaction) FieldSender added in v1.5.9

func (*Transaction) FieldSender() string

func (*Transaction) FieldState added in v1.5.9

func (*Transaction) FieldState() string

func (*Transaction) FieldTransactionID added in v1.5.9

func (*Transaction) FieldTransactionID() string

func (*Transaction) FieldUpdatedAt added in v1.5.9

func (*Transaction) FieldUpdatedAt() string

func (*Transaction) FieldValue added in v1.5.9

func (*Transaction) FieldValue() string

func (*Transaction) IndexFieldNames added in v1.5.9

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

func (*Transaction) Indexes added in v1.5.9

func (*Transaction) Indexes() builder.Indexes

func (*Transaction) List added in v1.5.9

func (*Transaction) PrimaryKey added in v1.5.9

func (*Transaction) PrimaryKey() []string

func (*Transaction) SoftDeleteByID added in v1.5.9

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

func (*Transaction) SoftDeleteByTransactionID added in v1.5.9

func (m *Transaction) SoftDeleteByTransactionID(db sqlx.DBExecutor) error

func (*Transaction) TableDesc added in v1.5.9

func (*Transaction) TableDesc() []string

func (*Transaction) TableName added in v1.5.9

func (*Transaction) TableName() string

func (*Transaction) UniqueIndexUITransactionID added in v1.5.9

func (*Transaction) UniqueIndexUITransactionID() string

func (*Transaction) UniqueIndexes added in v1.5.9

func (*Transaction) UniqueIndexes() builder.Indexes

func (*Transaction) UpdateByID added in v1.5.9

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

func (*Transaction) UpdateByIDWithFVs added in v1.5.9

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

func (*Transaction) UpdateByTransactionID added in v1.5.9

func (m *Transaction) UpdateByTransactionID(db sqlx.DBExecutor, zeros ...string) error

func (*Transaction) UpdateByTransactionIDWithFVs added in v1.5.9

func (m *Transaction) UpdateByTransactionIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type TransactionInfo added in v1.5.9

type TransactionInfo struct {
	ChainName    enums.ChainName        `db:"f_chain_name"                    json:"chainName"`
	Nonce        uint64                 `db:"f_nonce,default='0'"             json:"nonce,omitempty"`
	Hash         string                 `db:"f_hash,default=''"               json:"hash,omitempty"`
	Sender       string                 `db:"f_sender,default=''"             json:"sender,omitempty"`
	Receiver     string                 `db:"f_receiver,default=''"           json:"receiver,omitempty"`
	Value        string                 `db:"f_value,default=''"              json:"value,omitempty"`
	Data         string                 `db:"f_data,default='',size=4096"     json:"data,omitempty"`
	OperatorName string                 `db:"f_operator_name,default=''"      json:"operatorName,omitempty"`
	State        enums.TransactionState `db:"f_state,default='0'"             json:"state,omitempty"`
	EventType    string                 `db:"f_event_type"                    json:"eventType"`
}

type TransactionIterator added in v1.5.9

type TransactionIterator struct {
}

func (*TransactionIterator) New added in v1.5.9

func (*TransactionIterator) New() interface{}

func (*TransactionIterator) Resolve added in v1.5.9

func (*TransactionIterator) Resolve(v interface{}) *Transaction

type WasmLog added in v1.1.0

WasmLog database model event @def primary ID @def unique_index UI_wasm_log_id WasmLogID @def index I_project_name ProjectName @def index I_log_time LogTime @def index I_created_at CreatedAt @def index I_level Level @def index I_src Src @def index I_instance_id InstanceID @def index I_event_id EventID

func (*WasmLog) ColAppletName added in v1.1.0

func (m *WasmLog) ColAppletName() *builder.Column

func (*WasmLog) ColCreatedAt added in v1.1.0

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

func (*WasmLog) ColDesc added in v1.1.0

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

func (*WasmLog) ColEventID

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

func (*WasmLog) ColID added in v1.1.0

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

func (*WasmLog) ColInstanceID added in v1.1.0

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

func (*WasmLog) ColLevel added in v1.1.0

func (m *WasmLog) ColLevel() *builder.Column

func (*WasmLog) ColLogTime added in v1.1.0

func (m *WasmLog) ColLogTime() *builder.Column

func (*WasmLog) ColMsg added in v1.1.0

func (m *WasmLog) ColMsg() *builder.Column

func (*WasmLog) ColProjectName added in v1.1.0

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

func (*WasmLog) ColRel added in v1.1.0

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

func (*WasmLog) ColSrc added in v1.1.0

func (m *WasmLog) ColSrc() *builder.Column

func (*WasmLog) ColUpdatedAt added in v1.1.0

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

func (*WasmLog) ColWasmLogID added in v1.1.0

func (m *WasmLog) ColWasmLogID() *builder.Column

func (*WasmLog) Comments added in v1.1.0

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

func (*WasmLog) CondByValue added in v1.1.0

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

func (*WasmLog) Count added in v1.1.0

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

func (*WasmLog) Create added in v1.1.0

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

func (*WasmLog) Delete added in v1.1.0

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

func (*WasmLog) DeleteByID added in v1.1.0

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

func (*WasmLog) DeleteByWasmLogID added in v1.1.0

func (m *WasmLog) DeleteByWasmLogID(db sqlx.DBExecutor) error

func (*WasmLog) FetchByID added in v1.1.0

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

func (*WasmLog) FetchByWasmLogID added in v1.1.0

func (m *WasmLog) FetchByWasmLogID(db sqlx.DBExecutor) error

func (*WasmLog) FieldAppletName added in v1.1.0

func (*WasmLog) FieldAppletName() string

func (*WasmLog) FieldCreatedAt added in v1.1.0

func (*WasmLog) FieldCreatedAt() string

func (*WasmLog) FieldEventID

func (*WasmLog) FieldEventID() string

func (*WasmLog) FieldID added in v1.1.0

func (*WasmLog) FieldID() string

func (*WasmLog) FieldInstanceID added in v1.1.0

func (*WasmLog) FieldInstanceID() string

func (*WasmLog) FieldLevel added in v1.1.0

func (*WasmLog) FieldLevel() string

func (*WasmLog) FieldLogTime added in v1.1.0

func (*WasmLog) FieldLogTime() string

func (*WasmLog) FieldMsg added in v1.1.0

func (*WasmLog) FieldMsg() string

func (*WasmLog) FieldProjectName added in v1.1.0

func (*WasmLog) FieldProjectName() string

func (*WasmLog) FieldSrc added in v1.1.0

func (*WasmLog) FieldSrc() string

func (*WasmLog) FieldUpdatedAt added in v1.1.0

func (*WasmLog) FieldUpdatedAt() string

func (*WasmLog) FieldWasmLogID added in v1.1.0

func (*WasmLog) FieldWasmLogID() string

func (*WasmLog) IndexFieldNames added in v1.1.0

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

func (*WasmLog) Indexes

func (*WasmLog) Indexes() builder.Indexes

func (*WasmLog) List added in v1.1.0

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

func (*WasmLog) PrimaryKey added in v1.1.0

func (*WasmLog) PrimaryKey() []string

func (*WasmLog) TableDesc added in v1.1.0

func (*WasmLog) TableDesc() []string

func (*WasmLog) TableName added in v1.1.0

func (*WasmLog) TableName() string

func (*WasmLog) UniqueIndexUIWasmLogID added in v1.1.0

func (*WasmLog) UniqueIndexUIWasmLogID() string

func (*WasmLog) UniqueIndexes added in v1.1.0

func (*WasmLog) UniqueIndexes() builder.Indexes

func (*WasmLog) UpdateByID added in v1.1.0

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

func (*WasmLog) UpdateByIDWithFVs added in v1.1.0

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

func (*WasmLog) UpdateByWasmLogID added in v1.1.0

func (m *WasmLog) UpdateByWasmLogID(db sqlx.DBExecutor, zeros ...string) error

func (*WasmLog) UpdateByWasmLogIDWithFVs added in v1.1.0

func (m *WasmLog) UpdateByWasmLogIDWithFVs(db sqlx.DBExecutor, fvs builder.FieldValues) error

type WasmLogInfo added in v1.1.0

type WasmLogInfo struct {
	ProjectName string     `db:"f_project_name"               json:"projectName"`
	AppletName  string     `db:"f_applet_name,default=''"     json:"appletName"`
	InstanceID  types.SFID `db:"f_instance_id,default='0'"    json:"instanceID"`
	EventID     string     `db:"f_event_id,default=''"        json:"eventID"`
	Src         string     `db:"f_src,default=''"             json:"src"`
	Level       string     `db:"f_level,default=''"           json:"level"`
	LogTime     int64      `db:"f_log_time,default='0'"       json:"logTime"`
	Msg         string     `db:"f_msg,default='',size=1024"   json:"msg"`
}

type WasmLogIterator added in v1.1.0

type WasmLogIterator struct {
}

func (*WasmLogIterator) New added in v1.1.0

func (*WasmLogIterator) New() interface{}

func (*WasmLogIterator) Resolve added in v1.1.0

func (*WasmLogIterator) Resolve(v interface{}) *WasmLog

Jump to

Keyboard shortcuts

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