Documentation ¶
Index ¶
- type EntitlementFunc
- type Func
- type GroupFunc
- type GroupSettingFunc
- type IntegrationFunc
- type OauthProviderFunc
- type OhAuthTooTokenFunc
- type OrganizationFunc
- type OrganizationSettingFunc
- type PersonalAccessTokenFunc
- type Query
- type SessionFunc
- type TraverseEntitlement
- type TraverseFunc
- type TraverseGroup
- type TraverseGroupSetting
- type TraverseIntegration
- type TraverseOauthProvider
- type TraverseOhAuthTooToken
- type TraverseOrganization
- type TraverseOrganizationSetting
- type TraversePersonalAccessToken
- type TraverseSession
- type TraverseUser
- type TraverseUserSetting
- type UserFunc
- type UserSettingFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntitlementFunc ¶
The EntitlementFunc 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 GroupFunc ¶
The GroupFunc type is an adapter to allow the use of ordinary function as a Querier.
type GroupSettingFunc ¶
The GroupSettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type IntegrationFunc ¶
The IntegrationFunc type is an adapter to allow the use of ordinary function as a Querier.
type OauthProviderFunc ¶
type OauthProviderFunc func(context.Context, *generated.OauthProviderQuery) (generated.Value, error)
The OauthProviderFunc type is an adapter to allow the use of ordinary function as a Querier.
type OhAuthTooTokenFunc ¶
type OhAuthTooTokenFunc func(context.Context, *generated.OhAuthTooTokenQuery) (generated.Value, error)
The OhAuthTooTokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrganizationFunc ¶
The OrganizationFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrganizationSettingFunc ¶
type OrganizationSettingFunc func(context.Context, *generated.OrganizationSettingQuery) (generated.Value, error)
The OrganizationSettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type PersonalAccessTokenFunc ¶
type PersonalAccessTokenFunc func(context.Context, *generated.PersonalAccessTokenQuery) (generated.Value, error)
The PersonalAccessTokenFunc 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 SessionFunc ¶
The SessionFunc type is an adapter to allow the use of ordinary function as a Querier.
type TraverseEntitlement ¶
type TraverseEntitlement func(context.Context, *generated.EntitlementQuery) error
The TraverseEntitlement 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 TraverseGroup ¶
type TraverseGroup func(context.Context, *generated.GroupQuery) error
The TraverseGroup type is an adapter to allow the use of ordinary function as Traverser.
type TraverseGroupSetting ¶
type TraverseGroupSetting func(context.Context, *generated.GroupSettingQuery) error
The TraverseGroupSetting type is an adapter to allow the use of ordinary function as Traverser.
type TraverseIntegration ¶
type TraverseIntegration func(context.Context, *generated.IntegrationQuery) error
The TraverseIntegration type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOauthProvider ¶
type TraverseOauthProvider func(context.Context, *generated.OauthProviderQuery) error
The TraverseOauthProvider type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOhAuthTooToken ¶
type TraverseOhAuthTooToken func(context.Context, *generated.OhAuthTooTokenQuery) error
The TraverseOhAuthTooToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrganization ¶
type TraverseOrganization func(context.Context, *generated.OrganizationQuery) error
The TraverseOrganization type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrganizationSetting ¶
type TraverseOrganizationSetting func(context.Context, *generated.OrganizationSettingQuery) error
The TraverseOrganizationSetting type is an adapter to allow the use of ordinary function as Traverser.
type TraversePersonalAccessToken ¶
type TraversePersonalAccessToken func(context.Context, *generated.PersonalAccessTokenQuery) error
The TraversePersonalAccessToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSession ¶
type TraverseSession func(context.Context, *generated.SessionQuery) error
The TraverseSession 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.
type TraverseUserSetting ¶
type TraverseUserSetting func(context.Context, *generated.UserSettingQuery) error
The TraverseUserSetting type is an adapter to allow the use of ordinary function as Traverser.
type UserSettingFunc ¶
The UserSettingFunc type is an adapter to allow the use of ordinary function as a Querier.