Documentation
¶
Index ¶
- func GetInputFieldDirectives(definition *ast.Definition) []*ast.Directive
- func GetObjectFieldDirectives(definition *ast.Definition) []*ast.Directive
- type DirectiveDefinitionBundle
- func (ddb *DirectiveDefinitionBundle) DirectiveDefinitionList() ast.DirectiveDefinitionList
- func (ddb *DirectiveDefinitionBundle) GetFieldDirectiveDefinition(name string) *FieldDirectiveDefinition
- func (ddb *DirectiveDefinitionBundle) GetInputFieldDirectiveDefinition(name string) *InputFieldDirectiveDefinition
- func (ddb *DirectiveDefinitionBundle) GetInputObjectDirectiveDefinition(name string) *InputObjectDirectiveDefinition
- func (ddb *DirectiveDefinitionBundle) GetObjectDirectiveDefinition(name string) *ObjectDirectiveDefinition
- type FieldDirectiveDefinition
- type InputFieldDirectiveDefinition
- type InputObjectDirectiveDefinition
- type ObjectDirectiveDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInputFieldDirectives ¶
func GetInputFieldDirectives(definition *ast.Definition) []*ast.Directive
func GetObjectFieldDirectives ¶
func GetObjectFieldDirectives(definition *ast.Definition) []*ast.Directive
Types ¶
type DirectiveDefinitionBundle ¶
type DirectiveDefinitionBundle struct {
Object []*ObjectDirectiveDefinition
InputObject []*InputObjectDirectiveDefinition
Field []*FieldDirectiveDefinition
InputField []*InputFieldDirectiveDefinition
}
func (*DirectiveDefinitionBundle) DirectiveDefinitionList ¶
func (ddb *DirectiveDefinitionBundle) DirectiveDefinitionList() ast.DirectiveDefinitionList
func (*DirectiveDefinitionBundle) GetFieldDirectiveDefinition ¶
func (ddb *DirectiveDefinitionBundle) GetFieldDirectiveDefinition(name string) *FieldDirectiveDefinition
func (*DirectiveDefinitionBundle) GetInputFieldDirectiveDefinition ¶
func (ddb *DirectiveDefinitionBundle) GetInputFieldDirectiveDefinition(name string) *InputFieldDirectiveDefinition
func (*DirectiveDefinitionBundle) GetInputObjectDirectiveDefinition ¶
func (ddb *DirectiveDefinitionBundle) GetInputObjectDirectiveDefinition(name string) *InputObjectDirectiveDefinition
func (*DirectiveDefinitionBundle) GetObjectDirectiveDefinition ¶
func (ddb *DirectiveDefinitionBundle) GetObjectDirectiveDefinition(name string) *ObjectDirectiveDefinition
type FieldDirectiveDefinition ¶
type FieldDirectiveDefinition struct {
Definition *ast.DirectiveDefinition
Validate func(directive *ast.Directive, field *ast.FieldDefinition) error
}
type InputFieldDirectiveDefinition ¶
type InputFieldDirectiveDefinition struct {
Definition *ast.DirectiveDefinition
Validate func(directive *ast.Directive, field *ast.FieldDefinition) error
}
type InputObjectDirectiveDefinition ¶
type InputObjectDirectiveDefinition struct {
Definition *ast.DirectiveDefinition
Validate func(directive *ast.Directive, object *ast.Definition) error
}
type ObjectDirectiveDefinition ¶
type ObjectDirectiveDefinition struct {
Definition *ast.DirectiveDefinition
Validator func(directive *ast.Directive, object *ast.Definition) error
}
Click to show internal directories.
Click to hide internal directories.