Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOpenAPIRoute ¶
func BuildOpenAPIRoute(list []ConvertedHandler) map[string]spec.PathItem
Types ¶
type ConvertedHandler ¶
type ConvertedHandler struct { Method string Path string Desc string // openapi description Resource string // openapi resource name ReqArgs []Argv RespArgs []Argv Handler http.Handler }
func RegisterController ¶
func RegisterController(prefix string, parents []string, controller any) ([]ConvertedHandler, error)
Click to show internal directories.
Click to hide internal directories.