intercept

package
v0.0.0-...-c20d9b3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIEmployeeFunc

type AIEmployeeFunc func(context.Context, *db.AIEmployeeQuery) (db.Value, error)

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

func (AIEmployeeFunc) Query

func (f AIEmployeeFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type AITaskFunc

type AITaskFunc func(context.Context, *db.AITaskQuery) (db.Value, error)

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

func (AITaskFunc) Query

func (f AITaskFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type AdminFunc

type AdminFunc func(context.Context, *db.AdminQuery) (db.Value, error)

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

func (AdminFunc) Query

func (f AdminFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type AdminLoginHistoryFunc

type AdminLoginHistoryFunc func(context.Context, *db.AdminLoginHistoryQuery) (db.Value, error)

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

func (AdminLoginHistoryFunc) Query

Query calls f(ctx, q).

type AdminRoleFunc

type AdminRoleFunc func(context.Context, *db.AdminRoleQuery) (db.Value, error)

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

func (AdminRoleFunc) Query

func (f AdminRoleFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type ApiKeyFunc

type ApiKeyFunc func(context.Context, *db.ApiKeyQuery) (db.Value, error)

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

func (ApiKeyFunc) Query

func (f ApiKeyFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type BillingPlanFunc

type BillingPlanFunc func(context.Context, *db.BillingPlanQuery) (db.Value, error)

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

func (BillingPlanFunc) Query

func (f BillingPlanFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type BillingQuotaFunc

type BillingQuotaFunc func(context.Context, *db.BillingQuotaQuery) (db.Value, error)

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

func (BillingQuotaFunc) Query

func (f BillingQuotaFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type BillingRecordFunc

type BillingRecordFunc func(context.Context, *db.BillingRecordQuery) (db.Value, error)

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

func (BillingRecordFunc) Query

func (f BillingRecordFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type BillingUsageFunc

type BillingUsageFunc func(context.Context, *db.BillingUsageQuery) (db.Value, error)

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

func (BillingUsageFunc) Query

func (f BillingUsageFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type CodeSnippetFunc

type CodeSnippetFunc func(context.Context, *db.CodeSnippetQuery) (db.Value, error)

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

func (CodeSnippetFunc) Query

func (f CodeSnippetFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type ExtensionFunc

type ExtensionFunc func(context.Context, *db.ExtensionQuery) (db.Value, error)

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

func (ExtensionFunc) Query

func (f ExtensionFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

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 db.Querier) db.Querier

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

type InviteCodeFunc

type InviteCodeFunc func(context.Context, *db.InviteCodeQuery) (db.Value, error)

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

func (InviteCodeFunc) Query

func (f InviteCodeFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type LicenseFunc

type LicenseFunc func(context.Context, *db.LicenseQuery) (db.Value, error)

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

func (LicenseFunc) Query

func (f LicenseFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type ModelFunc

type ModelFunc func(context.Context, *db.ModelQuery) (db.Value, error)

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

func (ModelFunc) Query

func (f ModelFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type ModelProviderFunc

type ModelProviderFunc func(context.Context, *db.ModelProviderQuery) (db.Value, error)

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

func (ModelProviderFunc) Query

func (f ModelProviderFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type ModelProviderModelFunc

type ModelProviderModelFunc func(context.Context, *db.ModelProviderModelQuery) (db.Value, error)

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

func (ModelProviderModelFunc) 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 db.Query) (Query, error)

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

type RoleFunc

type RoleFunc func(context.Context, *db.RoleQuery) (db.Value, error)

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

func (RoleFunc) Query

func (f RoleFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type SecurityScanningFunc

type SecurityScanningFunc func(context.Context, *db.SecurityScanningQuery) (db.Value, error)

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

func (SecurityScanningFunc) Query

Query calls f(ctx, q).

type SecurityScanningResultFunc

type SecurityScanningResultFunc func(context.Context, *db.SecurityScanningResultQuery) (db.Value, error)

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

func (SecurityScanningResultFunc) Query

Query calls f(ctx, q).

type SettingFunc

type SettingFunc func(context.Context, *db.SettingQuery) (db.Value, error)

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

func (SettingFunc) Query

func (f SettingFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type TaskFunc

type TaskFunc func(context.Context, *db.TaskQuery) (db.Value, error)

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

func (TaskFunc) Query

func (f TaskFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type TaskRecordFunc

type TaskRecordFunc func(context.Context, *db.TaskRecordQuery) (db.Value, error)

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

func (TaskRecordFunc) Query

func (f TaskRecordFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type TraverseAIEmployee

type TraverseAIEmployee func(context.Context, *db.AIEmployeeQuery) error

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

func (TraverseAIEmployee) Intercept

func (f TraverseAIEmployee) Intercept(next db.Querier) db.Querier

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

func (TraverseAIEmployee) Traverse

func (f TraverseAIEmployee) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseAITask

type TraverseAITask func(context.Context, *db.AITaskQuery) error

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

func (TraverseAITask) Intercept

func (f TraverseAITask) Intercept(next db.Querier) db.Querier

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

func (TraverseAITask) Traverse

func (f TraverseAITask) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseAdmin

type TraverseAdmin func(context.Context, *db.AdminQuery) error

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

func (TraverseAdmin) Intercept

func (f TraverseAdmin) Intercept(next db.Querier) db.Querier

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

func (TraverseAdmin) Traverse

func (f TraverseAdmin) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseAdminLoginHistory

type TraverseAdminLoginHistory func(context.Context, *db.AdminLoginHistoryQuery) error

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

func (TraverseAdminLoginHistory) Intercept

func (f TraverseAdminLoginHistory) Intercept(next db.Querier) db.Querier

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

func (TraverseAdminLoginHistory) Traverse

Traverse calls f(ctx, q).

type TraverseAdminRole

type TraverseAdminRole func(context.Context, *db.AdminRoleQuery) error

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

func (TraverseAdminRole) Intercept

func (f TraverseAdminRole) Intercept(next db.Querier) db.Querier

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

func (TraverseAdminRole) Traverse

func (f TraverseAdminRole) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseApiKey

type TraverseApiKey func(context.Context, *db.ApiKeyQuery) error

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

func (TraverseApiKey) Intercept

func (f TraverseApiKey) Intercept(next db.Querier) db.Querier

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

func (TraverseApiKey) Traverse

func (f TraverseApiKey) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseBillingPlan

type TraverseBillingPlan func(context.Context, *db.BillingPlanQuery) error

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

func (TraverseBillingPlan) Intercept

func (f TraverseBillingPlan) Intercept(next db.Querier) db.Querier

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

func (TraverseBillingPlan) Traverse

func (f TraverseBillingPlan) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseBillingQuota

type TraverseBillingQuota func(context.Context, *db.BillingQuotaQuery) error

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

func (TraverseBillingQuota) Intercept

func (f TraverseBillingQuota) Intercept(next db.Querier) db.Querier

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

func (TraverseBillingQuota) Traverse

func (f TraverseBillingQuota) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseBillingRecord

type TraverseBillingRecord func(context.Context, *db.BillingRecordQuery) error

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

func (TraverseBillingRecord) Intercept

func (f TraverseBillingRecord) Intercept(next db.Querier) db.Querier

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

func (TraverseBillingRecord) Traverse

func (f TraverseBillingRecord) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseBillingUsage

type TraverseBillingUsage func(context.Context, *db.BillingUsageQuery) error

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

func (TraverseBillingUsage) Intercept

func (f TraverseBillingUsage) Intercept(next db.Querier) db.Querier

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

func (TraverseBillingUsage) Traverse

func (f TraverseBillingUsage) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseCodeSnippet

type TraverseCodeSnippet func(context.Context, *db.CodeSnippetQuery) error

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

func (TraverseCodeSnippet) Intercept

func (f TraverseCodeSnippet) Intercept(next db.Querier) db.Querier

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

func (TraverseCodeSnippet) Traverse

func (f TraverseCodeSnippet) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseExtension

type TraverseExtension func(context.Context, *db.ExtensionQuery) error

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

func (TraverseExtension) Intercept

func (f TraverseExtension) Intercept(next db.Querier) db.Querier

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

func (TraverseExtension) Traverse

func (f TraverseExtension) Traverse(ctx context.Context, q db.Query) error

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 db.Querier) db.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 db.Query) error

Traverse calls f(ctx, q).

type TraverseInviteCode

type TraverseInviteCode func(context.Context, *db.InviteCodeQuery) error

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

func (TraverseInviteCode) Intercept

func (f TraverseInviteCode) Intercept(next db.Querier) db.Querier

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

func (TraverseInviteCode) Traverse

func (f TraverseInviteCode) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseLicense

type TraverseLicense func(context.Context, *db.LicenseQuery) error

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

func (TraverseLicense) Intercept

func (f TraverseLicense) Intercept(next db.Querier) db.Querier

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

func (TraverseLicense) Traverse

func (f TraverseLicense) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseModel

type TraverseModel func(context.Context, *db.ModelQuery) error

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

func (TraverseModel) Intercept

func (f TraverseModel) Intercept(next db.Querier) db.Querier

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

func (TraverseModel) Traverse

func (f TraverseModel) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseModelProvider

type TraverseModelProvider func(context.Context, *db.ModelProviderQuery) error

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

func (TraverseModelProvider) Intercept

func (f TraverseModelProvider) Intercept(next db.Querier) db.Querier

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

func (TraverseModelProvider) Traverse

func (f TraverseModelProvider) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseModelProviderModel

type TraverseModelProviderModel func(context.Context, *db.ModelProviderModelQuery) error

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

func (TraverseModelProviderModel) Intercept

func (f TraverseModelProviderModel) Intercept(next db.Querier) db.Querier

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

func (TraverseModelProviderModel) Traverse

Traverse calls f(ctx, q).

type TraverseRole

type TraverseRole func(context.Context, *db.RoleQuery) error

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

func (TraverseRole) Intercept

func (f TraverseRole) Intercept(next db.Querier) db.Querier

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

func (TraverseRole) Traverse

func (f TraverseRole) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseSecurityScanning

type TraverseSecurityScanning func(context.Context, *db.SecurityScanningQuery) error

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

func (TraverseSecurityScanning) Intercept

func (f TraverseSecurityScanning) Intercept(next db.Querier) db.Querier

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

func (TraverseSecurityScanning) Traverse

Traverse calls f(ctx, q).

type TraverseSecurityScanningResult

type TraverseSecurityScanningResult func(context.Context, *db.SecurityScanningResultQuery) error

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

func (TraverseSecurityScanningResult) Intercept

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

func (TraverseSecurityScanningResult) Traverse

Traverse calls f(ctx, q).

type TraverseSetting

type TraverseSetting func(context.Context, *db.SettingQuery) error

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

func (TraverseSetting) Intercept

func (f TraverseSetting) Intercept(next db.Querier) db.Querier

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

func (TraverseSetting) Traverse

func (f TraverseSetting) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseTask

type TraverseTask func(context.Context, *db.TaskQuery) error

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

func (TraverseTask) Intercept

func (f TraverseTask) Intercept(next db.Querier) db.Querier

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

func (TraverseTask) Traverse

func (f TraverseTask) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseTaskRecord

type TraverseTaskRecord func(context.Context, *db.TaskRecordQuery) error

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

func (TraverseTaskRecord) Intercept

func (f TraverseTaskRecord) Intercept(next db.Querier) db.Querier

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

func (TraverseTaskRecord) Traverse

func (f TraverseTaskRecord) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseUser

type TraverseUser func(context.Context, *db.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 db.Querier) db.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 db.Query) error

Traverse calls f(ctx, q).

type TraverseUserGroup

type TraverseUserGroup func(context.Context, *db.UserGroupQuery) error

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

func (TraverseUserGroup) Intercept

func (f TraverseUserGroup) Intercept(next db.Querier) db.Querier

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

func (TraverseUserGroup) Traverse

func (f TraverseUserGroup) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseUserGroupAdmin

type TraverseUserGroupAdmin func(context.Context, *db.UserGroupAdminQuery) error

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

func (TraverseUserGroupAdmin) Intercept

func (f TraverseUserGroupAdmin) Intercept(next db.Querier) db.Querier

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

func (TraverseUserGroupAdmin) Traverse

func (f TraverseUserGroupAdmin) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseUserGroupUser

type TraverseUserGroupUser func(context.Context, *db.UserGroupUserQuery) error

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

func (TraverseUserGroupUser) Intercept

func (f TraverseUserGroupUser) Intercept(next db.Querier) db.Querier

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

func (TraverseUserGroupUser) Traverse

func (f TraverseUserGroupUser) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseUserIdentity

type TraverseUserIdentity func(context.Context, *db.UserIdentityQuery) error

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

func (TraverseUserIdentity) Intercept

func (f TraverseUserIdentity) Intercept(next db.Querier) db.Querier

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

func (TraverseUserIdentity) Traverse

func (f TraverseUserIdentity) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseUserLoginHistory

type TraverseUserLoginHistory func(context.Context, *db.UserLoginHistoryQuery) error

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

func (TraverseUserLoginHistory) Intercept

func (f TraverseUserLoginHistory) Intercept(next db.Querier) db.Querier

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

func (TraverseUserLoginHistory) Traverse

Traverse calls f(ctx, q).

type TraverseWorkspace

type TraverseWorkspace func(context.Context, *db.WorkspaceQuery) error

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

func (TraverseWorkspace) Intercept

func (f TraverseWorkspace) Intercept(next db.Querier) db.Querier

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

func (TraverseWorkspace) Traverse

func (f TraverseWorkspace) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type TraverseWorkspaceFile

type TraverseWorkspaceFile func(context.Context, *db.WorkspaceFileQuery) error

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

func (TraverseWorkspaceFile) Intercept

func (f TraverseWorkspaceFile) Intercept(next db.Querier) db.Querier

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

func (TraverseWorkspaceFile) Traverse

func (f TraverseWorkspaceFile) Traverse(ctx context.Context, q db.Query) error

Traverse calls f(ctx, q).

type UserFunc

type UserFunc func(context.Context, *db.UserQuery) (db.Value, error)

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

func (UserFunc) Query

func (f UserFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type UserGroupAdminFunc

type UserGroupAdminFunc func(context.Context, *db.UserGroupAdminQuery) (db.Value, error)

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

func (UserGroupAdminFunc) Query

func (f UserGroupAdminFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type UserGroupFunc

type UserGroupFunc func(context.Context, *db.UserGroupQuery) (db.Value, error)

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

func (UserGroupFunc) Query

func (f UserGroupFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type UserGroupUserFunc

type UserGroupUserFunc func(context.Context, *db.UserGroupUserQuery) (db.Value, error)

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

func (UserGroupUserFunc) Query

func (f UserGroupUserFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type UserIdentityFunc

type UserIdentityFunc func(context.Context, *db.UserIdentityQuery) (db.Value, error)

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

func (UserIdentityFunc) Query

func (f UserIdentityFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type UserLoginHistoryFunc

type UserLoginHistoryFunc func(context.Context, *db.UserLoginHistoryQuery) (db.Value, error)

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

func (UserLoginHistoryFunc) Query

Query calls f(ctx, q).

type WorkspaceFileFunc

type WorkspaceFileFunc func(context.Context, *db.WorkspaceFileQuery) (db.Value, error)

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

func (WorkspaceFileFunc) Query

func (f WorkspaceFileFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

type WorkspaceFunc

type WorkspaceFunc func(context.Context, *db.WorkspaceQuery) (db.Value, error)

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

func (WorkspaceFunc) Query

func (f WorkspaceFunc) Query(ctx context.Context, q db.Query) (db.Value, error)

Query calls f(ctx, q).

Jump to

Keyboard shortcuts

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