intercept

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentDataFunc added in v0.4.4

type DocumentDataFunc func(context.Context, *generated.DocumentDataQuery) (generated.Value, error)

The DocumentDataFunc type is an adapter to allow the use of ordinary function as a Querier.

func (DocumentDataFunc) Query added in v0.4.4

Query calls f(ctx, q).

type DocumentDataHistoryFunc added in v0.4.5

type DocumentDataHistoryFunc func(context.Context, *generated.DocumentDataHistoryQuery) (generated.Value, error)

The DocumentDataHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (DocumentDataHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type EmailVerificationTokenFunc added in v0.2.2

type EmailVerificationTokenFunc func(context.Context, *generated.EmailVerificationTokenQuery) (generated.Value, error)

The EmailVerificationTokenFunc type is an adapter to allow the use of ordinary function as a Querier.

func (EmailVerificationTokenFunc) Query added in v0.2.2

Query calls f(ctx, q).

type EntitlementFunc

type EntitlementFunc func(context.Context, *generated.EntitlementQuery) (generated.Value, error)

The EntitlementFunc type is an adapter to allow the use of ordinary function as a Querier.

func (EntitlementFunc) Query

Query calls f(ctx, q).

type EntitlementHistoryFunc added in v0.4.5

type EntitlementHistoryFunc func(context.Context, *generated.EntitlementHistoryQuery) (generated.Value, error)

The EntitlementHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (EntitlementHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type Func

type Func func(context.Context, Query) error

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.

func (Func) Intercept

func (f Func) Intercept(next generated.Querier) generated.Querier

Intercept calls f(ctx, q) and then applied the next Querier.

type GroupFunc

The GroupFunc type is an adapter to allow the use of ordinary function as a Querier.

func (GroupFunc) Query

Query calls f(ctx, q).

type GroupHistoryFunc added in v0.4.5

type GroupHistoryFunc func(context.Context, *generated.GroupHistoryQuery) (generated.Value, error)

The GroupHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (GroupHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type GroupMembershipFunc added in v0.2.4

type GroupMembershipFunc func(context.Context, *generated.GroupMembershipQuery) (generated.Value, error)

The GroupMembershipFunc type is an adapter to allow the use of ordinary function as a Querier.

func (GroupMembershipFunc) Query added in v0.2.4

Query calls f(ctx, q).

type GroupMembershipHistoryFunc added in v0.4.5

type GroupMembershipHistoryFunc func(context.Context, *generated.GroupMembershipHistoryQuery) (generated.Value, error)

The GroupMembershipHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (GroupMembershipHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type GroupSettingFunc

type GroupSettingFunc func(context.Context, *generated.GroupSettingQuery) (generated.Value, error)

The GroupSettingFunc type is an adapter to allow the use of ordinary function as a Querier.

func (GroupSettingFunc) Query

Query calls f(ctx, q).

type GroupSettingHistoryFunc added in v0.4.5

type GroupSettingHistoryFunc func(context.Context, *generated.GroupSettingHistoryQuery) (generated.Value, error)

The GroupSettingHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (GroupSettingHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type IntegrationFunc

type IntegrationFunc func(context.Context, *generated.IntegrationQuery) (generated.Value, error)

The IntegrationFunc type is an adapter to allow the use of ordinary function as a Querier.

func (IntegrationFunc) Query

Query calls f(ctx, q).

type IntegrationHistoryFunc added in v0.4.5

type IntegrationHistoryFunc func(context.Context, *generated.IntegrationHistoryQuery) (generated.Value, error)

The IntegrationHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (IntegrationHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type InviteFunc added in v0.2.6

The InviteFunc type is an adapter to allow the use of ordinary function as a Querier.

func (InviteFunc) Query added in v0.2.6

Query calls f(ctx, q).

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.

func (OauthProviderFunc) Query

Query calls f(ctx, q).

type OauthProviderHistoryFunc added in v0.4.5

type OauthProviderHistoryFunc func(context.Context, *generated.OauthProviderHistoryQuery) (generated.Value, error)

The OauthProviderHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (OauthProviderHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

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.

func (OhAuthTooTokenFunc) Query

Query calls f(ctx, q).

type OrgMembershipFunc added in v0.2.4

type OrgMembershipFunc func(context.Context, *generated.OrgMembershipQuery) (generated.Value, error)

The OrgMembershipFunc type is an adapter to allow the use of ordinary function as a Querier.

func (OrgMembershipFunc) Query added in v0.2.4

Query calls f(ctx, q).

type OrgMembershipHistoryFunc added in v0.4.5

type OrgMembershipHistoryFunc func(context.Context, *generated.OrgMembershipHistoryQuery) (generated.Value, error)

The OrgMembershipHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (OrgMembershipHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type OrganizationFunc

type OrganizationFunc func(context.Context, *generated.OrganizationQuery) (generated.Value, error)

The OrganizationFunc type is an adapter to allow the use of ordinary function as a Querier.

func (OrganizationFunc) Query

Query calls f(ctx, q).

type OrganizationHistoryFunc added in v0.4.3

type OrganizationHistoryFunc func(context.Context, *generated.OrganizationHistoryQuery) (generated.Value, error)

The OrganizationHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (OrganizationHistoryFunc) Query added in v0.4.3

Query calls f(ctx, q).

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.

func (OrganizationSettingFunc) Query

Query calls f(ctx, q).

type OrganizationSettingHistoryFunc added in v0.4.3

type OrganizationSettingHistoryFunc func(context.Context, *generated.OrganizationSettingHistoryQuery) (generated.Value, error)

The OrganizationSettingHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (OrganizationSettingHistoryFunc) Query added in v0.4.3

Query calls f(ctx, q).

type PasswordResetTokenFunc added in v0.2.3

type PasswordResetTokenFunc func(context.Context, *generated.PasswordResetTokenQuery) (generated.Value, error)

The PasswordResetTokenFunc type is an adapter to allow the use of ordinary function as a Querier.

func (PasswordResetTokenFunc) Query added in v0.2.3

Query calls f(ctx, q).

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.

func (PersonalAccessTokenFunc) Query

Query calls f(ctx, q).

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.

func NewQuery

func NewQuery(q generated.Query) (Query, error)

NewQuery returns the generic Query interface for the given typed query.

type SubscriberFunc added in v0.3.6

type SubscriberFunc func(context.Context, *generated.SubscriberQuery) (generated.Value, error)

The SubscriberFunc type is an adapter to allow the use of ordinary function as a Querier.

func (SubscriberFunc) Query added in v0.3.6

Query calls f(ctx, q).

type TFASettingFunc added in v0.4.4

type TFASettingFunc func(context.Context, *generated.TFASettingQuery) (generated.Value, error)

The TFASettingFunc type is an adapter to allow the use of ordinary function as a Querier.

func (TFASettingFunc) Query added in v0.4.4

Query calls f(ctx, q).

type TemplateFunc added in v0.4.3

type TemplateFunc func(context.Context, *generated.TemplateQuery) (generated.Value, error)

The TemplateFunc type is an adapter to allow the use of ordinary function as a Querier.

func (TemplateFunc) Query added in v0.4.3

Query calls f(ctx, q).

type TemplateHistoryFunc added in v0.4.5

type TemplateHistoryFunc func(context.Context, *generated.TemplateHistoryQuery) (generated.Value, error)

The TemplateHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (TemplateHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type TraverseDocumentData added in v0.4.4

type TraverseDocumentData func(context.Context, *generated.DocumentDataQuery) error

The TraverseDocumentData type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseDocumentData) Intercept added in v0.4.4

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseDocumentData) Traverse added in v0.4.4

Traverse calls f(ctx, q).

type TraverseDocumentDataHistory added in v0.4.5

type TraverseDocumentDataHistory func(context.Context, *generated.DocumentDataHistoryQuery) error

The TraverseDocumentDataHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseDocumentDataHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseDocumentDataHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

type TraverseEmailVerificationToken added in v0.2.2

type TraverseEmailVerificationToken func(context.Context, *generated.EmailVerificationTokenQuery) error

The TraverseEmailVerificationToken type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseEmailVerificationToken) Intercept added in v0.2.2

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseEmailVerificationToken) Traverse added in v0.2.2

Traverse calls f(ctx, q).

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.

func (TraverseEntitlement) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseEntitlement) Traverse

Traverse calls f(ctx, q).

type TraverseEntitlementHistory added in v0.4.5

type TraverseEntitlementHistory func(context.Context, *generated.EntitlementHistoryQuery) error

The TraverseEntitlementHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseEntitlementHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseEntitlementHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

type TraverseFunc

type TraverseFunc func(context.Context, Query) error

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.

func (TraverseFunc) Intercept

func (f TraverseFunc) Intercept(next generated.Querier) generated.Querier

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseFunc) Traverse

func (f TraverseFunc) Traverse(ctx context.Context, q generated.Query) error

Traverse calls f(ctx, q).

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.

func (TraverseGroup) Intercept

func (f TraverseGroup) Intercept(next generated.Querier) generated.Querier

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseGroup) Traverse

func (f TraverseGroup) Traverse(ctx context.Context, q generated.Query) error

Traverse calls f(ctx, q).

type TraverseGroupHistory added in v0.4.5

type TraverseGroupHistory func(context.Context, *generated.GroupHistoryQuery) error

The TraverseGroupHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseGroupHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseGroupHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

type TraverseGroupMembership added in v0.2.4

type TraverseGroupMembership func(context.Context, *generated.GroupMembershipQuery) error

The TraverseGroupMembership type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseGroupMembership) Intercept added in v0.2.4

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseGroupMembership) Traverse added in v0.2.4

