vars

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPInterface

type HTTPInterface struct {
	Scope    Scope
	Resource Resource

	Method     string
	URL        string
	MethodName string

	// body
	RequestBody  *RequestBody
	ResponseBody *ResponseBody

	// param
	PathParams  []*PathParam
	QueryParams []*QueryParam

	// comments
	Comments string

	IsStreamClient bool
	IsStreamServer bool
	IsSpecified    bool
}

HTTPInterface parse grpc http options, go-zero api file

type PathParam

type PathParam struct {
	Index  int
	Name   string
	GoName string
}

type QueryParam

type QueryParam struct {
	GoName string
	Name   string
}

type RequestBody

type RequestBody struct {
	Body         string // if proto. it takes effect. * or others
	RealBodyName string // if proto and body is not *. use it
	Name         string // request type name
	Type         string // proto or api
	Package      string // for example. types. *types.HelloParamRequest
}

type Resource

type Resource string

type ResourceHTTPInterfaceMap

type ResourceHTTPInterfaceMap = map[Resource][]*HTTPInterface

type ResponseBody

type ResponseBody struct {
	Name    string
	Package string
}

type Scope

type Scope string

type ScopeResourceHTTPInterfaceMap

type ScopeResourceHTTPInterfaceMap map[Scope]ResourceHTTPInterfaceMap

Jump to

Keyboard shortcuts

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