Documentation ¶
Index ¶
- func GinContextFromContext(ctx context.Context) (*gin.Context, error)
- func GinContextToContextMiddleware() gin.HandlerFunc
- func NewSchema(client *ent.Client, cbleServer *providers.CBLEServer, ...) graphql.ExecutableSchema
- func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error
- type Resolver
- func (r *Resolver) Blueprint() generated.BlueprintResolver
- func (r *Resolver) Deployment() generated.DeploymentResolver
- func (r *Resolver) Group() generated.GroupResolver
- func (r *Resolver) Mutation() generated.MutationResolver
- func (r *Resolver) Permission() generated.PermissionResolver
- func (r *Resolver) PermissionPolicy() generated.PermissionPolicyResolver
- func (r *Resolver) Provider() generated.ProviderResolver
- func (r *Resolver) ProviderCommand() generated.ProviderCommandResolver
- func (r *Resolver) Query() generated.QueryResolver
- func (r *Resolver) User() generated.UserResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinContextToContextMiddleware ¶
func GinContextToContextMiddleware() gin.HandlerFunc
func NewSchema ¶
func NewSchema(client *ent.Client, cbleServer *providers.CBLEServer, permissionEngine *permissionengine.PermissionEngine) graphql.ExecutableSchema
NewSchema creates a graphql executable schema.
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) Group ¶
func (r *Resolver) Group() generated.GroupResolver
Group returns generated.GroupResolver implementation.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Permission ¶
func (r *Resolver) Permission() generated.PermissionResolver
Permission returns generated.PermissionResolver implementation.
func (*Resolver) PermissionPolicy ¶
func (r *Resolver) PermissionPolicy() generated.PermissionPolicyResolver
PermissionPolicy returns generated.PermissionPolicyResolver implementation.
func (*Resolver) Provider ¶
func (r *Resolver) Provider() generated.ProviderResolver
Provider returns generated.ProviderResolver implementation.
func (*Resolver) ProviderCommand ¶
func (r *Resolver) ProviderCommand() generated.ProviderCommandResolver
ProviderCommand returns generated.ProviderCommandResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
func (*Resolver) User ¶
func (r *Resolver) User() generated.UserResolver
User returns generated.UserResolver implementation.