fix: renamed struct & restructured project
This commit is contained in:
parent
c3b672bd42
commit
3dee84c7ae
@ -1,4 +1,4 @@
|
|||||||
package pkg
|
package sdk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@ -6,7 +6,7 @@ import (
|
|||||||
"git.dragse.it/anthrove/otter-space-sdk/pkg/models"
|
"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 sets up a connection to the endpoint using the provided username and password
|
||||||
Connect(ctx context.Context, endpoint string, username string, password string) error
|
Connect(ctx context.Context, endpoint string, username string, password string) error
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package pkg
|
package sdk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@ -14,7 +14,7 @@ type graphConnection struct {
|
|||||||
graphDebug bool
|
graphDebug bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGraphConnection(graphDebug bool) Graph {
|
func NewGraphConnection(graphDebug bool) OtterSpace {
|
||||||
return &graphConnection{
|
return &graphConnection{
|
||||||
driver: nil,
|
driver: nil,
|
||||||
graphDebug: graphDebug,
|
graphDebug: graphDebug,
|
Reference in New Issue
Block a user