Documentation ¶
Index ¶
- type APIFunc
- type DepartmentFunc
- type DictionaryDetailFunc
- type DictionaryFunc
- type Func
- type MenuFunc
- type OauthProviderFunc
- type PositionFunc
- type Query
- type RoleFunc
- type TokenFunc
- type TraverseAPI
- type TraverseDepartment
- type TraverseDictionary
- type TraverseDictionaryDetail
- type TraverseFunc
- type TraverseMenu
- type TraverseOauthProvider
- type TraversePosition
- type TraverseRole
- type TraverseToken
- type TraverseUser
- type UserFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DepartmentFunc ¶
The DepartmentFunc type is an adapter to allow the use of ordinary function as a Querier.
type DictionaryDetailFunc ¶
The DictionaryDetailFunc type is an adapter to allow the use of ordinary function as a Querier.
type DictionaryFunc ¶
The DictionaryFunc 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 OauthProviderFunc ¶
The OauthProviderFunc type is an adapter to allow the use of ordinary function as a Querier.
type PositionFunc ¶
The PositionFunc 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 TokenFunc ¶
The TokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type TraverseAPI ¶
The TraverseAPI type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDepartment ¶
type TraverseDepartment func(context.Context, *ent.DepartmentQuery) error
The TraverseDepartment type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDictionary ¶
type TraverseDictionary func(context.Context, *ent.DictionaryQuery) error
The TraverseDictionary type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDictionaryDetail ¶
type TraverseDictionaryDetail func(context.Context, *ent.DictionaryDetailQuery) error
The TraverseDictionaryDetail 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 TraverseMenu ¶
The TraverseMenu type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOauthProvider ¶
type TraverseOauthProvider func(context.Context, *ent.OauthProviderQuery) error
The TraverseOauthProvider type is an adapter to allow the use of ordinary function as Traverser.
type TraversePosition ¶
type TraversePosition func(context.Context, *ent.PositionQuery) error
The TraversePosition type is an adapter to allow the use of ordinary function as Traverser.
type TraverseRole ¶
The TraverseRole type is an adapter to allow the use of ordinary function as Traverser.
type TraverseToken ¶
type TraverseToken func(context.Context, *ent.TokenQuery) error
The TraverseToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseUser ¶
The TraverseUser type is an adapter to allow the use of ordinary function as Traverser.