get

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(schema *schema.Schema, logger logrus.FieldLogger,
	modulesProvider ModulesProvider,
) (*graphql.Field, error)

Build the Local.Get part of the graphql tree

Types

type ModulesProvider

type ModulesProvider interface {
	GetArguments(class *models.Class) map[string]*graphql.ArgumentConfig
	ExtractSearchParams(arguments map[string]interface{}, className string) map[string]interface{}
	GetAdditionalFields(class *models.Class) map[string]*graphql.Field
	ExtractAdditionalField(className, name string, params []*ast.Argument) interface{}
	GraphQLAdditionalFieldNames() []string
	GetAll() []modulecapabilities.Module
}

type RequestsLog

type RequestsLog interface {
	Register(requestType string, identifier string)
}

RequestsLog is a local abstraction on the RequestsLog that needs to be provided to the graphQL API in order to log Local.Get queries.

type Resolver

type Resolver interface {
	GetClass(ctx context.Context, principal *models.Principal, info dto.GetParams) ([]interface{}, error)
}

Resolver is a local abstraction of the required UC resolvers

Jump to

Keyboard shortcuts

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