Documentation
¶
Overview ¶
Package kratos is the router for the HTTP transport of github.com/go-kratos/kratos/v2, whose handlers take a kratos Context and return an error.
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, 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 kratos router.
func (Framework) Conflicts ¶
Conflicts drops every route with the shape of an earlier one and orders the rest as mux tries them.
func (Framework) RoutePattern ¶
RoutePattern writes the path as for mux, which kratos routes with; the path must be clean.
Click to show internal directories.
Click to hide internal directories.