vars

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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
	Request  *Request
	Response *Response

	// 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 Request added in v0.21.0

type Request 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
	FullName     string
}

type Resource

type Resource string

type ResourceHTTPInterfaceMap

type ResourceHTTPInterfaceMap = map[Resource][]*HTTPInterface

type Response added in v0.21.0

type Response struct {
	FakeReturnName string
	FakeFullName   string
	FullName       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