From 3dee84c7ae0fa7cc455853a5e44bbf3b4a8d9167 Mon Sep 17 00:00:00 2001 From: soxx Date: Fri, 16 Feb 2024 21:57:54 +0100 Subject: [PATCH] fix: renamed struct & restructured project --- pkg/{ => sdk}/graph.go | 4 ++-- pkg/{ => sdk}/impl.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename pkg/{ => sdk}/graph.go (98%) rename pkg/{ => sdk}/impl.go (98%) diff --git a/pkg/graph.go b/pkg/sdk/graph.go similarity index 98% rename from pkg/graph.go rename to pkg/sdk/graph.go index 9335997..854526d 100644 --- a/pkg/graph.go +++ b/pkg/sdk/graph.go @@ -1,4 +1,4 @@ -package pkg +package sdk import ( "context" @@ -6,7 +6,7 @@ import ( "git.dragse.it/anthrove/otter-space-sdk/pkg/models" ) -type Graph interface { +type OtterSpace interface { // Connect sets up a connection to the endpoint using the provided username and password Connect(ctx context.Context, endpoint string, username string, password string) error diff --git a/pkg/impl.go b/pkg/sdk/impl.go similarity index 98% rename from pkg/impl.go rename to pkg/sdk/impl.go index 07a4d24..f0b8976 100644 --- a/pkg/impl.go +++ b/pkg/sdk/impl.go @@ -1,4 +1,4 @@ -package pkg +package sdk import ( "context" @@ -14,7 +14,7 @@ type graphConnection struct { graphDebug bool } -func NewGraphConnection(graphDebug bool) Graph { +func NewGraphConnection(graphDebug bool) OtterSpace { return &graphConnection{ driver: nil, graphDebug: graphDebug,