gors

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPackageName

func CleanPackageName(name string) string

func ExtractBasePath

func ExtractBasePath(comments []string) string

func FindPath

func FindPath(s string) (string, bool)

Types

type GoIdent

type GoIdent struct {
	GoImport *GoImport
	GoName   string
}

func (*GoIdent) Qualify

func (x *GoIdent) Qualify() string

type GoImport

type GoImport struct {
	PackageName string
	ImportPath  string
	Enable      bool
}

type GoImportPath

type GoImportPath string

func (GoImportPath) Ident

func (p GoImportPath) Ident(s string) *GoIdent

type ObjectArgs

type ObjectArgs struct {
	Name         string
	GoImportPath GoImportPath
}

type Param

type Param struct {
	Bytes      bool
	String     bool
	ObjectArgs *ObjectArgs
	Reader     bool
}

type Result

type Result struct {
	Bytes      bool
	String     bool
	ObjectArgs *ObjectArgs
	Reader     bool
}

type RouterInfo

type RouterInfo struct {
	Method string
	Path   string

	UriBinding           bool
	QueryBinding         bool
	HeaderBinding        bool
	JSONBinding          bool
	ProtoJSONBinding     bool
	XMLBinding           bool
	FormBinding          bool
	FormPostBinding      bool
	FormMultipartBinding bool
	ProtoBufBinding      bool
	MsgPackBinding       bool
	YAMLBinding          bool
	TOMLBinding          bool
	CustomBinding        bool

	RenderContentType string

	BytesRender    bool
	StringRender   bool
	TextRender     bool
	HTMLRender     bool
	ReaderRender   bool
	RedirectRender bool

	JSONRender         bool
	ProtoJSONRender    bool
	IndentedJSONRender bool
	SecureJSONRender   bool
	JSONPJSONRender    bool
	PureJSONRender     bool
	AsciiJSONRender    bool
	XMLRender          bool
	YAMLRender         bool
	ProtoBufRender     bool
	MsgPackRender      bool
	TOMLRender         bool
	CustomRender       bool

	RpcMethodName string
	Param2        *Param
	Result1       *Result
}

func NewRouter

func NewRouter(methodName string, basePath string, comments []string) *RouterInfo

Jump to

Keyboard shortcuts

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