gencontroller

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 7 Imported by: 0

README

Gogen Controller

Call gogen controller restapi will

  • Create a controller folder
  • Collect all the fields from InportRequest and InportResponse
  • create an handler and router based on gogenrc

Documentation

Index

Constants

View Source
const HandlerSuffix = "handler"

Variables

This section is empty.

Functions

func Run

func Run(inputs ...string) error

Types

type ObjTemplate

type ObjTemplate struct {
	PackagePath    string
	DomainName     string
	ControllerName string
	DriverName     string
}

ObjTemplate ...

type ObjTemplateSingle

type ObjTemplateSingle struct {
	PackagePath    string
	DomainName     string
	ControllerName string
	DriverName     string
	Usecase        *Usecase
}

ObjTemplateSingle ...

type StructField

type StructField struct {
	Name string
	Type string
}

type Usecase

type Usecase struct {
	Name                 string
	InportRequestFields  []*StructField
	InportResponseFields []*StructField
}

Jump to

Keyboard shortcuts

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