Traverse calls f(ctx, q).

type TraverseGroupMembershipHistory added in v0.4.5

type TraverseGroupMembershipHistory func(context.Context, *generated.GroupMembershipHistoryQuery) error

The TraverseGroupMembershipHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseGroupMembershipHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseGroupMembershipHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

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.

func (TraverseGroupSetting) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseGroupSetting) Traverse

Traverse calls f(ctx, q).

type TraverseGroupSettingHistory added in v0.4.5

type TraverseGroupSettingHistory func(context.Context, *generated.GroupSettingHistoryQuery) error

The TraverseGroupSettingHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseGroupSettingHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseGroupSettingHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

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.

func (TraverseIntegration) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseIntegration) Traverse

Traverse calls f(ctx, q).

type TraverseIntegrationHistory added in v0.4.5

type TraverseIntegrationHistory func(context.Context, *generated.IntegrationHistoryQuery) error

The TraverseIntegrationHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseIntegrationHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseIntegrationHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

type TraverseInvite added in v0.2.6

type TraverseInvite func(context.Context, *generated.InviteQuery) error

The TraverseInvite type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseInvite) Intercept added in v0.2.6

func (f TraverseInvite) Intercept(next generated.Querier) generated.Querier

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseInvite) Traverse added in v0.2.6

