diff --git a/pkg/router/interfaces.go b/pkg/router/interfaces.go new file mode 100644 index 0000000..023f80c --- /dev/null +++ b/pkg/router/interfaces.go @@ -0,0 +1,11 @@ +package router + +import "context" + +type UserProvider interface { + GetUserId(ctx context.Context, userUuid string) (int64, error) +} + +type AuthChecker interface { + VerifySession(ctx context.Context, sessionUuid string, serviceId int32) (string, error) +}