schema

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Name  string
	Kind  string
	Value any
}

func (*Argument) Equals

func (a *Argument) Equals(other *Argument) bool

func (*Argument) GetString

func (a *Argument) GetString() (string, error)

type Directive

type Directive struct {
	Name      string
	Arguments []Argument
}

func (*Directive) Equals

func (d *Directive) Equals(other *Directive) bool

func (*Directive) GetArgument

func (d *Directive) GetArgument(name string) (*Argument, error)

func (*Directive) GetString

func (d *Directive) GetString() (string, error)

type Enum

type Enum struct {
	Name   string
	Values []string
}

func (*Enum) Equals

func (e *Enum) Equals(other *Enum) bool

func (*Enum) GetString

func (e *Enum) GetString() (string, error)

type Field

type Field struct {
	Name       string
	Type       types.Comparable
	Directives []Directive
}

func (*Field) Equals

func (f *Field) Equals(other *Field) bool

func (*Field) GetDirective

func (f *Field) GetDirective(name string) (*Directive, error)

func (*Field) GetString

func (f *Field) GetString() (string, error)

type Object

type Object struct {
	Name       string
	Directives []Directive
	Fields     []Field
}

func (*Object) Equals

func (o *Object) Equals(other *Object) bool

func (*Object) GetDirective

func (o *Object) GetDirective(name string) (*Directive, error)

func (*Object) GetField

func (o *Object) GetField(name string) (*Field, error)

func (*Object) GetString

func (o *Object) GetString() (string, error)

type Scalar

type Scalar struct {
	Name       string
	Directives []Directive
}

func (*Scalar) Equals

func (s *Scalar) Equals(other *Scalar) bool

func (*Scalar) GetDirective

func (s *Scalar) GetDirective(name string) (*Directive, error)

func (*Scalar) GetString

func (s *Scalar) GetString() (string, error)

type Schema

type Schema struct {
	Objects []Object
	Enums   []Enum
	Scalars []Scalar
}

func (*Schema) Equals

func (s *Schema) Equals(other *Schema) bool

func (*Schema) GetEnum

func (s *Schema) GetEnum(name string) (*Enum, error)

func (*Schema) GetObject

func (s *Schema) GetObject(name string) (*Object, error)

func (*Schema) GetScalar

func (s *Schema) GetScalar(name string) (*Scalar, error)

func (*Schema) GetString

func (s *Schema) GetString() (string, error)

Jump to

Keyboard shortcuts

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