func (f TraverseInvite) Traverse(ctx context.Context, q generated.Query) error

Traverse calls f(ctx, q).

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.

func (TraverseOauthProvider) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOauthProvider) Traverse

Traverse calls f(ctx, q).

type TraverseOauthProviderHistory added in v0.4.5

type TraverseOauthProviderHistory func(context.Context, *generated.OauthProviderHistoryQuery) error

The TraverseOauthProviderHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseOauthProviderHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOauthProviderHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

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.

func (TraverseOhAuthTooToken) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOhAuthTooToken) Traverse

Traverse calls f(ctx, q).

type TraverseOrgMembership added in v0.2.4

type TraverseOrgMembership func(context.Context, *generated.OrgMembershipQuery) error

The TraverseOrgMembership type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseOrgMembership) Intercept added in v0.2.4

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOrgMembership) Traverse added in v0.2.4

Traverse calls f(ctx, q).

type TraverseOrgMembershipHistory added in v0.4.5

type TraverseOrgMembershipHistory func(context.Context, *generated.OrgMembershipHistoryQuery) error

The TraverseOrgMembershipHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseOrgMembershipHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOrgMembershipHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

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.

func (TraverseOrganization) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOrganization) Traverse

Traverse calls f(ctx, q).

type TraverseOrganizationHistory added in v0.4.3

type TraverseOrganizationHistory func(context.Context, *generated.OrganizationHistoryQuery) error

The TraverseOrganizationHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseOrganizationHistory) Intercept added in v0.4.3

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOrganizationHistory) Traverse added in v0.4.3

Traverse calls f(ctx, q).

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.

func (TraverseOrganizationSetting) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOrganizationSetting) Traverse

Traverse calls f(ctx, q).

type TraverseOrganizationSettingHistory added in v0.4.3

type TraverseOrganizationSettingHistory func(context.Context, *generated.OrganizationSettingHistoryQuery) error

The TraverseOrganizationSettingHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseOrganizationSettingHistory) Intercept added in v0.4.3

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseOrganizationSettingHistory) Traverse added in v0.4.3

Traverse calls f(ctx, q).

