Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Settings) predicate.Settings
- func CreateTime(v time.Time) predicate.Settings
- func CreateTimeEQ(v time.Time) predicate.Settings
- func CreateTimeGT(v time.Time) predicate.Settings
- func CreateTimeGTE(v time.Time) predicate.Settings
- func CreateTimeIn(vs ...time.Time) predicate.Settings
- func CreateTimeLT(v time.Time) predicate.Settings
- func CreateTimeLTE(v time.Time) predicate.Settings
- func CreateTimeNEQ(v time.Time) predicate.Settings
- func CreateTimeNotIn(vs ...time.Time) predicate.Settings
- func DexAggregatorEQ(v DexAggregator) predicate.Settings
- func DexAggregatorIn(vs ...DexAggregator) predicate.Settings
- func DexAggregatorNEQ(v DexAggregator) predicate.Settings
- func DexAggregatorNotIn(vs ...DexAggregator) predicate.Settings
- func DexAggregatorValidator(da DexAggregator) error
- func ExitSlippageBps(v int) predicate.Settings
- func ExitSlippageBpsEQ(v int) predicate.Settings
- func ExitSlippageBpsGT(v int) predicate.Settings
- func ExitSlippageBpsGTE(v int) predicate.Settings
- func ExitSlippageBpsIn(vs ...int) predicate.Settings
- func ExitSlippageBpsIsNil() predicate.Settings
- func ExitSlippageBpsLT(v int) predicate.Settings
- func ExitSlippageBpsLTE(v int) predicate.Settings
- func ExitSlippageBpsNEQ(v int) predicate.Settings
- func ExitSlippageBpsNotIn(vs ...int) predicate.Settings
- func ExitSlippageBpsNotNil() predicate.Settings
- func ID(id int) predicate.Settings
- func IDEQ(id int) predicate.Settings
- func IDGT(id int) predicate.Settings
- func IDGTE(id int) predicate.Settings
- func IDIn(ids ...int) predicate.Settings
- func IDLT(id int) predicate.Settings
- func IDLTE(id int) predicate.Settings
- func IDNEQ(id int) predicate.Settings
- func IDNotIn(ids ...int) predicate.Settings
- func MaxLamports(v int64) predicate.Settings
- func MaxLamportsEQ(v int64) predicate.Settings
- func MaxLamportsGT(v int64) predicate.Settings
- func MaxLamportsGTE(v int64) predicate.Settings
- func MaxLamportsIn(vs ...int64) predicate.Settings
- func MaxLamportsLT(v int64) predicate.Settings
- func MaxLamportsLTE(v int64) predicate.Settings
- func MaxLamportsNEQ(v int64) predicate.Settings
- func MaxLamportsNotIn(vs ...int64) predicate.Settings
- func MaxRetries(v int64) predicate.Settings
- func MaxRetriesEQ(v int64) predicate.Settings
- func MaxRetriesGT(v int64) predicate.Settings
- func MaxRetriesGTE(v int64) predicate.Settings
- func MaxRetriesIn(vs ...int64) predicate.Settings
- func MaxRetriesLT(v int64) predicate.Settings
- func MaxRetriesLTE(v int64) predicate.Settings
- func MaxRetriesNEQ(v int64) predicate.Settings
- func MaxRetriesNotIn(vs ...int64) predicate.Settings
- func Not(p predicate.Settings) predicate.Settings
- func Or(predicates ...predicate.Settings) predicate.Settings
- func PriorityLevelEQ(v PriorityLevel) predicate.Settings
- func PriorityLevelIn(vs ...PriorityLevel) predicate.Settings
- func PriorityLevelNEQ(v PriorityLevel) predicate.Settings
- func PriorityLevelNotIn(vs ...PriorityLevel) predicate.Settings
- func PriorityLevelValidator(pl PriorityLevel) error
- func SellSlippageBps(v int) predicate.Settings
- func SellSlippageBpsEQ(v int) predicate.Settings
- func SellSlippageBpsGT(v int) predicate.Settings
- func SellSlippageBpsGTE(v int) predicate.Settings
- func SellSlippageBpsIn(vs ...int) predicate.Settings
- func SellSlippageBpsIsNil() predicate.Settings
- func SellSlippageBpsLT(v int) predicate.Settings
- func SellSlippageBpsLTE(v int) predicate.Settings
- func SellSlippageBpsNEQ(v int) predicate.Settings
- func SellSlippageBpsNotIn(vs ...int) predicate.Settings
- func SellSlippageBpsNotNil() predicate.Settings
- func SlippageBps(v int) predicate.Settings
- func SlippageBpsEQ(v int) predicate.Settings
- func SlippageBpsGT(v int) predicate.Settings
- func SlippageBpsGTE(v int) predicate.Settings
- func SlippageBpsIn(vs ...int) predicate.Settings
- func SlippageBpsLT(v int) predicate.Settings
- func SlippageBpsLTE(v int) predicate.Settings
- func SlippageBpsNEQ(v int) predicate.Settings
- func SlippageBpsNotIn(vs ...int) predicate.Settings
- func UpdateTime(v time.Time) predicate.Settings
- func UpdateTimeEQ(v time.Time) predicate.Settings
- func UpdateTimeGT(v time.Time) predicate.Settings
- func UpdateTimeGTE(v time.Time) predicate.Settings
- func UpdateTimeIn(vs ...time.Time) predicate.Settings
- func UpdateTimeLT(v time.Time) predicate.Settings
- func UpdateTimeLTE(v time.Time) predicate.Settings
- func UpdateTimeNEQ(v time.Time) predicate.Settings
- func UpdateTimeNotIn(vs ...time.Time) predicate.Settings
- func UserId(v int64) predicate.Settings
- func UserIdEQ(v int64) predicate.Settings
- func UserIdGT(v int64) predicate.Settings
- func UserIdGTE(v int64) predicate.Settings
- func UserIdIn(vs ...int64) predicate.Settings
- func UserIdLT(v int64) predicate.Settings
- func UserIdLTE(v int64) predicate.Settings
- func UserIdNEQ(v int64) predicate.Settings
- func UserIdNotIn(vs ...int64) predicate.Settings
- func ValidColumn(column string) bool
- type DexAggregator
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDexAggregator(opts ...sql.OrderTermOption) OrderOption
- func ByExitSlippageBps(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxLamports(opts ...sql.OrderTermOption) OrderOption
- func ByMaxRetries(opts ...sql.OrderTermOption) OrderOption
- func ByPriorityLevel(opts ...sql.OrderTermOption) OrderOption
- func BySellSlippageBps(opts ...sql.OrderTermOption) OrderOption
- func BySlippageBps(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserId(opts ...sql.OrderTermOption) OrderOption
- type PriorityLevel
Constants ¶
const ( // Label holds the string label denoting the settings type in the database. Label = "settings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldUserId holds the string denoting the userid field in the database. FieldUserId = "user_id" // FieldMaxRetries holds the string denoting the maxretries field in the database. FieldMaxRetries = "max_retries" // FieldSlippageBps holds the string denoting the slippagebps field in the database. FieldSlippageBps = "slippage_bps" // FieldSellSlippageBps holds the string denoting the sellslippagebps field in the database. FieldSellSlippageBps = "sell_slippage_bps" // FieldExitSlippageBps holds the string denoting the exitslippagebps field in the database. FieldExitSlippageBps = "exit_slippage_bps" // FieldMaxLamports holds the string denoting the maxlamports field in the database. FieldMaxLamports = "max_lamports" // FieldPriorityLevel holds the string denoting the prioritylevel field in the database. FieldPriorityLevel = "priority_level" // FieldDexAggregator holds the string denoting the dexaggregator field in the database. FieldDexAggregator = "dex_aggregator" // Table holds the table name of the settings in the database. Table = "settings" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // MaxRetriesValidator is a validator for the "maxRetries" field. It is called by the builders before save. MaxRetriesValidator func(int64) error // SlippageBpsValidator is a validator for the "slippageBps" field. It is called by the builders before save. SlippageBpsValidator func(int) error // SellSlippageBpsValidator is a validator for the "sellSlippageBps" field. It is called by the builders before save. SellSlippageBpsValidator func(int) error // ExitSlippageBpsValidator is a validator for the "exitSlippageBps" field. It is called by the builders before save. ExitSlippageBpsValidator func(int) error // MaxLamportsValidator is a validator for the "maxLamports" field. It is called by the builders before save. MaxLamportsValidator func(int64) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUserId, FieldMaxRetries, FieldSlippageBps, FieldSellSlippageBps, FieldExitSlippageBps, FieldMaxLamports, FieldPriorityLevel, FieldDexAggregator, }
Columns holds all SQL columns for settings fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DexAggregatorEQ ¶
func DexAggregatorEQ(v DexAggregator) predicate.Settings
DexAggregatorEQ applies the EQ predicate on the "dexAggregator" field.
func DexAggregatorIn ¶
func DexAggregatorIn(vs ...DexAggregator) predicate.Settings
DexAggregatorIn applies the In predicate on the "dexAggregator" field.
func DexAggregatorNEQ ¶
func DexAggregatorNEQ(v DexAggregator) predicate.Settings
DexAggregatorNEQ applies the NEQ predicate on the "dexAggregator" field.
func DexAggregatorNotIn ¶
func DexAggregatorNotIn(vs ...DexAggregator) predicate.Settings
DexAggregatorNotIn applies the NotIn predicate on the "dexAggregator" field.
func DexAggregatorValidator ¶
func DexAggregatorValidator(da DexAggregator) error
DexAggregatorValidator is a validator for the "dexAggregator" field enum values. It is called by the builders before save.
func ExitSlippageBps ¶
ExitSlippageBps applies equality check predicate on the "exitSlippageBps" field. It's identical to ExitSlippageBpsEQ.
func ExitSlippageBpsEQ ¶
ExitSlippageBpsEQ applies the EQ predicate on the "exitSlippageBps" field.
func ExitSlippageBpsGT ¶
ExitSlippageBpsGT applies the GT predicate on the "exitSlippageBps" field.
func ExitSlippageBpsGTE ¶
ExitSlippageBpsGTE applies the GTE predicate on the "exitSlippageBps" field.
func ExitSlippageBpsIn ¶
ExitSlippageBpsIn applies the In predicate on the "exitSlippageBps" field.
func ExitSlippageBpsIsNil ¶
ExitSlippageBpsIsNil applies the IsNil predicate on the "exitSlippageBps" field.
func ExitSlippageBpsLT ¶
ExitSlippageBpsLT applies the LT predicate on the "exitSlippageBps" field.
func ExitSlippageBpsLTE ¶
ExitSlippageBpsLTE applies the LTE predicate on the "exitSlippageBps" field.
func ExitSlippageBpsNEQ ¶
ExitSlippageBpsNEQ applies the NEQ predicate on the "exitSlippageBps" field.
func ExitSlippageBpsNotIn ¶
ExitSlippageBpsNotIn applies the NotIn predicate on the "exitSlippageBps" field.
func ExitSlippageBpsNotNil ¶
ExitSlippageBpsNotNil applies the NotNil predicate on the "exitSlippageBps" field.
func MaxLamports ¶
MaxLamports applies equality check predicate on the "maxLamports" field. It's identical to MaxLamportsEQ.
func MaxLamportsEQ ¶
MaxLamportsEQ applies the EQ predicate on the "maxLamports" field.
func MaxLamportsGT ¶
MaxLamportsGT applies the GT predicate on the "maxLamports" field.
func MaxLamportsGTE ¶
MaxLamportsGTE applies the GTE predicate on the "maxLamports" field.
func MaxLamportsIn ¶
MaxLamportsIn applies the In predicate on the "maxLamports" field.
func MaxLamportsLT ¶
MaxLamportsLT applies the LT predicate on the "maxLamports" field.
func MaxLamportsLTE ¶
MaxLamportsLTE applies the LTE predicate on the "maxLamports" field.
func MaxLamportsNEQ ¶
MaxLamportsNEQ applies the NEQ predicate on the "maxLamports" field.
func MaxLamportsNotIn ¶
MaxLamportsNotIn applies the NotIn predicate on the "maxLamports" field.
func MaxRetries ¶
MaxRetries applies equality check predicate on the "maxRetries" field. It's identical to MaxRetriesEQ.
func MaxRetriesEQ ¶
MaxRetriesEQ applies the EQ predicate on the "maxRetries" field.
func MaxRetriesGT ¶
MaxRetriesGT applies the GT predicate on the "maxRetries" field.
func MaxRetriesGTE ¶
MaxRetriesGTE applies the GTE predicate on the "maxRetries" field.
func MaxRetriesIn ¶
MaxRetriesIn applies the In predicate on the "maxRetries" field.
func MaxRetriesLT ¶
MaxRetriesLT applies the LT predicate on the "maxRetries" field.
func MaxRetriesLTE ¶
MaxRetriesLTE applies the LTE predicate on the "maxRetries" field.
func MaxRetriesNEQ ¶
MaxRetriesNEQ applies the NEQ predicate on the "maxRetries" field.
func MaxRetriesNotIn ¶
MaxRetriesNotIn applies the NotIn predicate on the "maxRetries" field.
func PriorityLevelEQ ¶
func PriorityLevelEQ(v PriorityLevel) predicate.Settings
PriorityLevelEQ applies the EQ predicate on the "priorityLevel" field.
func PriorityLevelIn ¶
func PriorityLevelIn(vs ...PriorityLevel) predicate.Settings
PriorityLevelIn applies the In predicate on the "priorityLevel" field.
func PriorityLevelNEQ ¶
func PriorityLevelNEQ(v PriorityLevel) predicate.Settings
PriorityLevelNEQ applies the NEQ predicate on the "priorityLevel" field.
func PriorityLevelNotIn ¶
func PriorityLevelNotIn(vs ...PriorityLevel) predicate.Settings
PriorityLevelNotIn applies the NotIn predicate on the "priorityLevel" field.
func PriorityLevelValidator ¶
func PriorityLevelValidator(pl PriorityLevel) error
PriorityLevelValidator is a validator for the "priorityLevel" field enum values. It is called by the builders before save.
func SellSlippageBps ¶
SellSlippageBps applies equality check predicate on the "sellSlippageBps" field. It's identical to SellSlippageBpsEQ.
func SellSlippageBpsEQ ¶
SellSlippageBpsEQ applies the EQ predicate on the "sellSlippageBps" field.
func SellSlippageBpsGT ¶
SellSlippageBpsGT applies the GT predicate on the "sellSlippageBps" field.
func SellSlippageBpsGTE ¶
SellSlippageBpsGTE applies the GTE predicate on the "sellSlippageBps" field.
func SellSlippageBpsIn ¶
SellSlippageBpsIn applies the In predicate on the "sellSlippageBps" field.
func SellSlippageBpsIsNil ¶
SellSlippageBpsIsNil applies the IsNil predicate on the "sellSlippageBps" field.
func SellSlippageBpsLT ¶
SellSlippageBpsLT applies the LT predicate on the "sellSlippageBps" field.
func SellSlippageBpsLTE ¶
SellSlippageBpsLTE applies the LTE predicate on the "sellSlippageBps" field.
func SellSlippageBpsNEQ ¶
SellSlippageBpsNEQ applies the NEQ predicate on the "sellSlippageBps" field.
func SellSlippageBpsNotIn ¶
SellSlippageBpsNotIn applies the NotIn predicate on the "sellSlippageBps" field.
func SellSlippageBpsNotNil ¶
SellSlippageBpsNotNil applies the NotNil predicate on the "sellSlippageBps" field.
func SlippageBps ¶
SlippageBps applies equality check predicate on the "slippageBps" field. It's identical to SlippageBpsEQ.
func SlippageBpsEQ ¶
SlippageBpsEQ applies the EQ predicate on the "slippageBps" field.
func SlippageBpsGT ¶
SlippageBpsGT applies the GT predicate on the "slippageBps" field.
func SlippageBpsGTE ¶
SlippageBpsGTE applies the GTE predicate on the "slippageBps" field.
func SlippageBpsIn ¶
SlippageBpsIn applies the In predicate on the "slippageBps" field.
func SlippageBpsLT ¶
SlippageBpsLT applies the LT predicate on the "slippageBps" field.
func SlippageBpsLTE ¶
SlippageBpsLTE applies the LTE predicate on the "slippageBps" field.
func SlippageBpsNEQ ¶
SlippageBpsNEQ applies the NEQ predicate on the "slippageBps" field.
func SlippageBpsNotIn ¶
SlippageBpsNotIn applies the NotIn predicate on the "slippageBps" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UserId ¶
UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.
func UserIdNotIn ¶
UserIdNotIn applies the NotIn predicate on the "userId" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type DexAggregator ¶
type DexAggregator string
DexAggregator defines the type for the "dexAggregator" enum field.
const ( DexAggregatorJup DexAggregator = "jup" DexAggregatorOkx DexAggregator = "okx" DexAggregatorRelay DexAggregator = "relay" )
DexAggregator values.
func (DexAggregator) String ¶
func (da DexAggregator) String() string
type OrderOption ¶
OrderOption defines the ordering options for the Settings queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDexAggregator ¶
func ByDexAggregator(opts ...sql.OrderTermOption) OrderOption
ByDexAggregator orders the results by the dexAggregator field.
func ByExitSlippageBps ¶
func ByExitSlippageBps(opts ...sql.OrderTermOption) OrderOption
ByExitSlippageBps orders the results by the exitSlippageBps field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMaxLamports ¶
func ByMaxLamports(opts ...sql.OrderTermOption) OrderOption
ByMaxLamports orders the results by the maxLamports field.
func ByMaxRetries ¶
func ByMaxRetries(opts ...sql.OrderTermOption) OrderOption
ByMaxRetries orders the results by the maxRetries field.
func ByPriorityLevel ¶
func ByPriorityLevel(opts ...sql.OrderTermOption) OrderOption
ByPriorityLevel orders the results by the priorityLevel field.
func BySellSlippageBps ¶
func BySellSlippageBps(opts ...sql.OrderTermOption) OrderOption
BySellSlippageBps orders the results by the sellSlippageBps field.
func BySlippageBps ¶
func BySlippageBps(opts ...sql.OrderTermOption) OrderOption
BySlippageBps orders the results by the slippageBps field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserId ¶
func ByUserId(opts ...sql.OrderTermOption) OrderOption
ByUserId orders the results by the userId field.
type PriorityLevel ¶
type PriorityLevel string
PriorityLevel defines the type for the "priorityLevel" enum field.
const ( PriorityLevelMedium PriorityLevel = "medium" PriorityLevelHigh PriorityLevel = "high" PriorityLevelVeryHigh PriorityLevel = "veryHigh" )
PriorityLevel values.
func (PriorityLevel) String ¶
func (pl PriorityLevel) String() string