astutil

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConstsMap

func CreateConstsMap(prog *ast.Program) map[string]*ast.Const

func CreateIsEnumTypeFunc

func CreateIsEnumTypeFunc(enums []*ast.Enum) func(value string) bool

func CreateIsModelTypeFunc

func CreateIsModelTypeFunc(messages []*ast.Model) func(value string) bool

func CreateIsValidType

func CreateIsValidType(prog *ast.Program) func(typ ast.Type) bool

func CreateModelTypeMap

func CreateModelTypeMap(messages []*ast.Model) map[string]*ast.Model

func GetConstants

func GetConstants(node ast.Node) []*ast.Const

func GetCustomErrors

func GetCustomErrors(node ast.Node) []*ast.CustomError

func GetEnums

func GetEnums(node ast.Node) []*ast.Enum

func GetModels

func GetModels(node ast.Node) []*ast.Model

func GetServices

func GetServices(node ast.Node) []*ast.Service

func GetValueType

func GetValueType(val ast.Value) string

func IsTypeComparable

func IsTypeComparable(typ ast.Type) bool

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

Jump to

Keyboard shortcuts

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