Documentation
¶
Index ¶
- type BundleFunc
- type Func
- type InvoiceFunc
- type ItemFunc
- type PaymentProfileFunc
- type ProductFunc
- type ProductReservationFunc
- type Query
- type SubscriptionsFunc
- type TraverseBundle
- type TraverseFunc
- type TraverseInvoice
- type TraverseItem
- type TraversePaymentProfile
- type TraverseProduct
- type TraverseProductReservation
- type TraverseSubscriptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleFunc ¶
The BundleFunc type is an adapter to allow the use of ordinary function as a Querier.
type Func ¶
The Func type is an adapter that allows ordinary functions to be used as interceptors. Unlike traversal functions, interceptors are skipped during graph traversals. Note that the implementation of Func is different from the one defined in entgo.io/ent.InterceptFunc.
type InvoiceFunc ¶
The InvoiceFunc type is an adapter to allow the use of ordinary function as a Querier.
type PaymentProfileFunc ¶
The PaymentProfileFunc type is an adapter to allow the use of ordinary function as a Querier.
type ProductFunc ¶
The ProductFunc type is an adapter to allow the use of ordinary function as a Querier.
type ProductReservationFunc ¶
The ProductReservationFunc type is an adapter to allow the use of ordinary function as a Querier.
type Query ¶
type Query interface {
// Type returns the string representation of the query type.
Type() string
// Limit the number of records to be returned by this query.
Limit(int)
// Offset to start from.
Offset(int)
// Unique configures the query builder to filter duplicate records.
Unique(bool)
// Order specifies how the records should be ordered.
Order(...func(*sql.Selector))
// WhereP appends storage-level predicates to the query builder. Using this method, users
// can use type-assertion to append predicates that do not depend on any generated package.
WhereP(...func(*sql.Selector))
}
The Query interface represents an operation that queries a graph. By using this interface, users can write generic code that manipulates query builders of different types.
type SubscriptionsFunc ¶
The SubscriptionsFunc type is an adapter to allow the use of ordinary function as a Querier.
type TraverseBundle ¶
type TraverseBundle func(context.Context, *ent.BundleQuery) error
The TraverseBundle type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFunc ¶
The TraverseFunc type is an adapter to allow the use of ordinary function as Traverser. If f is a function with the appropriate signature, TraverseFunc(f) is a Traverser that calls f.
type TraverseInvoice ¶
type TraverseInvoice func(context.Context, *ent.InvoiceQuery) error
The TraverseInvoice type is an adapter to allow the use of ordinary function as Traverser.
type TraverseItem ¶
The TraverseItem type is an adapter to allow the use of ordinary function as Traverser.
type TraversePaymentProfile ¶
type TraversePaymentProfile func(context.Context, *ent.PaymentProfileQuery) error
The TraversePaymentProfile type is an adapter to allow the use of ordinary function as Traverser.
type TraverseProduct ¶
type TraverseProduct func(context.Context, *ent.ProductQuery) error
The TraverseProduct type is an adapter to allow the use of ordinary function as Traverser.
type TraverseProductReservation ¶
type TraverseProductReservation func(context.Context, *ent.ProductReservationQuery) error
The TraverseProductReservation type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSubscriptions ¶
type TraverseSubscriptions func(context.Context, *ent.SubscriptionsQuery) error
The TraverseSubscriptions type is an adapter to allow the use of ordinary function as Traverser.