~netlandish/gobwebs

048a1ebf9deb2c389d5610000625245921dc2a41 — Peter Sanchez 2 years ago 2887456
Adding Clock interface
1 files changed, 6 insertions(+), 0 deletions(-)

M interfaces.go
M interfaces.go => interfaces.go +6 -0
@@ 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()