Documentation
¶
Overview ¶
Package gozero is the router for the rest package of github.com/zeromicro/go-zero: the router of its rest server, which rest.WithRouter gives one.
Index ¶
- type Framework
- func (Framework) Conflicts(routes []framework.Route) ([]framework.Route, []framework.Conflict)
- func (Framework) Handler(s *gocode.Scope) framework.Handler
- func (Framework) Imports() []gomodel.Import
- func (Framework) Name() string
- func (Framework) PathParam(s *gocode.Scope, name string) string
- func (Framework) RoutePattern(method, oasPath string) (string, error)
- func (Framework) Templates() fs.FS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Framework ¶
type Framework struct{}
Framework is the go-zero router.
func (Framework) Conflicts ¶
Conflicts drops every route go-zero refuses as a duplicate of an earlier one, trailing slash aside.
func (Framework) RoutePattern ¶
RoutePattern writes each parameter as :name without a trailing slash, and fails on TRACE and a *.
Click to show internal directories.
Click to hide internal directories.