setup

package
v0.0.0-...-da920ed Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DTOField

type DTOField struct {
	Name     string
	Type     string
	Uptype   string
	Downtype string
}

func (*DTOField) ConvertDowntypeName

func (d *DTOField) ConvertDowntypeName(typeNameMap map[string]string) string

func (*DTOField) ConvertUptypeName

func (d *DTOField) ConvertUptypeName(typeNameMap map[string]string) string

func (*DTOField) IsNumberDowntype

func (d *DTOField) IsNumberDowntype() bool

func (*DTOField) IsNumberUptype

func (d *DTOField) IsNumberUptype() bool

func (*DTOField) NameToKebabCase

func (d *DTOField) NameToKebabCase() string

func (*DTOField) NameToLowerCamelCase

func (d *DTOField) NameToLowerCamelCase() string

func (*DTOField) NameToSnakeCase

func (d *DTOField) NameToSnakeCase() string

type DTOFieldSlice

type DTOFieldSlice []*DTOField

func (DTOFieldSlice) ContainsFieldByName

func (d DTOFieldSlice) ContainsFieldByName(name string) bool

type DTOSetup

type DTOSetup struct {
	UrlWithStartingSlash string

	IsInsertMethodEnabled bool
	IsPatchMethodEnabled  bool
	IsListMethodEnabled   bool
	IsCountMethodEnabled  bool
	IsGetMethodEnabled    bool
	IsDeleteMethodEnabled bool

	IsGetORListORCountMethodEnabled bool

	IdField              *DTOField
	InsertableFields     []*DTOField
	ListableFieldGroups  [][]*DTOField
	GetableFieldGroups   [][]*DTOField
	PatchableFieldGroups [][]*DTOField

	AllUniquePatchableFields []*DTOField
	// contains filtered or unexported fields
}

func MustParseYAML

func MustParseYAML(xamlBytes []byte) *DTOSetup

func MustParseYAMLFile

func MustParseYAMLFile(filePath string) *DTOSetup

func NewDTOSetupFromYAML

func NewDTOSetupFromYAML(setup *dtoSetupYAML) *DTOSetup

type OutputFilePath

type OutputFilePath string

func (OutputFilePath) String

func (o OutputFilePath) String() string

type PluginName

type PluginName string

func (PluginName) String

func (p PluginName) String() string

Jump to

Keyboard shortcuts

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