graph

package
v0.0.0-...-e59a564 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GIN_CONTEXT_KEY = &contextKey{"gincontext"}

Functions

func CurrentUserHasMinimumProjectRole

func CurrentUserHasMinimumProjectRole(ctx context.Context, client *ent.Client, projectId uuid.UUID, role membership.Role) (bool, error)

func GinContextFromContext

func GinContextFromContext(ctx context.Context) (*gin.Context, error)

func GinContextToContextMiddleware

func GinContextToContextMiddleware() gin.HandlerFunc

func IDFuzzySearch

func IDFuzzySearch(search string) func(*sql.Selector)

func NewSchema

func NewSchema(cbleConfig *config.Config, client *ent.Client, cbleServer *providers.CBLEServer) graphql.ExecutableSchema

NewSchema creates a graphql executable schema.

func WithTx

func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func (*Resolver) Blueprint

func (r *Resolver) Blueprint() generated.BlueprintResolver

Blueprint returns generated.BlueprintResolver implementation.

func (*Resolver) Deployment

func (r *Resolver) Deployment() generated.DeploymentResolver

Deployment returns generated.DeploymentResolver implementation.

func (*Resolver) DeploymentNode

func (r *Resolver) DeploymentNode() generated.DeploymentNodeResolver

DeploymentNode returns generated.DeploymentNodeResolver implementation.

func (*Resolver) GrantedPermission

func (r *Resolver) GrantedPermission() generated.GrantedPermissionResolver

GrantedPermission returns generated.GrantedPermissionResolver implementation.

func (*Resolver) Group

func (r *Resolver) Group() generated.GroupResolver

Group returns generated.GroupResolver implementation.

func (*Resolver) GroupMembership

func (r *Resolver) GroupMembership() generated.GroupMembershipResolver

GroupMembership returns generated.GroupMembershipResolver implementation.

func (*Resolver) Membership

func (r *Resolver) Membership() generated.MembershipResolver

Membership returns generated.MembershipResolver implementation.

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Project

func (r *Resolver) Project() generated.ProjectResolver

Project returns generated.ProjectResolver implementation.

func (*Resolver) Provider

func (r *Resolver) Provider() generated.ProviderResolver

Provider returns generated.ProviderResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

func (*Resolver) Resource

func (r *Resolver) Resource() generated.ResourceResolver

Resource returns generated.ResourceResolver implementation.

func (*Resolver) User

func (r *Resolver) User() generated.UserResolver

User returns generated.UserResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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