Documentation
¶
Overview ¶
Package goframe is the router for github.com/gogf/gf/v2. The handlers stay http.HandlerFuncs, served from GoFrame's request with the path parameters on it, and the server is served in GoFrame's own way.
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(_ *gocode.Scope, name string) string
- func (Framework) RoutePattern(method, path 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 GoFrame router.
func (Framework) Conflicts ¶
Conflicts drops every route that matches the same requests as an earlier one of its method: a repeat of it, one whose path parameters are named otherwise, or one that differs in the trailing slash alone, since GoFrame exits on a route registered twice and drops the slash.
func (Framework) RoutePattern ¶
RoutePattern writes METHOD:/path with {name} fields as identifiers and a trailing /* as /*rest.
Click to show internal directories.
Click to hide internal directories.