restclient

package
v0.6.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const SubCmd = "rest"

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	*shoot.GeneratorBase
	// contains filtered or unexported fields
}

func New

func New() *Generator

func (*Generator) ListTypes

func (g *Generator) ListTypes() []string

func (*Generator) MakeData

func (g *Generator) MakeData(typeName string) (any, bool)

func (*Generator) ParseFlags

func (g *Generator) ParseFlags()

type TmplData

type TmplData struct {
	*shoot.TmplDataBase
	MethodList      []string
	SigMap          map[string]string
	HTTPMethodMap   map[string]string
	PathMap         map[string]string
	AliasMap        map[string]map[string]string
	PathParamsMap   map[string][]string
	QueryParamsMap  map[string][]string
	IsParamPtrMap   map[string]map[string]bool
	ReturnResultMap map[string]struct {
		Type  string
		IsPtr bool
	} // method may return one result or not
	ErrReturnMap    map[string]string
	BodyParamMap    map[string]string
	QueryDictMap    map[string]string
	DefaultHeaders  map[string]map[string]string
	CtxParamMap     map[string]string
	BodyHTTPMethods []string
}

func NewTmplData

func NewTmplData(cmdline, version string) *TmplData

Jump to

Keyboard shortcuts

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