generators

package
v0.0.0-...-2779087 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// model or model manager func keyword
	Create                      = "ValidateCreateData"
	List                        = "ListItemFilter"
	Get                         = "FetchCustomizeColumns"
	GetCustomizedGetDetailsBody = "CustomizedGetDetailsBody"
	GetSpec                     = "GetDetails"
	GetProperty                 = "GetProperty"
	Perform                     = "Perform"
	Update                      = "ValidateUpdateData"
	Delete                      = "CustomizeDelete"
)

Variables

This section is empty.

Functions

func DefaultNameSystem

func DefaultNameSystem() string

func GetValidType

func GetValidType(t *types.Type) *types.Type

func IncludeIgnoreTag

func IncludeIgnoreTag(t *types.Type) bool

func NameSystems

func NameSystems() namer.NameSystems

func NewDocPackage

func NewDocPackage(pkgName string, pkgPath string, header []byte, service string) generator.Package

func NewSwaggerDocGen

func NewSwaggerDocGen() generator.Generator

func NewSwaggerGen

func NewSwaggerGen(sanitizedName, sourcePackage string, pkgTypes []*types.Type) generator.Generator

func Packages

func Packages(ctx *generator.Context, arguments *args.GeneratorArgs) generator.Packages

Types

type DocPackage

type DocPackage struct {
	*generator.DefaultPackage
}

type Method

type Method struct {
	// contains filtered or unexported fields
}

func NewMethod

func NewMethod(receiver *types.Type, name string, method *types.Type, singular, plural string) *Method

func (*Method) Method

func (m *Method) Method() *types.Type

func (*Method) Name

func (m *Method) Name() string

func (*Method) Params

func (m *Method) Params(idx int) *types.Type

func (*Method) Receiver

func (m *Method) Receiver() *types.Type

func (*Method) Resutls

func (m *Method) Resutls(idx int) *types.Type

func (*Method) Signature

func (m *Method) Signature() *types.Signature

func (*Method) String

func (m *Method) String() string

type SwaggerConfig

type SwaggerConfig struct {
	Route    *SwaggerConfigRoute
	Param    *SwaggerConfigParam
	Response *SwaggerConfigResponse
}

type SwaggerConfigParam

type SwaggerConfigParam struct {
	Body  *types.Type
	Query *types.Type
	Paths map[string]string
	Key   string
}

type SwaggerConfigResponse

type SwaggerConfigResponse struct {
	Output  *types.Type
	BodyKey string
	Headers map[string]string

	IsList       bool
	IsListOffset bool
}

type SwaggerConfigRoute

type SwaggerConfigRoute struct {
	Method string
	Path   string
	Tags   []string
}

Jump to

Keyboard shortcuts

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