genapi

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFile

type HandlerFile struct {
	Package     string
	Group       string
	Handler     string
	Path        string
	ApiFilepath string
}

type JzeroApi

type JzeroApi struct {
	Wd     string
	Module string

	config.GenConfig

	ApiFiles          []string
	GenCodeApiFiles   []string
	ApiSpecMap        map[string]*spec.ApiSpec
	GenCodeApiSpecMap map[string]*spec.ApiSpec
}

func (*JzeroApi) Gen

func (ja *JzeroApi) Gen() error

type LogicFile

type LogicFile struct {
	Package string

	// service
	Group string

	// rpc name
	Handler string

	Path         string
	DescFilepath string

	RequestTypeName  string
	RequestType      spec.Type
	ResponseTypeName string
	ResponseType     spec.Type
	ClientStream     bool
	ServerStream     bool
}

type Route added in v0.28.0

type Route struct {
	Group string
	spec.Route
}

Jump to

Keyboard shortcuts

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