directivefile

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectiveFile

type DirectiveFile map[models.WildcardKeypath]Directives

func ReadDirectiveFile

func ReadDirectiveFile(path string) (*DirectiveFile, error)

type Directives

type Directives struct {
	Accessors []models.FieldPath `yaml:"accessors"`
	Embed     Embed              `yaml:"embed"`
	Export    bool               `yaml:"export"`
	Declare   models.TypeName    `yaml:"declare"`
	Parent    models.FieldName   `yaml:"parent"`
	Replace   Replace            `yaml:"replace"`
}

type Embed

type Embed struct {
	Typename   models.TypeName `yaml:"typename"`
	ImportPath string          `yaml:"import-path"`
	ImportAs   string          `yaml:"import-as"`
}

type Replace

type Replace struct {
	Typename   models.TypeName `yaml:"typename"`
	ImportPath string          `yaml:"import-path"`
	ImportAs   string          `yaml:"import-as"`
}

Jump to

Keyboard shortcuts

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