package
0.0.1
Repository: https://github.com/kebin6/simple-file-api.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

# 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.
NewClient creates a new client configured with the given options.
NewCloudFileClient returns a client for the CloudFile from the given config.
NewCloudFileTagClient returns a client for the CloudFileTag from the given config.
NewContext returns a new context with the given Client attached.
NewFileClient returns a client for the File from the given config.
NewFileTagClient returns a client for the FileTag from the given config.
NewStorageProviderClient returns a client for the StorageProvider 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
OrderDirectionAsc specifies an ascending order.
OrderDirectionDesc specifies a descending order.
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

# Variables

DefaultCloudFileOrder is the default ordering of CloudFile.
DefaultCloudFileTagOrder is the default ordering of CloudFileTag.
DefaultFileOrder is the default ordering of File.
DefaultFileTagOrder is the default ordering of FileTag.
DefaultStorageProviderOrder is the default ordering of StorageProvider.
ErrTxStarted is returned when trying to start a new transaction from a transactional client.

# Structs

Client is the client that holds all ent builders.
CloudFile is the model entity for the CloudFile schema.
CloudFileClient is a client for the CloudFile schema.
CloudFileCreate is the builder for creating a CloudFile entity.
CloudFileCreateBulk is the builder for creating many CloudFile entities in bulk.
CloudFileDelete is the builder for deleting a CloudFile entity.
CloudFileDeleteOne is the builder for deleting a single CloudFile entity.
CloudFileEdges holds the relations/edges for other nodes in the graph.
CloudFileGroupBy is the group-by builder for CloudFile entities.
CloudFileMutation represents an operation that mutates the CloudFile nodes in the graph.
CloudFilePageList is CloudFile PageList result.
No description provided by the author
CloudFileQuery is the builder for querying CloudFile entities.
CloudFileSelect is the builder for selecting fields of CloudFile entities.
CloudFileTag is the model entity for the CloudFileTag schema.
CloudFileTagClient is a client for the CloudFileTag schema.
CloudFileTagCreate is the builder for creating a CloudFileTag entity.
CloudFileTagCreateBulk is the builder for creating many CloudFileTag entities in bulk.
CloudFileTagDelete is the builder for deleting a CloudFileTag entity.
CloudFileTagDeleteOne is the builder for deleting a single CloudFileTag entity.
CloudFileTagEdges holds the relations/edges for other nodes in the graph.
CloudFileTagGroupBy is the group-by builder for CloudFileTag entities.
CloudFileTagMutation represents an operation that mutates the CloudFileTag nodes in the graph.
CloudFileTagPageList is CloudFileTag PageList result.
No description provided by the author
CloudFileTagQuery is the builder for querying CloudFileTag entities.
CloudFileTagSelect is the builder for selecting fields of CloudFileTag entities.
CloudFileTagUpdate is the builder for updating CloudFileTag entities.
CloudFileTagUpdateOne is the builder for updating a single CloudFileTag entity.
CloudFileUpdate is the builder for updating CloudFile entities.
CloudFileUpdateOne is the builder for updating a single CloudFile entity.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
File is the model entity for the File schema.
FileClient is a client for the File schema.
FileCreate is the builder for creating a File entity.
FileCreateBulk is the builder for creating many File entities in bulk.
FileDelete is the builder for deleting a File entity.
FileDeleteOne is the builder for deleting a single File entity.
FileEdges holds the relations/edges for other nodes in the graph.
FileGroupBy is the group-by builder for File entities.
FileMutation represents an operation that mutates the File nodes in the graph.
FilePageList is File PageList result.
No description provided by the author
FileQuery is the builder for querying File entities.
FileSelect is the builder for selecting fields of File entities.
FileTag is the model entity for the FileTag schema.
FileTagClient is a client for the FileTag schema.
FileTagCreate is the builder for creating a FileTag entity.
FileTagCreateBulk is the builder for creating many FileTag entities in bulk.
FileTagDelete is the builder for deleting a FileTag entity.
FileTagDeleteOne is the builder for deleting a single FileTag entity.
FileTagEdges holds the relations/edges for other nodes in the graph.
FileTagGroupBy is the group-by builder for FileTag entities.
FileTagMutation represents an operation that mutates the FileTag nodes in the graph.
FileTagPageList is FileTag PageList result.
No description provided by the author
FileTagQuery is the builder for querying FileTag entities.
FileTagSelect is the builder for selecting fields of FileTag entities.
FileTagUpdate is the builder for updating FileTag entities.
FileTagUpdateOne is the builder for updating a single FileTag entity.
FileUpdate is the builder for updating File entities.
FileUpdateOne is the builder for updating a single File 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.
No description provided by the author
StorageProvider is the model entity for the StorageProvider schema.
StorageProviderClient is a client for the StorageProvider schema.
StorageProviderCreate is the builder for creating a StorageProvider entity.
StorageProviderCreateBulk is the builder for creating many StorageProvider entities in bulk.
StorageProviderDelete is the builder for deleting a StorageProvider entity.
StorageProviderDeleteOne is the builder for deleting a single StorageProvider entity.
StorageProviderEdges holds the relations/edges for other nodes in the graph.
StorageProviderGroupBy is the group-by builder for StorageProvider entities.
StorageProviderMutation represents an operation that mutates the StorageProvider nodes in the graph.
StorageProviderPageList is StorageProvider PageList result.
No description provided by the author
StorageProviderQuery is the builder for querying StorageProvider entities.
StorageProviderSelect is the builder for selecting fields of StorageProvider entities.
StorageProviderUpdate is the builder for updating StorageProvider entities.
StorageProviderUpdateOne is the builder for updating a single StorageProvider 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

AggregateFunc applies an aggregation step on the group-by traversal/selector.
CloudFilePaginateOption enables pagination customization.
CloudFiles is a parsable slice of CloudFile.
CloudFileTagPaginateOption enables pagination customization.
CloudFileTags is a parsable slice of CloudFileTag.
No description provided by the author
No description provided by the author
FilePaginateOption enables pagination customization.
Files is a parsable slice of File.
FileTagPaginateOption enables pagination customization.
FileTags is a parsable slice of FileTag.
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.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
OrderDirection defines the directions in which to order a list of items.
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.
No description provided by the author
No description provided by the author
StorageProviderPaginateOption enables pagination customization.
StorageProviders is a parsable slice of StorageProvider.
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.