package
0.0.0-20241106020300-03d147aeb913
Repository: https://github.com/npoolplatform/miningpool-middleware.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns a Client stored inside a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validation error.
Log sets the logging function for debug mode.
MaskNotFound masks not found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewAppPoolClient returns a client for the AppPool from the given config.
NewClient creates a new client configured with the given options.
NewCoinClient returns a client for the Coin from the given config.
NewContext returns a new context with the given Client attached.
NewFractionWithdrawalClient returns a client for the FractionWithdrawal from the given config.
NewFractionWithdrawalRuleClient returns a client for the FractionWithdrawalRule from the given config.
NewGoodUserClient returns a client for the GoodUser from the given config.
NewOrderUserClient returns a client for the OrderUser from the given config.
NewPoolClient returns a client for the Pool from the given config.
NewRootUserClient returns a client for the RootUser from the given config.
NewTxContext returns a new context with the given Tx attached.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

# Constants

Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AppPool is the model entity for the AppPool schema.
AppPoolClient is a client for the AppPool schema.
AppPoolCreate is the builder for creating a AppPool entity.
AppPoolCreateBulk is the builder for creating many AppPool entities in bulk.
AppPoolDelete is the builder for deleting a AppPool entity.
AppPoolDeleteOne is the builder for deleting a single AppPool entity.
AppPoolFilter provides a generic filtering capability at runtime for AppPoolQuery.
AppPoolGroupBy is the group-by builder for AppPool entities.
AppPoolMutation represents an operation that mutates the AppPool nodes in the graph.
AppPoolQuery is the builder for querying AppPool entities.
AppPoolSelect is the builder for selecting fields of AppPool entities.
AppPoolUpdate is the builder for updating AppPool entities.
AppPoolUpdateOne is the builder for updating a single AppPool entity.
No description provided by the author
AppPoolUpsertBulk is the builder for "upsert"-ing a bulk of AppPool nodes.
No description provided by the author
Client is the client that holds all ent builders.
Coin is the model entity for the Coin schema.
CoinClient is a client for the Coin schema.
CoinCreate is the builder for creating a Coin entity.
CoinCreateBulk is the builder for creating many Coin entities in bulk.
CoinDelete is the builder for deleting a Coin entity.
CoinDeleteOne is the builder for deleting a single Coin entity.
CoinFilter provides a generic filtering capability at runtime for CoinQuery.
CoinGroupBy is the group-by builder for Coin entities.
CoinMutation represents an operation that mutates the Coin nodes in the graph.
CoinQuery is the builder for querying Coin entities.
CoinSelect is the builder for selecting fields of Coin entities.
CoinUpdate is the builder for updating Coin entities.
CoinUpdateOne is the builder for updating a single Coin entity.
No description provided by the author
CoinUpsertBulk is the builder for "upsert"-ing a bulk of Coin nodes.
No description provided by the author
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
FractionWithdrawal is the model entity for the FractionWithdrawal schema.
FractionWithdrawalClient is a client for the FractionWithdrawal schema.
FractionWithdrawalCreate is the builder for creating a FractionWithdrawal entity.
FractionWithdrawalCreateBulk is the builder for creating many FractionWithdrawal entities in bulk.
FractionWithdrawalDelete is the builder for deleting a FractionWithdrawal entity.
FractionWithdrawalDeleteOne is the builder for deleting a single FractionWithdrawal entity.
FractionWithdrawalFilter provides a generic filtering capability at runtime for FractionWithdrawalQuery.
FractionWithdrawalGroupBy is the group-by builder for FractionWithdrawal entities.
FractionWithdrawalMutation represents an operation that mutates the FractionWithdrawal nodes in the graph.
FractionWithdrawalQuery is the builder for querying FractionWithdrawal entities.
FractionWithdrawalRule is the model entity for the FractionWithdrawalRule schema.
FractionWithdrawalRuleClient is a client for the FractionWithdrawalRule schema.
FractionWithdrawalRuleCreate is the builder for creating a FractionWithdrawalRule entity.
FractionWithdrawalRuleCreateBulk is the builder for creating many FractionWithdrawalRule entities in bulk.
FractionWithdrawalRuleDelete is the builder for deleting a FractionWithdrawalRule entity.
FractionWithdrawalRuleDeleteOne is the builder for deleting a single FractionWithdrawalRule entity.
FractionWithdrawalRuleFilter provides a generic filtering capability at runtime for FractionWithdrawalRuleQuery.
FractionWithdrawalRuleGroupBy is the group-by builder for FractionWithdrawalRule entities.
FractionWithdrawalRuleMutation represents an operation that mutates the FractionWithdrawalRule nodes in the graph.
FractionWithdrawalRuleQuery is the builder for querying FractionWithdrawalRule entities.
FractionWithdrawalRuleSelect is the builder for selecting fields of FractionWithdrawalRule entities.
FractionWithdrawalRuleUpdate is the builder for updating FractionWithdrawalRule entities.
FractionWithdrawalRuleUpdateOne is the builder for updating a single FractionWithdrawalRule entity.
No description provided by the author
FractionWithdrawalRuleUpsertBulk is the builder for "upsert"-ing a bulk of FractionWithdrawalRule nodes.
No description provided by the author
FractionWithdrawalSelect is the builder for selecting fields of FractionWithdrawal entities.
FractionWithdrawalUpdate is the builder for updating FractionWithdrawal entities.
FractionWithdrawalUpdateOne is the builder for updating a single FractionWithdrawal entity.
No description provided by the author
FractionWithdrawalUpsertBulk is the builder for "upsert"-ing a bulk of FractionWithdrawal nodes.
No description provided by the author
GoodUser is the model entity for the GoodUser schema.
GoodUserClient is a client for the GoodUser schema.
GoodUserCreate is the builder for creating a GoodUser entity.
GoodUserCreateBulk is the builder for creating many GoodUser entities in bulk.
GoodUserDelete is the builder for deleting a GoodUser entity.
GoodUserDeleteOne is the builder for deleting a single GoodUser entity.
GoodUserFilter provides a generic filtering capability at runtime for GoodUserQuery.
GoodUserGroupBy is the group-by builder for GoodUser entities.
GoodUserMutation represents an operation that mutates the GoodUser nodes in the graph.
GoodUserQuery is the builder for querying GoodUser entities.
GoodUserSelect is the builder for selecting fields of GoodUser entities.
GoodUserUpdate is the builder for updating GoodUser entities.
GoodUserUpdateOne is the builder for updating a single GoodUser entity.
No description provided by the author
GoodUserUpsertBulk is the builder for "upsert"-ing a bulk of GoodUser nodes.
No description provided by the author
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
OrderUser is the model entity for the OrderUser schema.
OrderUserClient is a client for the OrderUser schema.
OrderUserCreate is the builder for creating a OrderUser entity.
OrderUserCreateBulk is the builder for creating many OrderUser entities in bulk.
OrderUserDelete is the builder for deleting a OrderUser entity.
OrderUserDeleteOne is the builder for deleting a single OrderUser entity.
OrderUserFilter provides a generic filtering capability at runtime for OrderUserQuery.
OrderUserGroupBy is the group-by builder for OrderUser entities.
OrderUserMutation represents an operation that mutates the OrderUser nodes in the graph.
OrderUserQuery is the builder for querying OrderUser entities.
OrderUserSelect is the builder for selecting fields of OrderUser entities.
OrderUserUpdate is the builder for updating OrderUser entities.
OrderUserUpdateOne is the builder for updating a single OrderUser entity.
No description provided by the author
OrderUserUpsertBulk is the builder for "upsert"-ing a bulk of OrderUser nodes.
No description provided by the author
Pool is the model entity for the Pool schema.
PoolClient is a client for the Pool schema.
PoolCreate is the builder for creating a Pool entity.
PoolCreateBulk is the builder for creating many Pool entities in bulk.
PoolDelete is the builder for deleting a Pool entity.
PoolDeleteOne is the builder for deleting a single Pool entity.
PoolFilter provides a generic filtering capability at runtime for PoolQuery.
PoolGroupBy is the group-by builder for Pool entities.
PoolMutation represents an operation that mutates the Pool nodes in the graph.
PoolQuery is the builder for querying Pool entities.
PoolSelect is the builder for selecting fields of Pool entities.
PoolUpdate is the builder for updating Pool entities.
PoolUpdateOne is the builder for updating a single Pool entity.
No description provided by the author
PoolUpsertBulk is the builder for "upsert"-ing a bulk of Pool nodes.
No description provided by the author
RootUser is the model entity for the RootUser schema.
RootUserClient is a client for the RootUser schema.
RootUserCreate is the builder for creating a RootUser entity.
RootUserCreateBulk is the builder for creating many RootUser entities in bulk.
RootUserDelete is the builder for deleting a RootUser entity.
RootUserDeleteOne is the builder for deleting a single RootUser entity.
RootUserFilter provides a generic filtering capability at runtime for RootUserQuery.
RootUserGroupBy is the group-by builder for RootUser entities.
RootUserMutation represents an operation that mutates the RootUser nodes in the graph.
RootUserQuery is the builder for querying RootUser entities.
RootUserSelect is the builder for selecting fields of RootUser entities.
RootUserUpdate is the builder for updating RootUser entities.
RootUserUpdateOne is the builder for updating a single RootUser entity.
No description provided by the author
RootUserUpsertBulk is the builder for "upsert"-ing a bulk of RootUser nodes.
No description provided by the author
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field or edge fails.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
AppPools is a parsable slice of AppPool.
Coins is a parsable slice of Coin.
No description provided by the author
No description provided by the author
FractionWithdrawalRules is a parsable slice of FractionWithdrawalRule.
FractionWithdrawals is a parsable slice of FractionWithdrawal.
GoodUsers is a parsable slice of GoodUser.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Option function to configure the client.
OrderFunc applies an ordering on the sql selector.
OrderUsers is a parsable slice of OrderUser.
ent aliases to avoid import conflicts in user's code.
Pools is a parsable slice of Pool.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
No description provided by the author
RootUsers is a parsable slice of RootUser.
ent aliases to avoid import conflicts in user's code.