diff --git a/go.mod b/go.mod index 456d5a4..5b85f20 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.anthrove.art/Anthrove/plug-sdk/v5 go 1.23.0 require ( - git.anthrove.art/Anthrove/otter-space-sdk/v4 v4.1.1 + git.anthrove.art/Anthrove/otter-space-sdk/v5 v5.0.0 github.com/matoous/go-nanoid/v2 v2.1.0 github.com/sirupsen/logrus v1.9.3 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.56.0 diff --git a/go.sum b/go.sum index 102e89c..945e366 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= -git.anthrove.art/Anthrove/otter-space-sdk/v4 v4.1.1 h1:9cBDvki/vX/olpxmm+iwpH14gsfc3/76WJ1DQtGufBI= -git.anthrove.art/Anthrove/otter-space-sdk/v4 v4.1.1/go.mod h1:AwgkmIvgsed0Z2zK7mvsga2Jxj3Cf7dAZHhyTHPUiEw= +git.anthrove.art/Anthrove/otter-space-sdk/v5 v5.0.0 h1:3AjgosR7aC+vFGhVDa5LUnLTfvG07j2qniBV1meSE8I= +git.anthrove.art/Anthrove/otter-space-sdk/v5 v5.0.0/go.mod h1:rb2bCKLAqYDB/l+yw/CIxAktJtd7FmWmKbhJ0v6HqEY= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= diff --git a/pkg/plug/algorithm.go b/pkg/plug/algorithm.go index 8f2e382..8afe6ca 100644 --- a/pkg/plug/algorithm.go +++ b/pkg/plug/algorithm.go @@ -2,14 +2,15 @@ package plug import ( "context" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/database" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/models" + "slices" + "time" + + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/database" + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/models" log "github.com/sirupsen/logrus" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/trace" - "slices" - "time" ) type User struct { diff --git a/pkg/plug/grpc.go b/pkg/plug/grpc.go index c0a34c1..b7fc56c 100644 --- a/pkg/plug/grpc.go +++ b/pkg/plug/grpc.go @@ -3,11 +3,12 @@ package plug import ( "context" "errors" - "gorm.io/gorm" "time" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/database" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/models" + "gorm.io/gorm" + + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/database" + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/models" gRPC "git.anthrove.art/Anthrove/plug-sdk/v5/pkg/grpc" gonanoid "github.com/matoous/go-nanoid/v2" log "github.com/sirupsen/logrus" diff --git a/pkg/plug/scrape.go b/pkg/plug/scrape.go index 4965241..fa09f37 100644 --- a/pkg/plug/scrape.go +++ b/pkg/plug/scrape.go @@ -2,14 +2,15 @@ package plug import ( "context" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/database" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/models" + "slices" + + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/database" + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/models" log "github.com/sirupsen/logrus" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/trace" "gorm.io/gorm" - "slices" ) var BatchSize = 50 diff --git a/pkg/plug/server.go b/pkg/plug/server.go index 4663cf0..6e88b11 100644 --- a/pkg/plug/server.go +++ b/pkg/plug/server.go @@ -4,7 +4,7 @@ import ( "context" "net" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/models" + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/models" pb "git.anthrove.art/Anthrove/plug-sdk/v5/pkg/grpc" log "github.com/sirupsen/logrus" "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" diff --git a/pkg/plug/source.go b/pkg/plug/source.go index abe151c..56eb2cd 100644 --- a/pkg/plug/source.go +++ b/pkg/plug/source.go @@ -3,8 +3,8 @@ package plug import ( "context" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/database" - "git.anthrove.art/Anthrove/otter-space-sdk/v4/pkg/models" + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/database" + "git.anthrove.art/Anthrove/otter-space-sdk/v5/pkg/models" log "github.com/sirupsen/logrus" "go.opentelemetry.io/otel/codes" )