domaingen

package
v0.0.0-...-fc4761b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, mutateHook BuildMutateHook) plugin.Plugin

Types

type BuildMutateHook

type BuildMutateHook = func(b *ModelBuild) *ModelBuild

type Config

type Config struct {
	IsModel          bool
	DirectiveName    string // domain or model
	Directory        string
	PackageName      string
	DefaultGroupName string
}

type Groups

type Groups map[string]*ModelBuild

type ModelBuild

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

type Plugin

type Plugin struct {
	Cfg        *Config
	MutateHook BuildMutateHook
}

func (*Plugin) MutateConfig

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

func (*Plugin) Name

func (m *Plugin) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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