intercept

package
v0.0.0-...-738d89c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecisionDefFunc

type DecisionDefFunc func(context.Context, *ent.DecisionDefQuery) (ent.Value, error)

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

func (DecisionDefFunc) Query

func (f DecisionDefFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type DecisionReqDefFunc

type DecisionReqDefFunc func(context.Context, *ent.DecisionReqDefQuery) (ent.Value, error)

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

func (DecisionReqDefFunc) Query

Query calls f(ctx, q).

type DeploymentFunc

type DeploymentFunc func(context.Context, *ent.DeploymentQuery) (ent.Value, error)

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

func (DeploymentFunc) Query

func (f DeploymentFunc) Query(ctx context.Context, q ent.Query) (ent.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 ent.Querier) ent.Querier

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

type IdentityLinkFunc

type IdentityLinkFunc func(context.Context, *ent.IdentityLinkQuery) (ent.Value, error)

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

func (IdentityLinkFunc) Query

func (f IdentityLinkFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type OrgAppFunc

type OrgAppFunc func(context.Context, *ent.OrgAppQuery) (ent.Value, error)

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

func (OrgAppFunc) Query

func (f OrgAppFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type OrgRoleFunc

type OrgRoleFunc func(context.Context, *ent.OrgRoleQuery) (ent.Value, error)

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

func (OrgRoleFunc) Query

func (f OrgRoleFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type OrgRoleUserFunc

type OrgRoleUserFunc func(context.Context, *ent.OrgRoleUserQuery) (ent.Value, error)

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

func (OrgRoleUserFunc) Query

func (f OrgRoleUserFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type OrgUserFunc

type OrgUserFunc func(context.Context, *ent.OrgUserQuery) (ent.Value, error)

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

func (OrgUserFunc) Query

func (f OrgUserFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type ProcDefFunc

type ProcDefFunc func(context.Context, *ent.ProcDefQuery) (ent.Value, error)

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

func (ProcDefFunc) Query

func (f ProcDefFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type ProcInstFunc

type ProcInstFunc func(context.Context, *ent.ProcInstQuery) (ent.Value, error)

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

func (ProcInstFunc) Query

func (f ProcInstFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error)

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 ent.Query) (Query, error)

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

type TaskFunc

type TaskFunc func(context.Context, *ent.TaskQuery) (ent.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 ent.Query) (ent.Value, error)

Query calls f(ctx, q).

type TraverseDecisionDef

type TraverseDecisionDef func(context.Context, *ent.DecisionDefQuery) error

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

func (TraverseDecisionDef) Intercept

func (f TraverseDecisionDef) Intercept(next ent.Querier) ent.Querier

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

func (TraverseDecisionDef) Traverse

func (f TraverseDecisionDef) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseDecisionReqDef

type TraverseDecisionReqDef func(context.Context, *ent.DecisionReqDefQuery) error

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

func (TraverseDecisionReqDef) Intercept

func (f TraverseDecisionReqDef) Intercept(next ent.Querier) ent.Querier

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

func (TraverseDecisionReqDef) Traverse

func (f TraverseDecisionReqDef) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseDeployment

type TraverseDeployment func(context.Context, *ent.DeploymentQuery) error

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

func (TraverseDeployment) Intercept

func (f TraverseDeployment) Intercept(next ent.Querier) ent.Querier

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

func (TraverseDeployment) Traverse

func (f TraverseDeployment) Traverse(ctx context.Context, q ent.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 ent.Querier) ent.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 ent.Query) error

Traverse calls f(ctx, q).

type TraverseIdentityLink func(context.Context, *ent.IdentityLinkQuery) error

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

func (TraverseIdentityLink) Intercept

func (f TraverseIdentityLink) Intercept(next ent.Querier) ent.Querier

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

func (TraverseIdentityLink) Traverse

func (f TraverseIdentityLink) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseOrgApp

type TraverseOrgApp func(context.Context, *ent.OrgAppQuery) error

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

func (TraverseOrgApp) Intercept

func (f TraverseOrgApp) Intercept(next ent.Querier) ent.Querier

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

func (TraverseOrgApp) Traverse

func (f TraverseOrgApp) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseOrgRole

type TraverseOrgRole func(context.Context, *ent.OrgRoleQuery) error

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

func (TraverseOrgRole) Intercept

func (f TraverseOrgRole) Intercept(next ent.Querier) ent.Querier

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

func (TraverseOrgRole) Traverse

func (f TraverseOrgRole) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseOrgRoleUser

type TraverseOrgRoleUser func(context.Context, *ent.OrgRoleUserQuery) error

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

func (TraverseOrgRoleUser) Intercept

func (f TraverseOrgRoleUser) Intercept(next ent.Querier) ent.Querier

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

func (TraverseOrgRoleUser) Traverse

func (f TraverseOrgRoleUser) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseOrgUser

type TraverseOrgUser func(context.Context, *ent.OrgUserQuery) error

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

func (TraverseOrgUser) Intercept

func (f TraverseOrgUser) Intercept(next ent.Querier) ent.Querier

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

func (TraverseOrgUser) Traverse

func (f TraverseOrgUser) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseProcDef

type TraverseProcDef func(context.Context, *ent.ProcDefQuery) error

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

func (TraverseProcDef) Intercept

func (f TraverseProcDef) Intercept(next ent.Querier) ent.Querier

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

func (TraverseProcDef) Traverse

func (f TraverseProcDef) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseProcInst

type TraverseProcInst func(context.Context, *ent.ProcInstQuery) error

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

func (TraverseProcInst) Intercept

func (f TraverseProcInst) Intercept(next ent.Querier) ent.Querier

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

func (TraverseProcInst) Traverse

func (f TraverseProcInst) Traverse(ctx context.Context, q ent.Query) error

Traverse calls f(ctx, q).

type TraverseTask

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

Traverse calls f(ctx, q).

Jump to

Keyboard shortcuts

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