-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepository.go
30 lines (26 loc) · 837 Bytes
/
repository.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Code generated by ifacemaker; DO NOT EDIT.
package server
import (
"context"
"net/http"
"github.com/labstack/echo/v4"
)
// ServerRepo ...
type ServerRepo interface {
// NewContext creates a new Echo context
NewContext(req *http.Request, w http.ResponseWriter) Context
// RegisterRouters registers multiple routers with the specified group and middlewares
RegisterRouters(group Kind, routers *RegisterRouters, middlewares ...MiddlewareFunc) error
// Start starts the server
Start()
// GetEcho returns the Echo instance
GetEcho() *echo.Echo
// GetRouters returns all registered routes
GetRouters() []*Route
// Close closes the server
Close() error
// Shutdown gracefully shuts down the server
Shutdown(ctx context.Context) error
// GracefulShutdown shuts down the server with a timeout
GracefulShutdown() error
}