Documentation ¶
Index ¶
- type AccessTokenFunc
- type CacheLockFunc
- type ChangelogFunc
- type DBCacheFunc
- type EventFunc
- type FavoriteFunc
- type FileFunc
- type Func
- type MemberFunc
- type NamespaceFunc
- type ProjectFunc
- type Query
- type RepoFunc
- type TraverseAccessToken
- type TraverseCacheLock
- type TraverseChangelog
- type TraverseDBCache
- type TraverseEvent
- type TraverseFavorite
- type TraverseFile
- type TraverseFunc
- type TraverseMember
- type TraverseNamespace
- type TraverseProject
- type TraverseRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenFunc ¶
The AccessTokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type CacheLockFunc ¶
The CacheLockFunc type is an adapter to allow the use of ordinary function as a Querier.
type ChangelogFunc ¶
The ChangelogFunc type is an adapter to allow the use of ordinary function as a Querier.
type DBCacheFunc ¶
The DBCacheFunc type is an adapter to allow the use of ordinary function as a Querier.
type EventFunc ¶
The EventFunc type is an adapter to allow the use of ordinary function as a Querier.
type FavoriteFunc ¶
The FavoriteFunc 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 MemberFunc ¶
The MemberFunc type is an adapter to allow the use of ordinary function as a Querier.
type NamespaceFunc ¶
The NamespaceFunc type is an adapter to allow the use of ordinary function as a Querier.
type ProjectFunc ¶
The ProjectFunc 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 TraverseAccessToken ¶
type TraverseAccessToken func(context.Context, *ent.AccessTokenQuery) error
The TraverseAccessToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseCacheLock ¶
type TraverseCacheLock func(context.Context, *ent.CacheLockQuery) error
The TraverseCacheLock type is an adapter to allow the use of ordinary function as Traverser.
type TraverseChangelog ¶
type TraverseChangelog func(context.Context, *ent.ChangelogQuery) error
The TraverseChangelog type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDBCache ¶
type TraverseDBCache func(context.Context, *ent.DBCacheQuery) error
The TraverseDBCache type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEvent ¶
type TraverseEvent func(context.Context, *ent.EventQuery) error
The TraverseEvent type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFavorite ¶
type TraverseFavorite func(context.Context, *ent.FavoriteQuery) error
The TraverseFavorite type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFile ¶
The TraverseFile 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 TraverseMember ¶
type TraverseMember func(context.Context, *ent.MemberQuery) error
The TraverseMember type is an adapter to allow the use of ordinary function as Traverser.
type TraverseNamespace ¶
type TraverseNamespace func(context.Context, *ent.NamespaceQuery) error
The TraverseNamespace type is an adapter to allow the use of ordinary function as Traverser.
type TraverseProject ¶
type TraverseProject func(context.Context, *ent.ProjectQuery) error
The TraverseProject type is an adapter to allow the use of ordinary function as Traverser.
type TraverseRepo ¶
The TraverseRepo type is an adapter to allow the use of ordinary function as Traverser.