Documentation ¶
Index ¶
- func CreateConstsMap(prog *ast.Program) map[string]*ast.Const
- func CreateIsEnumTypeFunc(enums []*ast.Enum) func(value string) bool
- func CreateIsModelTypeFunc(messages []*ast.Model) func(value string) bool
- func CreateIsValidType(prog *ast.Program) func(typ ast.Type) bool
- func CreateModelTypeMap(messages []*ast.Model) map[string]*ast.Model
- func GetConstants(node ast.Node) []*ast.Const
- func GetCustomErrors(node ast.Node) []*ast.CustomError
- func GetEnums(node ast.Node) []*ast.Enum
- func GetModels(node ast.Node) []*ast.Model
- func GetServices(node ast.Node) []*ast.Service
- func GetValueType(val ast.Value) string
- func IsTypeComparable(typ ast.Type) bool
- type MethodOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIsModelTypeFunc ¶
func GetCustomErrors ¶
func GetCustomErrors(node ast.Node) []*ast.CustomError
func GetValueType ¶
func IsTypeComparable ¶
Types ¶
type MethodOptions ¶
type MethodOptions struct { HttpMethod string ContentType string // only used for Download methods or stream []byte MaxUploadSize int64 RawControl bool }
func ParseMethodOptions ¶
func ParseMethodOptions(options ast.Options) MethodOptions
Click to show internal directories.
Click to hide internal directories.