Documentation
¶
Index ¶
- type Engine
- func (e *Engine) Any(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) DELETE(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) GET(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) GRPC(httpMethod string, relativePath string, ...) router.IRoutes
- func (e *Engine) Group(relativePath string, handlers ...app.HandlerFunc) *router.RouterGroup
- func (e *Engine) HEAD(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) Handle(httpMethod, relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) Handler() *router.Handler
- func (e *Engine) OPTIONS(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) PATCH(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) POST(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) PUT(relativePath string, handlers ...interface{}) router.IRoutes
- func (e *Engine) RouterGroup() *router.RouterGroup
- func (e *Engine) Static(relativePath, root string) router.IRoutes
- func (e *Engine) StaticFS(relativePath string, fs *app.FS) router.IRoutes
- func (e *Engine) StaticFile(relativePath, filepath string) router.IRoutes
- func (e *Engine) Use(middleware ...app.HandlerFunc) router.IRoutes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
func (*Engine) GRPC ¶
func (e *Engine) GRPC(httpMethod string, relativePath string, handler func(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error), srv interface{}) router.IRoutes
GRPC registers a gRPC route with the given HTTP method, protoc-generated handler and service instance.
func (*Engine) Group ¶
func (e *Engine) Group(relativePath string, handlers ...app.HandlerFunc) *router.RouterGroup
Group creates a new router group with the given path prefix and optional middleware.
func (*Engine) RouterGroup ¶
func (e *Engine) RouterGroup() *router.RouterGroup
RouterGroup returns the root RouterGroup.
func (*Engine) StaticFile ¶
StaticFile registers a single route to serve a single file from the local filesystem.
Click to show internal directories.
Click to hide internal directories.