type TraversePasswordResetToken added in v0.2.3

type TraversePasswordResetToken func(context.Context, *generated.PasswordResetTokenQuery) error

The TraversePasswordResetToken type is an adapter to allow the use of ordinary function as Traverser.

func (TraversePasswordResetToken) Intercept added in v0.2.3

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraversePasswordResetToken) Traverse added in v0.2.3

Traverse calls f(ctx, q).

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.

func (TraversePersonalAccessToken) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraversePersonalAccessToken) Traverse

Traverse calls f(ctx, q).

type TraverseSubscriber added in v0.3.6

type TraverseSubscriber func(context.Context, *generated.SubscriberQuery) error

The TraverseSubscriber type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseSubscriber) Intercept added in v0.3.6

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseSubscriber) Traverse added in v0.3.6

Traverse calls f(ctx, q).

type TraverseTFASetting added in v0.4.4

type TraverseTFASetting func(context.Context, *generated.TFASettingQuery) error

The TraverseTFASetting type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseTFASetting) Intercept added in v0.4.4

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseTFASetting) Traverse added in v0.4.4

Traverse calls f(ctx, q).

type TraverseTemplate added in v0.4.3

type TraverseTemplate func(context.Context, *generated.TemplateQuery) error

The TraverseTemplate type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseTemplate) Intercept added in v0.4.3

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseTemplate) Traverse added in v0.4.3

func (f TraverseTemplate) Traverse(ctx context.Context, q generated.Query) error

Traverse calls f(ctx, q).

type TraverseTemplateHistory added in v0.4.5

type TraverseTemplateHistory func(context.Context, *generated.TemplateHistoryQuery) error

The TraverseTemplateHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseTemplateHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseTemplateHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

type TraverseUser

type TraverseUser func(context.Context, *generated.UserQuery) error

The TraverseUser type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseUser) Intercept

func (f TraverseUser) Intercept(next generated.Querier) generated.Querier

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseUser) Traverse

func (f TraverseUser) Traverse(ctx context.Context, q generated.Query) error

Traverse calls f(ctx, q).

type TraverseUserHistory added in v0.4.5

type TraverseUserHistory func(context.Context, *generated.UserHistoryQuery) error

The TraverseUserHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseUserHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseUserHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

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.

func (TraverseUserSetting) Intercept

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseUserSetting) Traverse

Traverse calls f(ctx, q).

type TraverseUserSettingHistory added in v0.4.5

type TraverseUserSettingHistory func(context.Context, *generated.UserSettingHistoryQuery) error

The TraverseUserSettingHistory type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseUserSettingHistory) Intercept added in v0.4.5

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseUserSettingHistory) Traverse added in v0.4.5

Traverse calls f(ctx, q).

type TraverseWebauthn added in v0.3.0

type TraverseWebauthn func(context.Context, *generated.WebauthnQuery) error

The TraverseWebauthn type is an adapter to allow the use of ordinary function as Traverser.

func (TraverseWebauthn) Intercept added in v0.3.0

Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline.

func (TraverseWebauthn) Traverse added in v0.3.0

func (f TraverseWebauthn) Traverse(ctx context.Context, q generated.Query) error

Traverse calls f(ctx, q).

type UserFunc

The UserFunc type is an adapter to allow the use of ordinary function as a Querier.

func (UserFunc) Query

Query calls f(ctx, q).

type UserHistoryFunc added in v0.4.5

type UserHistoryFunc func(context.Context, *generated.UserHistoryQuery) (generated.Value, error)

The UserHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (UserHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type UserSettingFunc

type UserSettingFunc func(context.Context, *generated.UserSettingQuery) (generated.Value, error)

The UserSettingFunc type is an adapter to allow the use of ordinary function as a Querier.

func (UserSettingFunc) Query

Query calls f(ctx, q).

type UserSettingHistoryFunc added in v0.4.5

type UserSettingHistoryFunc func(context.Context, *generated.UserSettingHistoryQuery) (generated.Value, error)

The UserSettingHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.

func (UserSettingHistoryFunc) Query added in v0.4.5

Query calls f(ctx, q).

type WebauthnFunc added in v0.3.0

type WebauthnFunc func(context.Context, *generated.WebauthnQuery) (generated.Value, error)

The WebauthnFunc type is an adapter to allow the use of ordinary function as a Querier.

func (WebauthnFunc) Query added in v0.3.0

Query calls f(ctx, q).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL