mergers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Basic = &Merger{
	getValueID: defaultValueID,
	getNodeID:  defaultNodeID,
}

Basic is the default merger strategy

Functions

func OneArgument

func OneArgument(curr []*ast.Argument, more ...*ast.Argument) (*ast.Argument, error)

OneArgument attempts to merge all members of Argument into a singe *ast.Argument. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneBooleanValue

func OneBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) (*ast.BooleanValue, error)

OneBooleanValue attempts to merge all members of BooleanValue into a singe *ast.BooleanValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneDirective

func OneDirective(curr []*ast.Directive, more ...*ast.Directive) (*ast.Directive, error)

OneDirective attempts to merge all members of Directive into a singe *ast.Directive. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneDirectiveDefinition

func OneDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) (*ast.DirectiveDefinition, error)

OneDirectiveDefinition attempts to merge all members of DirectiveDefinition into a singe *ast.DirectiveDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneDocument

func OneDocument(curr []*ast.Document, more ...*ast.Document) (*ast.Document, error)

OneDocument attempts to merge all members of Document into a singe *ast.Document. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneEnumDefinition

func OneEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) (*ast.EnumDefinition, error)

OneEnumDefinition attempts to merge all members of EnumDefinition into a singe *ast.EnumDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneEnumValue

func OneEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) (*ast.EnumValue, error)

OneEnumValue attempts to merge all members of EnumValue into a singe *ast.EnumValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneEnumValueDefinition

func OneEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) (*ast.EnumValueDefinition, error)

OneEnumValueDefinition attempts to merge all members of EnumValueDefinition into a singe *ast.EnumValueDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneField

func OneField(curr []*ast.Field, more ...*ast.Field) (*ast.Field, error)

OneField attempts to merge all members of Field into a singe *ast.Field. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneFieldDefinition

func OneFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) (*ast.FieldDefinition, error)

OneFieldDefinition attempts to merge all members of FieldDefinition into a singe *ast.FieldDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneFloatValue

func OneFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) (*ast.FloatValue, error)

OneFloatValue attempts to merge all members of FloatValue into a singe *ast.FloatValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneFragmentDefinition

func OneFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) (*ast.FragmentDefinition, error)

OneFragmentDefinition attempts to merge all members of FragmentDefinition into a singe *ast.FragmentDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneFragmentSpread

func OneFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) (*ast.FragmentSpread, error)

OneFragmentSpread attempts to merge all members of FragmentSpread into a singe *ast.FragmentSpread. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneInlineFragment

func OneInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) (*ast.InlineFragment, error)

OneInlineFragment attempts to merge all members of InlineFragment into a singe *ast.InlineFragment. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneInputObjectDefinition

func OneInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) (*ast.InputObjectDefinition, error)

OneInputObjectDefinition attempts to merge all members of InputObjectDefinition into a singe *ast.InputObjectDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneInputValueDefinition

func OneInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) (*ast.InputValueDefinition, error)

OneInputValueDefinition attempts to merge all members of InputValueDefinition into a singe *ast.InputValueDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneIntValue

func OneIntValue(curr []*ast.IntValue, more ...*ast.IntValue) (*ast.IntValue, error)

OneIntValue attempts to merge all members of IntValue into a singe *ast.IntValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneInterfaceDefinition

func OneInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) (*ast.InterfaceDefinition, error)

OneInterfaceDefinition attempts to merge all members of InterfaceDefinition into a singe *ast.InterfaceDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneList

func OneList(curr []*ast.List, more ...*ast.List) (*ast.List, error)

OneList attempts to merge all members of List into a singe *ast.List. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneName

func OneName(curr []*ast.Name, more ...*ast.Name) (*ast.Name, error)

OneName attempts to merge all members of Name into a singe *ast.Name. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneNamed

func OneNamed(curr []*ast.Named, more ...*ast.Named) (*ast.Named, error)

OneNamed attempts to merge all members of Named into a singe *ast.Named. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneNode

func OneNode(curr []ast.Node, more ...ast.Node) (ast.Node, error)

OneNode attempts to merge all members of Node into a singe ast.Node. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneNonNull

func OneNonNull(curr []*ast.NonNull, more ...*ast.NonNull) (*ast.NonNull, error)

OneNonNull attempts to merge all members of NonNull into a singe *ast.NonNull. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneObjectDefinition

func OneObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) (*ast.ObjectDefinition, error)

OneObjectDefinition attempts to merge all members of ObjectDefinition into a singe *ast.ObjectDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneObjectField

func OneObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) (*ast.ObjectField, error)

OneObjectField attempts to merge all members of ObjectField into a singe *ast.ObjectField. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneObjectValue

func OneObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) (*ast.ObjectValue, error)

OneObjectValue attempts to merge all members of ObjectValue into a singe *ast.ObjectValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneOperationDefinition

func OneOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) (*ast.OperationDefinition, error)

OneOperationDefinition attempts to merge all members of OperationDefinition into a singe *ast.OperationDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneOperationTypeDefinition

func OneOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) (*ast.OperationTypeDefinition, error)

OneOperationTypeDefinition attempts to merge all members of OperationTypeDefinition into a singe *ast.OperationTypeDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneScalarDefinition

func OneScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) (*ast.ScalarDefinition, error)

OneScalarDefinition attempts to merge all members of ScalarDefinition into a singe *ast.ScalarDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneSchemaDefinition

func OneSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) (*ast.SchemaDefinition, error)

OneSchemaDefinition attempts to merge all members of SchemaDefinition into a singe *ast.SchemaDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneSelection

func OneSelection(curr []ast.Selection, more ...ast.Selection) (ast.Selection, error)

OneSelection attempts to merge all members of Selection into a singe ast.Selection. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneSelectionSet

func OneSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) (*ast.SelectionSet, error)

OneSelectionSet attempts to merge all members of SelectionSet into a singe *ast.SelectionSet. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneStringValue

func OneStringValue(curr []*ast.StringValue, more ...*ast.StringValue) (*ast.StringValue, error)

OneStringValue attempts to merge all members of StringValue into a singe *ast.StringValue. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneType

func OneType(curr []ast.Type, more ...ast.Type) (ast.Type, error)

OneType attempts to merge all members of Type into a singe ast.Type. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneTypeExtensionDefinition

func OneTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) (*ast.TypeExtensionDefinition, error)

OneTypeExtensionDefinition attempts to merge all members of TypeExtensionDefinition into a singe *ast.TypeExtensionDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneUnionDefinition

func OneUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) (*ast.UnionDefinition, error)

OneUnionDefinition attempts to merge all members of UnionDefinition into a singe *ast.UnionDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneValue

func OneValue(curr []ast.Value, more ...ast.Value) (ast.Value, error)

OneValue attempts to merge all members of Value into a singe ast.Value. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneVariable

func OneVariable(curr []*ast.Variable, more ...*ast.Variable) (*ast.Variable, error)

OneVariable attempts to merge all members of Variable into a singe *ast.Variable. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func OneVariableDefinition

func OneVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) (*ast.VariableDefinition, error)

OneVariableDefinition attempts to merge all members of VariableDefinition into a singe *ast.VariableDefinition. If this cannot be done, this method will return an error. This uses the default basic merge strategy.

func SimilarArgument

func SimilarArgument(curr []*ast.Argument, more ...*ast.Argument) ([]*ast.Argument, error)

SimilarArgument merges declarations of Argument that share the same Argument value. This uses the default basic merge strategy.

func SimilarBooleanValue

func SimilarBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) ([]*ast.BooleanValue, error)

SimilarBooleanValue merges declarations of BooleanValue that share the same BooleanValue value. This uses the default basic merge strategy.

func SimilarDirective

func SimilarDirective(curr []*ast.Directive, more ...*ast.Directive) ([]*ast.Directive, error)

SimilarDirective merges declarations of Directive that share the same Directive value. This uses the default basic merge strategy.

func SimilarDirectiveDefinition

func SimilarDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) ([]*ast.DirectiveDefinition, error)

SimilarDirectiveDefinition merges declarations of DirectiveDefinition that share the same DirectiveDefinition value. This uses the default basic merge strategy.

func SimilarDocument

func SimilarDocument(curr []*ast.Document, more ...*ast.Document) ([]*ast.Document, error)

SimilarDocument merges declarations of Document that share the same Document value. This uses the default basic merge strategy.

func SimilarEnumDefinition

func SimilarEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) ([]*ast.EnumDefinition, error)

SimilarEnumDefinition merges declarations of EnumDefinition that share the same EnumDefinition value. This uses the default basic merge strategy.

func SimilarEnumValue

func SimilarEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) ([]*ast.EnumValue, error)

SimilarEnumValue merges declarations of EnumValue that share the same EnumValue value. This uses the default basic merge strategy.

func SimilarEnumValueDefinition

func SimilarEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) ([]*ast.EnumValueDefinition, error)

SimilarEnumValueDefinition merges declarations of EnumValueDefinition that share the same EnumValueDefinition value. This uses the default basic merge strategy.

func SimilarField

func SimilarField(curr []*ast.Field, more ...*ast.Field) ([]*ast.Field, error)

SimilarField merges declarations of Field that share the same Field value. This uses the default basic merge strategy.

func SimilarFieldDefinition

func SimilarFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) ([]*ast.FieldDefinition, error)

SimilarFieldDefinition merges declarations of FieldDefinition that share the same FieldDefinition value. This uses the default basic merge strategy.

func SimilarFloatValue

func SimilarFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) ([]*ast.FloatValue, error)

SimilarFloatValue merges declarations of FloatValue that share the same FloatValue value. This uses the default basic merge strategy.

func SimilarFragmentDefinition

func SimilarFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) ([]*ast.FragmentDefinition, error)

SimilarFragmentDefinition merges declarations of FragmentDefinition that share the same FragmentDefinition value. This uses the default basic merge strategy.

func SimilarFragmentSpread

func SimilarFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) ([]*ast.FragmentSpread, error)

SimilarFragmentSpread merges declarations of FragmentSpread that share the same FragmentSpread value. This uses the default basic merge strategy.

func SimilarInlineFragment

func SimilarInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) ([]*ast.InlineFragment, error)

SimilarInlineFragment merges declarations of InlineFragment that share the same InlineFragment value. This uses the default basic merge strategy.

func SimilarInputObjectDefinition

func SimilarInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) ([]*ast.InputObjectDefinition, error)

SimilarInputObjectDefinition merges declarations of InputObjectDefinition that share the same InputObjectDefinition value. This uses the default basic merge strategy.

func SimilarInputValueDefinition

func SimilarInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) ([]*ast.InputValueDefinition, error)

SimilarInputValueDefinition merges declarations of InputValueDefinition that share the same InputValueDefinition value. This uses the default basic merge strategy.

func SimilarIntValue

func SimilarIntValue(curr []*ast.IntValue, more ...*ast.IntValue) ([]*ast.IntValue, error)

SimilarIntValue merges declarations of IntValue that share the same IntValue value. This uses the default basic merge strategy.

func SimilarInterfaceDefinition

func SimilarInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) ([]*ast.InterfaceDefinition, error)

SimilarInterfaceDefinition merges declarations of InterfaceDefinition that share the same InterfaceDefinition value. This uses the default basic merge strategy.

func SimilarList

func SimilarList(curr []*ast.List, more ...*ast.List) ([]*ast.List, error)

SimilarList merges declarations of List that share the same List value. This uses the default basic merge strategy.

func SimilarName

func SimilarName(curr []*ast.Name, more ...*ast.Name) ([]*ast.Name, error)

SimilarName merges declarations of Name that share the same Name value. This uses the default basic merge strategy.

func SimilarNamed

func SimilarNamed(curr []*ast.Named, more ...*ast.Named) ([]*ast.Named, error)

SimilarNamed merges declarations of Named that share the same Named value. This uses the default basic merge strategy.

func SimilarNode

func SimilarNode(curr []ast.Node, more ...ast.Node) ([]ast.Node, error)

SimilarNode merges declarations of Node that share the same Node value. This uses the default basic merge strategy.

func SimilarNonNull

func SimilarNonNull(curr []*ast.NonNull, more ...*ast.NonNull) ([]*ast.NonNull, error)

SimilarNonNull merges declarations of NonNull that share the same NonNull value. This uses the default basic merge strategy.

func SimilarObjectDefinition

func SimilarObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) ([]*ast.ObjectDefinition, error)

SimilarObjectDefinition merges declarations of ObjectDefinition that share the same ObjectDefinition value. This uses the default basic merge strategy.

func SimilarObjectField

func SimilarObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) ([]*ast.ObjectField, error)

SimilarObjectField merges declarations of ObjectField that share the same ObjectField value. This uses the default basic merge strategy.

func SimilarObjectValue

func SimilarObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) ([]*ast.ObjectValue, error)

SimilarObjectValue merges declarations of ObjectValue that share the same ObjectValue value. This uses the default basic merge strategy.

func SimilarOperationDefinition

func SimilarOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) ([]*ast.OperationDefinition, error)

SimilarOperationDefinition merges declarations of OperationDefinition that share the same OperationDefinition value. This uses the default basic merge strategy.

func SimilarOperationTypeDefinition

func SimilarOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) ([]*ast.OperationTypeDefinition, error)

SimilarOperationTypeDefinition merges declarations of OperationTypeDefinition that share the same OperationTypeDefinition value. This uses the default basic merge strategy.

func SimilarScalarDefinition

func SimilarScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) ([]*ast.ScalarDefinition, error)

SimilarScalarDefinition merges declarations of ScalarDefinition that share the same ScalarDefinition value. This uses the default basic merge strategy.

func SimilarSchemaDefinition

func SimilarSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) ([]*ast.SchemaDefinition, error)

SimilarSchemaDefinition merges declarations of SchemaDefinition that share the same SchemaDefinition value. This uses the default basic merge strategy.

func SimilarSelection

func SimilarSelection(curr []ast.Selection, more ...ast.Selection) ([]ast.Selection, error)

SimilarSelection merges declarations of Selection that share the same Selection value. This uses the default basic merge strategy.

func SimilarSelectionSet

func SimilarSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) ([]*ast.SelectionSet, error)

SimilarSelectionSet merges declarations of SelectionSet that share the same SelectionSet value. This uses the default basic merge strategy.

func SimilarStringValue

func SimilarStringValue(curr []*ast.StringValue, more ...*ast.StringValue) ([]*ast.StringValue, error)

SimilarStringValue merges declarations of StringValue that share the same StringValue value. This uses the default basic merge strategy.

func SimilarType

func SimilarType(curr []ast.Type, more ...ast.Type) ([]ast.Type, error)

SimilarType merges declarations of Type that share the same Type value. This uses the default basic merge strategy.

func SimilarTypeExtensionDefinition

func SimilarTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) ([]*ast.TypeExtensionDefinition, error)

SimilarTypeExtensionDefinition merges declarations of TypeExtensionDefinition that share the same TypeExtensionDefinition value. This uses the default basic merge strategy.

func SimilarUnionDefinition

func SimilarUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) ([]*ast.UnionDefinition, error)

SimilarUnionDefinition merges declarations of UnionDefinition that share the same UnionDefinition value. This uses the default basic merge strategy.

func SimilarValue

func SimilarValue(curr []ast.Value, more ...ast.Value) ([]ast.Value, error)

SimilarValue merges declarations of Value that share the same Value value. This uses the default basic merge strategy.

func SimilarVariable

func SimilarVariable(curr []*ast.Variable, more ...*ast.Variable) ([]*ast.Variable, error)

SimilarVariable merges declarations of Variable that share the same Variable value. This uses the default basic merge strategy.

func SimilarVariableDefinition

func SimilarVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) ([]*ast.VariableDefinition, error)

SimilarVariableDefinition merges declarations of VariableDefinition that share the same VariableDefinition value. This uses the default basic merge strategy.

Types

type Merger

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

Merger ...

func NewMerger

func NewMerger(opts ...func(*Merger) error) (*Merger, error)

NewMerger ...

func (*Merger) OneArgument

func (m *Merger) OneArgument(curr []*ast.Argument, more ...*ast.Argument) (*ast.Argument, error)

OneArgument attempts to merge all members of Argument into a singe *ast.Argument. If this cannot be done, this method will return an error.

func (*Merger) OneBooleanValue

func (m *Merger) OneBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) (*ast.BooleanValue, error)

OneBooleanValue attempts to merge all members of BooleanValue into a singe *ast.BooleanValue. If this cannot be done, this method will return an error.

func (*Merger) OneDirective

func (m *Merger) OneDirective(curr []*ast.Directive, more ...*ast.Directive) (*ast.Directive, error)

OneDirective attempts to merge all members of Directive into a singe *ast.Directive. If this cannot be done, this method will return an error.

func (*Merger) OneDirectiveDefinition

func (m *Merger) OneDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) (*ast.DirectiveDefinition, error)

OneDirectiveDefinition attempts to merge all members of DirectiveDefinition into a singe *ast.DirectiveDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneDocument

func (m *Merger) OneDocument(curr []*ast.Document, more ...*ast.Document) (*ast.Document, error)

OneDocument attempts to merge all members of Document into a singe *ast.Document. If this cannot be done, this method will return an error.

func (*Merger) OneEnumDefinition

func (m *Merger) OneEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) (*ast.EnumDefinition, error)

OneEnumDefinition attempts to merge all members of EnumDefinition into a singe *ast.EnumDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneEnumValue

func (m *Merger) OneEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) (*ast.EnumValue, error)

OneEnumValue attempts to merge all members of EnumValue into a singe *ast.EnumValue. If this cannot be done, this method will return an error.

func (*Merger) OneEnumValueDefinition

func (m *Merger) OneEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) (*ast.EnumValueDefinition, error)

OneEnumValueDefinition attempts to merge all members of EnumValueDefinition into a singe *ast.EnumValueDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneField

func (m *Merger) OneField(curr []*ast.Field, more ...*ast.Field) (*ast.Field, error)

OneField attempts to merge all members of Field into a singe *ast.Field. If this cannot be done, this method will return an error.

func (*Merger) OneFieldDefinition

func (m *Merger) OneFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) (*ast.FieldDefinition, error)

OneFieldDefinition attempts to merge all members of FieldDefinition into a singe *ast.FieldDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneFloatValue

func (m *Merger) OneFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) (*ast.FloatValue, error)

OneFloatValue attempts to merge all members of FloatValue into a singe *ast.FloatValue. If this cannot be done, this method will return an error.

func (*Merger) OneFragmentDefinition

func (m *Merger) OneFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) (*ast.FragmentDefinition, error)

OneFragmentDefinition attempts to merge all members of FragmentDefinition into a singe *ast.FragmentDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneFragmentSpread

func (m *Merger) OneFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) (*ast.FragmentSpread, error)

OneFragmentSpread attempts to merge all members of FragmentSpread into a singe *ast.FragmentSpread. If this cannot be done, this method will return an error.

func (*Merger) OneInlineFragment

func (m *Merger) OneInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) (*ast.InlineFragment, error)

OneInlineFragment attempts to merge all members of InlineFragment into a singe *ast.InlineFragment. If this cannot be done, this method will return an error.

func (*Merger) OneInputObjectDefinition

func (m *Merger) OneInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) (*ast.InputObjectDefinition, error)

OneInputObjectDefinition attempts to merge all members of InputObjectDefinition into a singe *ast.InputObjectDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneInputValueDefinition

func (m *Merger) OneInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) (*ast.InputValueDefinition, error)

OneInputValueDefinition attempts to merge all members of InputValueDefinition into a singe *ast.InputValueDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneIntValue

func (m *Merger) OneIntValue(curr []*ast.IntValue, more ...*ast.IntValue) (*ast.IntValue, error)

OneIntValue attempts to merge all members of IntValue into a singe *ast.IntValue. If this cannot be done, this method will return an error.

func (*Merger) OneInterfaceDefinition

func (m *Merger) OneInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) (*ast.InterfaceDefinition, error)

OneInterfaceDefinition attempts to merge all members of InterfaceDefinition into a singe *ast.InterfaceDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneList

func (m *Merger) OneList(curr []*ast.List, more ...*ast.List) (*ast.List, error)

OneList attempts to merge all members of List into a singe *ast.List. If this cannot be done, this method will return an error.

func (*Merger) OneName

func (m *Merger) OneName(curr []*ast.Name, more ...*ast.Name) (*ast.Name, error)

OneName attempts to merge all members of Name into a singe *ast.Name. If this cannot be done, this method will return an error.

func (*Merger) OneNamed

func (m *Merger) OneNamed(curr []*ast.Named, more ...*ast.Named) (*ast.Named, error)

OneNamed attempts to merge all members of Named into a singe *ast.Named. If this cannot be done, this method will return an error.

func (*Merger) OneNode

func (m *Merger) OneNode(curr []ast.Node, more ...ast.Node) (ast.Node, error)

OneNode attempts to merge all members of Node into a singe ast.Node. If this cannot be done, this method will return an error.

func (*Merger) OneNonNull

func (m *Merger) OneNonNull(curr []*ast.NonNull, more ...*ast.NonNull) (*ast.NonNull, error)

OneNonNull attempts to merge all members of NonNull into a singe *ast.NonNull. If this cannot be done, this method will return an error.

func (*Merger) OneObjectDefinition

func (m *Merger) OneObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) (*ast.ObjectDefinition, error)

OneObjectDefinition attempts to merge all members of ObjectDefinition into a singe *ast.ObjectDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneObjectField

func (m *Merger) OneObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) (*ast.ObjectField, error)

OneObjectField attempts to merge all members of ObjectField into a singe *ast.ObjectField. If this cannot be done, this method will return an error.

func (*Merger) OneObjectValue

func (m *Merger) OneObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) (*ast.ObjectValue, error)

OneObjectValue attempts to merge all members of ObjectValue into a singe *ast.ObjectValue. If this cannot be done, this method will return an error.

func (*Merger) OneOperationDefinition

func (m *Merger) OneOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) (*ast.OperationDefinition, error)

OneOperationDefinition attempts to merge all members of OperationDefinition into a singe *ast.OperationDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneOperationTypeDefinition

func (m *Merger) OneOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) (*ast.OperationTypeDefinition, error)

OneOperationTypeDefinition attempts to merge all members of OperationTypeDefinition into a singe *ast.OperationTypeDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneScalarDefinition

func (m *Merger) OneScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) (*ast.ScalarDefinition, error)

OneScalarDefinition attempts to merge all members of ScalarDefinition into a singe *ast.ScalarDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneSchemaDefinition

func (m *Merger) OneSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) (*ast.SchemaDefinition, error)

OneSchemaDefinition attempts to merge all members of SchemaDefinition into a singe *ast.SchemaDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneSelection

func (m *Merger) OneSelection(curr []ast.Selection, more ...ast.Selection) (ast.Selection, error)

OneSelection attempts to merge all members of Selection into a singe ast.Selection. If this cannot be done, this method will return an error.

func (*Merger) OneSelectionSet

func (m *Merger) OneSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) (*ast.SelectionSet, error)

OneSelectionSet attempts to merge all members of SelectionSet into a singe *ast.SelectionSet. If this cannot be done, this method will return an error.

func (*Merger) OneStringValue

func (m *Merger) OneStringValue(curr []*ast.StringValue, more ...*ast.StringValue) (*ast.StringValue, error)

OneStringValue attempts to merge all members of StringValue into a singe *ast.StringValue. If this cannot be done, this method will return an error.

func (*Merger) OneType

func (m *Merger) OneType(curr []ast.Type, more ...ast.Type) (ast.Type, error)

OneType attempts to merge all members of Type into a singe ast.Type. If this cannot be done, this method will return an error.

func (*Merger) OneTypeExtensionDefinition

func (m *Merger) OneTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) (*ast.TypeExtensionDefinition, error)

OneTypeExtensionDefinition attempts to merge all members of TypeExtensionDefinition into a singe *ast.TypeExtensionDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneUnionDefinition

func (m *Merger) OneUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) (*ast.UnionDefinition, error)

OneUnionDefinition attempts to merge all members of UnionDefinition into a singe *ast.UnionDefinition. If this cannot be done, this method will return an error.

func (*Merger) OneValue

func (m *Merger) OneValue(curr []ast.Value, more ...ast.Value) (ast.Value, error)

OneValue attempts to merge all members of Value into a singe ast.Value. If this cannot be done, this method will return an error.

func (*Merger) OneVariable

func (m *Merger) OneVariable(curr []*ast.Variable, more ...*ast.Variable) (*ast.Variable, error)

OneVariable attempts to merge all members of Variable into a singe *ast.Variable. If this cannot be done, this method will return an error.

func (*Merger) OneVariableDefinition

func (m *Merger) OneVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) (*ast.VariableDefinition, error)

OneVariableDefinition attempts to merge all members of VariableDefinition into a singe *ast.VariableDefinition. If this cannot be done, this method will return an error.

func (*Merger) Onebool

func (m *Merger) Onebool(curr []bool, more ...bool) (bool, error)

Onebool merges strings

func (*Merger) Onestring

func (m *Merger) Onestring(curr []string, more ...string) (string, error)

Onestring merges strings

func (*Merger) SimilarArgument

func (m *Merger) SimilarArgument(curr []*ast.Argument, more ...*ast.Argument) ([]*ast.Argument, error)

SimilarArgument merges declarations of Argument that share the same Argument value.

func (*Merger) SimilarBooleanValue

func (m *Merger) SimilarBooleanValue(curr []*ast.BooleanValue, more ...*ast.BooleanValue) ([]*ast.BooleanValue, error)

SimilarBooleanValue merges declarations of BooleanValue that share the same BooleanValue value.

func (*Merger) SimilarDirective

func (m *Merger) SimilarDirective(curr []*ast.Directive, more ...*ast.Directive) ([]*ast.Directive, error)

SimilarDirective merges declarations of Directive that share the same Directive value.

func (*Merger) SimilarDirectiveDefinition

func (m *Merger) SimilarDirectiveDefinition(curr []*ast.DirectiveDefinition, more ...*ast.DirectiveDefinition) ([]*ast.DirectiveDefinition, error)

SimilarDirectiveDefinition merges declarations of DirectiveDefinition that share the same DirectiveDefinition value.

func (*Merger) SimilarDocument

func (m *Merger) SimilarDocument(curr []*ast.Document, more ...*ast.Document) ([]*ast.Document, error)

SimilarDocument merges declarations of Document that share the same Document value.

func (*Merger) SimilarEnumDefinition

func (m *Merger) SimilarEnumDefinition(curr []*ast.EnumDefinition, more ...*ast.EnumDefinition) ([]*ast.EnumDefinition, error)

SimilarEnumDefinition merges declarations of EnumDefinition that share the same EnumDefinition value.

func (*Merger) SimilarEnumValue

func (m *Merger) SimilarEnumValue(curr []*ast.EnumValue, more ...*ast.EnumValue) ([]*ast.EnumValue, error)

SimilarEnumValue merges declarations of EnumValue that share the same EnumValue value.

func (*Merger) SimilarEnumValueDefinition

func (m *Merger) SimilarEnumValueDefinition(curr []*ast.EnumValueDefinition, more ...*ast.EnumValueDefinition) ([]*ast.EnumValueDefinition, error)

SimilarEnumValueDefinition merges declarations of EnumValueDefinition that share the same EnumValueDefinition value.

func (*Merger) SimilarField

func (m *Merger) SimilarField(curr []*ast.Field, more ...*ast.Field) ([]*ast.Field, error)

SimilarField merges declarations of Field that share the same Field value.

func (*Merger) SimilarFieldDefinition

func (m *Merger) SimilarFieldDefinition(curr []*ast.FieldDefinition, more ...*ast.FieldDefinition) ([]*ast.FieldDefinition, error)

SimilarFieldDefinition merges declarations of FieldDefinition that share the same FieldDefinition value.

func (*Merger) SimilarFloatValue

func (m *Merger) SimilarFloatValue(curr []*ast.FloatValue, more ...*ast.FloatValue) ([]*ast.FloatValue, error)

SimilarFloatValue merges declarations of FloatValue that share the same FloatValue value.

func (*Merger) SimilarFragmentDefinition

func (m *Merger) SimilarFragmentDefinition(curr []*ast.FragmentDefinition, more ...*ast.FragmentDefinition) ([]*ast.FragmentDefinition, error)

SimilarFragmentDefinition merges declarations of FragmentDefinition that share the same FragmentDefinition value.

func (*Merger) SimilarFragmentSpread

func (m *Merger) SimilarFragmentSpread(curr []*ast.FragmentSpread, more ...*ast.FragmentSpread) ([]*ast.FragmentSpread, error)

SimilarFragmentSpread merges declarations of FragmentSpread that share the same FragmentSpread value.

func (*Merger) SimilarInlineFragment

func (m *Merger) SimilarInlineFragment(curr []*ast.InlineFragment, more ...*ast.InlineFragment) ([]*ast.InlineFragment, error)

SimilarInlineFragment merges declarations of InlineFragment that share the same InlineFragment value.

func (*Merger) SimilarInputObjectDefinition

func (m *Merger) SimilarInputObjectDefinition(curr []*ast.InputObjectDefinition, more ...*ast.InputObjectDefinition) ([]*ast.InputObjectDefinition, error)

SimilarInputObjectDefinition merges declarations of InputObjectDefinition that share the same InputObjectDefinition value.

func (*Merger) SimilarInputValueDefinition

func (m *Merger) SimilarInputValueDefinition(curr []*ast.InputValueDefinition, more ...*ast.InputValueDefinition) ([]*ast.InputValueDefinition, error)

SimilarInputValueDefinition merges declarations of InputValueDefinition that share the same InputValueDefinition value.

func (*Merger) SimilarIntValue

func (m *Merger) SimilarIntValue(curr []*ast.IntValue, more ...*ast.IntValue) ([]*ast.IntValue, error)

SimilarIntValue merges declarations of IntValue that share the same IntValue value.

func (*Merger) SimilarInterfaceDefinition

func (m *Merger) SimilarInterfaceDefinition(curr []*ast.InterfaceDefinition, more ...*ast.InterfaceDefinition) ([]*ast.InterfaceDefinition, error)

SimilarInterfaceDefinition merges declarations of InterfaceDefinition that share the same InterfaceDefinition value.

func (*Merger) SimilarList

func (m *Merger) SimilarList(curr []*ast.List, more ...*ast.List) ([]*ast.List, error)

SimilarList merges declarations of List that share the same List value.

func (*Merger) SimilarName

func (m *Merger) SimilarName(curr []*ast.Name, more ...*ast.Name) ([]*ast.Name, error)

SimilarName merges declarations of Name that share the same Name value.

func (*Merger) SimilarNamed

func (m *Merger) SimilarNamed(curr []*ast.Named, more ...*ast.Named) ([]*ast.Named, error)

SimilarNamed merges declarations of Named that share the same Named value.

func (*Merger) SimilarNode

func (m *Merger) SimilarNode(curr []ast.Node, more ...ast.Node) ([]ast.Node, error)

SimilarNode merges declarations of Node that share the same Node value.

func (*Merger) SimilarNonNull

func (m *Merger) SimilarNonNull(curr []*ast.NonNull, more ...*ast.NonNull) ([]*ast.NonNull, error)

SimilarNonNull merges declarations of NonNull that share the same NonNull value.

func (*Merger) SimilarObjectDefinition

func (m *Merger) SimilarObjectDefinition(curr []*ast.ObjectDefinition, more ...*ast.ObjectDefinition) ([]*ast.ObjectDefinition, error)

SimilarObjectDefinition merges declarations of ObjectDefinition that share the same ObjectDefinition value.

func (*Merger) SimilarObjectField

func (m *Merger) SimilarObjectField(curr []*ast.ObjectField, more ...*ast.ObjectField) ([]*ast.ObjectField, error)

SimilarObjectField merges declarations of ObjectField that share the same ObjectField value.

func (*Merger) SimilarObjectValue

func (m *Merger) SimilarObjectValue(curr []*ast.ObjectValue, more ...*ast.ObjectValue) ([]*ast.ObjectValue, error)

SimilarObjectValue merges declarations of ObjectValue that share the same ObjectValue value.

func (*Merger) SimilarOperationDefinition

func (m *Merger) SimilarOperationDefinition(curr []*ast.OperationDefinition, more ...*ast.OperationDefinition) ([]*ast.OperationDefinition, error)

SimilarOperationDefinition merges declarations of OperationDefinition that share the same OperationDefinition value.

func (*Merger) SimilarOperationTypeDefinition

func (m *Merger) SimilarOperationTypeDefinition(curr []*ast.OperationTypeDefinition, more ...*ast.OperationTypeDefinition) ([]*ast.OperationTypeDefinition, error)

SimilarOperationTypeDefinition merges declarations of OperationTypeDefinition that share the same OperationTypeDefinition value.

func (*Merger) SimilarScalarDefinition

func (m *Merger) SimilarScalarDefinition(curr []*ast.ScalarDefinition, more ...*ast.ScalarDefinition) ([]*ast.ScalarDefinition, error)

SimilarScalarDefinition merges declarations of ScalarDefinition that share the same ScalarDefinition value.

func (*Merger) SimilarSchemaDefinition

func (m *Merger) SimilarSchemaDefinition(curr []*ast.SchemaDefinition, more ...*ast.SchemaDefinition) ([]*ast.SchemaDefinition, error)

SimilarSchemaDefinition merges declarations of SchemaDefinition that share the same SchemaDefinition value.

func (*Merger) SimilarSelection

func (m *Merger) SimilarSelection(curr []ast.Selection, more ...ast.Selection) ([]ast.Selection, error)

SimilarSelection merges declarations of Selection that share the same Selection value.

func (*Merger) SimilarSelectionSet

func (m *Merger) SimilarSelectionSet(curr []*ast.SelectionSet, more ...*ast.SelectionSet) ([]*ast.SelectionSet, error)

SimilarSelectionSet merges declarations of SelectionSet that share the same SelectionSet value.

func (*Merger) SimilarStringValue

func (m *Merger) SimilarStringValue(curr []*ast.StringValue, more ...*ast.StringValue) ([]*ast.StringValue, error)

SimilarStringValue merges declarations of StringValue that share the same StringValue value.

func (*Merger) SimilarType

func (m *Merger) SimilarType(curr []ast.Type, more ...ast.Type) ([]ast.Type, error)

SimilarType merges declarations of Type that share the same Type value.

func (*Merger) SimilarTypeExtensionDefinition

func (m *Merger) SimilarTypeExtensionDefinition(curr []*ast.TypeExtensionDefinition, more ...*ast.TypeExtensionDefinition) ([]*ast.TypeExtensionDefinition, error)

SimilarTypeExtensionDefinition merges declarations of TypeExtensionDefinition that share the same TypeExtensionDefinition value.

func (*Merger) SimilarUnionDefinition

func (m *Merger) SimilarUnionDefinition(curr []*ast.UnionDefinition, more ...*ast.UnionDefinition) ([]*ast.UnionDefinition, error)

SimilarUnionDefinition merges declarations of UnionDefinition that share the same UnionDefinition value.

func (*Merger) SimilarValue

func (m *Merger) SimilarValue(curr []ast.Value, more ...ast.Value) ([]ast.Value, error)

SimilarValue merges declarations of Value that share the same Value value.

func (*Merger) SimilarVariable

func (m *Merger) SimilarVariable(curr []*ast.Variable, more ...*ast.Variable) ([]*ast.Variable, error)

SimilarVariable merges declarations of Variable that share the same Variable value.

func (*Merger) SimilarVariableDefinition

func (m *Merger) SimilarVariableDefinition(curr []*ast.VariableDefinition, more ...*ast.VariableDefinition) ([]*ast.VariableDefinition, error)

SimilarVariableDefinition merges declarations of VariableDefinition that share the same VariableDefinition value.

Jump to

Keyboard shortcuts

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