From 048a1ebf9deb2c389d5610000625245921dc2a41 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 11 Oct 2022 13:33:17 -0600 Subject: [PATCH] Adding Clock interface --- interfaces.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interfaces.go b/interfaces.go index 239e064..79f444a 100644 --- a/interfaces.go +++ b/interfaces.go @@ -2,10 +2,16 @@ package gobwebs import ( "database/sql" + "time" "github.com/labstack/echo/v4" ) +// Clock is used to pass time around, helps with test mocking +type Clock interface { + Now() time.Time +} + // WebService interface for attached apps type WebService interface { RegisterRoutes() -- 2.45.2