Versions in this module Expand all Collapse all v0 v0.1.4 Sep 22, 2020 v0.1.3 Sep 22, 2020 v0.1.2 Sep 21, 2020 v0.1.1 Sep 21, 2020 v0.1.0 Sep 21, 2020 v0.0.9 Sep 21, 2020 v0.0.8 Sep 21, 2020 v0.0.7 Sep 21, 2020 v0.0.6 Sep 21, 2020 v0.0.5 Sep 21, 2020 Changes in this version + var AuditEventColumns = struct{ ... } + var AuditEventRels = struct{} + var AuditEventWhere = struct{ ... } + var CandleColumns = struct{ ... } + var CandleRels = struct{ ... } + var CandleWhere = struct{ ... } + var ErrSyncFail = errors.New("postgres: failed to synchronize data after insert") + var ExchangeColumns = struct{ ... } + var ExchangeRels = struct{ ... } + var ExchangeWhere = struct{ ... } + var ScriptColumns = struct{ ... } + var ScriptExecutionColumns = struct{ ... } + var ScriptExecutionRels = struct{ ... } + var ScriptExecutionWhere = struct{ ... } + var ScriptRels = struct{ ... } + var ScriptWhere = struct{ ... } + var TableNames = struct{ ... } + var WithdrawalCryptoColumns = struct{ ... } + var WithdrawalCryptoRels = struct{ ... } + var WithdrawalCryptoWhere = struct{ ... } + var WithdrawalFiatColumns = struct{ ... } + var WithdrawalFiatRels = struct{ ... } + var WithdrawalFiatWhere = struct{ ... } + var WithdrawalHistoryColumns = struct{ ... } + var WithdrawalHistoryRels = struct{ ... } + var WithdrawalHistoryWhere = struct{ ... } + func AddAuditEventHook(hookPoint boil.HookPoint, auditEventHook AuditEventHook) + func AddCandleHook(hookPoint boil.HookPoint, candleHook CandleHook) + func AddExchangeHook(hookPoint boil.HookPoint, exchangeHook ExchangeHook) + func AddScriptExecutionHook(hookPoint boil.HookPoint, scriptExecutionHook ScriptExecutionHook) + func AddScriptHook(hookPoint boil.HookPoint, scriptHook ScriptHook) + func AddWithdrawalCryptoHook(hookPoint boil.HookPoint, withdrawalCryptoHook WithdrawalCryptoHook) + func AddWithdrawalFiatHook(hookPoint boil.HookPoint, withdrawalFiatHook WithdrawalFiatHook) + func AddWithdrawalHistoryHook(hookPoint boil.HookPoint, withdrawalHistoryHook WithdrawalHistoryHook) + func AuditEventExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error) + func AuditEvents(mods ...qm.QueryMod) auditEventQuery + func CandleExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error) + func Candles(mods ...qm.QueryMod) candleQuery + func ExchangeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error) + func Exchanges(mods ...qm.QueryMod) exchangeQuery + func NewQuery(mods ...qm.QueryMod) *queries.Query + func ScriptExecutionExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error) + func ScriptExecutions(mods ...qm.QueryMod) scriptExecutionQuery + func ScriptExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error) + func Scripts(mods ...qm.QueryMod) scriptQuery + func WithdrawalCryptoExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error) + func WithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery + func WithdrawalFiatExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error) + func WithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery + func WithdrawalHistories(mods ...qm.QueryMod) withdrawalHistoryQuery + func WithdrawalHistoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error) + type AuditEvent struct + CreatedAt time.Time + ID int64 + Identifier string + L auditEventL + Message string + R *auditEventR + Type string + func FindAuditEvent(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AuditEvent, error) + func (o *AuditEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *AuditEvent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *AuditEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *AuditEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *AuditEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type AuditEventHook func(context.Context, boil.ContextExecutor, *AuditEvent) error + type AuditEventSlice []*AuditEvent + func (o *AuditEventSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o AuditEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o AuditEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type Candle struct + Asset string + Base string + Close float64 + ExchangeNameID string + High float64 + ID string + Interval int64 + L candleL + Low float64 + Open float64 + Quote string + R *candleR + Timestamp time.Time + Volume float64 + func FindCandle(ctx context.Context, exec boil.ContextExecutor, iD string, ...) (*Candle, error) + func (o *Candle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Candle) ExchangeName(mods ...qm.QueryMod) exchangeQuery + func (o *Candle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Candle) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Candle) SetExchangeName(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error + func (o *Candle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Candle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type CandleHook func(context.Context, boil.ContextExecutor, *Candle) error + type CandleSlice []*Candle + func (o *CandleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o CandleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o CandleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type Exchange struct + ID string + L exchangeL + Name string + R *exchangeR + func FindExchange(ctx context.Context, exec boil.ContextExecutor, iD string, ...) (*Exchange, error) + func (o *Exchange) AddExchangeNameCandles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *Exchange) AddExchangeNameWithdrawalHistories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *Exchange) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Exchange) ExchangeNameCandles(mods ...qm.QueryMod) candleQuery + func (o *Exchange) ExchangeNameWithdrawalHistories(mods ...qm.QueryMod) withdrawalHistoryQuery + func (o *Exchange) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Exchange) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Exchange) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Exchange) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type ExchangeHook func(context.Context, boil.ContextExecutor, *Exchange) error + type ExchangeSlice []*Exchange + func (o *ExchangeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o ExchangeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o ExchangeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type M map[string]interface + type Script struct + CreatedAt null.Time + ID string + L scriptL + LastExecutedAt null.Time + R *scriptR + ScriptData null.Bytes + ScriptID string + ScriptName string + ScriptPath string + func FindScript(ctx context.Context, exec boil.ContextExecutor, iD string, ...) (*Script, error) + func (o *Script) AddScriptExecutions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *Script) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Script) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Script) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Script) RemoveScriptExecutions(ctx context.Context, exec boil.ContextExecutor, related ...*ScriptExecution) error + func (o *Script) ScriptExecutions(mods ...qm.QueryMod) scriptExecutionQuery + func (o *Script) SetScriptExecutions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *Script) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Script) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type ScriptExecution struct + ExecutionStatus string + ExecutionTime time.Time + ExecutionType string + ID string + L scriptExecutionL + R *scriptExecutionR + ScriptID null.String + func FindScriptExecution(ctx context.Context, exec boil.ContextExecutor, iD string, ...) (*ScriptExecution, error) + func (o *ScriptExecution) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *ScriptExecution) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *ScriptExecution) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *ScriptExecution) RemoveScript(ctx context.Context, exec boil.ContextExecutor, related *Script) error + func (o *ScriptExecution) Script(mods ...qm.QueryMod) scriptQuery + func (o *ScriptExecution) SetScript(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Script) error + func (o *ScriptExecution) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *ScriptExecution) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type ScriptExecutionHook func(context.Context, boil.ContextExecutor, *ScriptExecution) error + type ScriptExecutionSlice []*ScriptExecution + func (o *ScriptExecutionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o ScriptExecutionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o ScriptExecutionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type ScriptHook func(context.Context, boil.ContextExecutor, *Script) error + type ScriptSlice []*Script + func (o *ScriptSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o ScriptSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o ScriptSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type WithdrawalCrypto struct + Address string + AddressTag null.String + Fee float64 + ID int64 + L withdrawalCryptoL + R *withdrawalCryptoR + WithdrawalCryptoID null.String + func FindWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*WithdrawalCrypto, error) + func (o *WithdrawalCrypto) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *WithdrawalCrypto) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *WithdrawalCrypto) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *WithdrawalCrypto) RemoveWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, related *WithdrawalHistory) error + func (o *WithdrawalCrypto) SetWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *WithdrawalCrypto) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *WithdrawalCrypto) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *WithdrawalCrypto) WithdrawalCrypto(mods ...qm.QueryMod) withdrawalHistoryQuery + type WithdrawalCryptoHook func(context.Context, boil.ContextExecutor, *WithdrawalCrypto) error + type WithdrawalCryptoSlice []*WithdrawalCrypto + func (o *WithdrawalCryptoSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o WithdrawalCryptoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o WithdrawalCryptoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type WithdrawalFiat struct + BSB string + BankAccountName string + BankAccountNumber string + BankAddress string + BankCode float64 + BankName string + ID int64 + Iban string + L withdrawalFiatL + R *withdrawalFiatR + SwiftCode string + WithdrawalFiatID null.String + func FindWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*WithdrawalFiat, error) + func (o *WithdrawalFiat) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *WithdrawalFiat) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *WithdrawalFiat) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *WithdrawalFiat) RemoveWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, related *WithdrawalHistory) error + func (o *WithdrawalFiat) SetWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *WithdrawalFiat) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *WithdrawalFiat) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *WithdrawalFiat) WithdrawalFiat(mods ...qm.QueryMod) withdrawalHistoryQuery + type WithdrawalFiatHook func(context.Context, boil.ContextExecutor, *WithdrawalFiat) error + type WithdrawalFiatSlice []*WithdrawalFiat + func (o *WithdrawalFiatSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o WithdrawalFiatSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o WithdrawalFiatSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type WithdrawalHistory struct + Amount float64 + CreatedAt time.Time + Currency string + Description null.String + ExchangeID string + ExchangeNameID string + ID string + L withdrawalHistoryL + R *withdrawalHistoryR + Status string + UpdatedAt time.Time + WithdrawType int + func FindWithdrawalHistory(ctx context.Context, exec boil.ContextExecutor, iD string, ...) (*WithdrawalHistory, error) + func (o *WithdrawalHistory) AddWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *WithdrawalHistory) AddWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *WithdrawalHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *WithdrawalHistory) ExchangeName(mods ...qm.QueryMod) exchangeQuery + func (o *WithdrawalHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *WithdrawalHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *WithdrawalHistory) RemoveWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, related ...*WithdrawalCrypto) error + func (o *WithdrawalHistory) RemoveWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, related ...*WithdrawalFiat) error + func (o *WithdrawalHistory) SetExchangeName(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error + func (o *WithdrawalHistory) SetWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *WithdrawalHistory) SetWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *WithdrawalHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *WithdrawalHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *WithdrawalHistory) WithdrawalCryptoWithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery + func (o *WithdrawalHistory) WithdrawalFiatWithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery + type WithdrawalHistoryHook func(context.Context, boil.ContextExecutor, *WithdrawalHistory) error + type WithdrawalHistorySlice []*WithdrawalHistory + func (o *WithdrawalHistorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o WithdrawalHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o WithdrawalHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)