package
0.0.0-20241221172611-9a531ba07c95
Repository: https://github.com/database64128/proxy-sharing-go.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

# 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.
NewAccountClient returns a client for the Account from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewNodeClient returns a client for the Node from the given config.
NewRegistrationTokenClient returns a client for the RegistrationToken from the given config.
NewServerClient returns a client for the Server 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

# Variables

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

# Structs

Account is the model entity for the Account schema.
AccountClient is a client for the Account schema.
AccountCreate is the builder for creating a Account entity.
AccountCreateBulk is the builder for creating many Account entities in bulk.
AccountDelete is the builder for deleting a Account entity.
AccountDeleteOne is the builder for deleting a single Account entity.
AccountEdges holds the relations/edges for other nodes in the graph.
AccountGroupBy is the group-by builder for Account entities.
AccountMutation represents an operation that mutates the Account nodes in the graph.
AccountQuery is the builder for querying Account entities.
AccountSelect is the builder for selecting fields of Account entities.
AccountUpdate is the builder for updating Account entities.
AccountUpdateOne is the builder for updating a single Account entity.
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Node is the model entity for the Node schema.
NodeClient is a client for the Node schema.
NodeCreate is the builder for creating a Node entity.
NodeCreateBulk is the builder for creating many Node entities in bulk.
NodeDelete is the builder for deleting a Node entity.
NodeDeleteOne is the builder for deleting a single Node entity.
NodeEdges holds the relations/edges for other nodes in the graph.
NodeGroupBy is the group-by builder for Node entities.
NodeMutation represents an operation that mutates the Node nodes in the graph.
NodeQuery is the builder for querying Node entities.
NodeSelect is the builder for selecting fields of Node entities.
NodeUpdate is the builder for updating Node entities.
NodeUpdateOne is the builder for updating a single Node entity.
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.
RegistrationToken is the model entity for the RegistrationToken schema.
RegistrationTokenClient is a client for the RegistrationToken schema.
RegistrationTokenCreate is the builder for creating a RegistrationToken entity.
RegistrationTokenCreateBulk is the builder for creating many RegistrationToken entities in bulk.
RegistrationTokenDelete is the builder for deleting a RegistrationToken entity.
RegistrationTokenDeleteOne is the builder for deleting a single RegistrationToken entity.
RegistrationTokenEdges holds the relations/edges for other nodes in the graph.
RegistrationTokenGroupBy is the group-by builder for RegistrationToken entities.
RegistrationTokenMutation represents an operation that mutates the RegistrationToken nodes in the graph.
RegistrationTokenQuery is the builder for querying RegistrationToken entities.
RegistrationTokenSelect is the builder for selecting fields of RegistrationToken entities.
RegistrationTokenUpdate is the builder for updating RegistrationToken entities.
RegistrationTokenUpdateOne is the builder for updating a single RegistrationToken entity.
Server is the model entity for the Server schema.
ServerClient is a client for the Server schema.
ServerCreate is the builder for creating a Server entity.
ServerCreateBulk is the builder for creating many Server entities in bulk.
ServerDelete is the builder for deleting a Server entity.
ServerDeleteOne is the builder for deleting a single Server entity.
ServerEdges holds the relations/edges for other nodes in the graph.
ServerGroupBy is the group-by builder for Server entities.
ServerMutation represents an operation that mutates the Server nodes in the graph.
ServerQuery is the builder for querying Server entities.
ServerSelect is the builder for selecting fields of Server entities.
ServerUpdate is the builder for updating Server entities.
ServerUpdateOne is the builder for updating a single Server entity.
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

Accounts is a parsable slice of Account.
AggregateFunc applies an aggregation step on the group-by traversal/selector.
No description provided by the author
No description provided by the author
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.
ent aliases to avoid import conflicts in user's code.
Nodes is a parsable slice of Node.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
OrderFunc applies an ordering on the sql selector.
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.
RegistrationTokens is a parsable slice of RegistrationToken.
No description provided by the author
No description provided by the author
Servers is a parsable slice of Server.
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.