diff options
Diffstat (limited to 'echo/interfaces.go')
-rw-r--r-- | echo/interfaces.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/echo/interfaces.go b/echo/interfaces.go index f3380c6..1f3957a 100644 --- a/echo/interfaces.go +++ b/echo/interfaces.go | |||
@@ -1,6 +1,8 @@ | |||
1 | package echo | 1 | package echo |
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "io/fs" | ||
5 | |||
4 | "github.com/labstack/echo/v4" | 6 | "github.com/labstack/echo/v4" |
5 | ) | 7 | ) |
6 | 8 | ||
@@ -18,3 +20,9 @@ type URLRouter interface { | |||
18 | Group(string, ...echo.MiddlewareFunc) *echo.Group | 20 | Group(string, ...echo.MiddlewareFunc) *echo.Group |
19 | Add(string, string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route | 21 | Add(string, string, echo.HandlerFunc, ...echo.MiddlewareFunc) *echo.Route |
20 | } | 22 | } |
23 | |||
24 | // WantsTemplateStore is an interface for template helper functions that | ||
25 | // need access to the template store for the running echo instance. | ||
26 | type WantsTemplateStore interface { | ||
27 | ConfigureTemplateStore(fs.FS) | ||
28 | } | ||