gqlgen: github.com/99designs/gqlgen/plugin/modelgen Index | Files | Directories

package modelgen

import "github.com/99designs/gqlgen/plugin/modelgen"

Index

Package Files

models.go

func New Uses

func New() plugin.Plugin

type BuildMutateHook Uses

type BuildMutateHook = func(b *ModelBuild) *ModelBuild

type Enum Uses

type Enum struct {
    Description string
    Name        string
    Values      []*EnumValue
}

type EnumValue Uses

type EnumValue struct {
    Description string
    Name        string
}

type Field Uses

type Field struct {
    Description string
    Name        string
    Type        types.Type
    Tag         string
}

type Interface Uses

type Interface struct {
    Description string
    Name        string
}

type ModelBuild Uses

type ModelBuild struct {
    PackageName string
    Interfaces  []*Interface
    Models      []*Object
    Enums       []*Enum
    Scalars     []string
}

type Object Uses

type Object struct {
    Description string
    Name        string
    Fields      []*Field
    Implements  []string
}

type Plugin Uses

type Plugin struct {
    MutateHook BuildMutateHook
}

func (*Plugin) MutateConfig Uses

func (m *Plugin) MutateConfig(cfg *config.Config) error

func (*Plugin) Name Uses

func (m *Plugin) Name() string

Directories

PathSynopsis
out

Package modelgen imports 7 packages (graph) and is imported by 10 packages. Updated 2020-03-18. Refresh now. Tools for package owners.