diff --git a/configuration.go b/configuration.go index c9b4bbf..b768fb6 100644 --- a/configuration.go +++ b/configuration.go @@ -1,8 +1,9 @@ package srpc import ( - "olznet.de/slog" "time" + + "gitea.olznet.de/OlzNet/slog" ) type LogErrorFunc func(format string, args ...interface{}) diff --git a/encoder.go b/encoder.go index 7ab8799..360cfc2 100644 --- a/encoder.go +++ b/encoder.go @@ -2,7 +2,8 @@ package srpc import ( "io" - "olznet.de/ssob" + + "gitea.olznet.de/OlzNet/ssob" ) type IEncoder interface { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f4a0502 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module gitea.olznet.de/OlzNet/srpc + +go 1.16 + +require ( + gitea.olznet.de/OlzNet/slog v1.2.4 + gitea.olznet.de/OlzNet/ssob v1.0.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..7bcee3c --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +gitea.olznet.de/OlzNet/slog v1.2.4 h1:22/+57/2J7EnFQAwT6xRENgvPeI2RwSmOWuXwkujpf4= +gitea.olznet.de/OlzNet/slog v1.2.4/go.mod h1:xHB0ZnXIXFdnISKpWvDnrBSl4dGB3rzQji36n2sbJXg= +gitea.olznet.de/OlzNet/ssob v1.0.0 h1:IEKaiXdzEsWmuy0SsWXf0LVmQbbbkX2DnEGdnbW/mMY= +gitea.olznet.de/OlzNet/ssob v1.0.0/go.mod h1:QgB9baLoAJVgFpuD0QECi7WZ9uRfWPeunKU2tMZDvDQ= diff --git a/rpc.go b/rpc.go index 0cb331e..e282c0f 100644 --- a/rpc.go +++ b/rpc.go @@ -3,9 +3,10 @@ package srpc import ( "bytes" "errors" - "olznet.de/slog" "reflect" "sync" + + "gitea.olznet.de/OlzNet/slog" ) type RPCStatus uint8 diff --git a/server.go b/server.go index 647c555..78a667b 100644 --- a/server.go +++ b/server.go @@ -5,10 +5,11 @@ import ( "fmt" "io" "net" - "olznet.de/slog" "sync" "sync/atomic" "time" + + "gitea.olznet.de/OlzNet/slog" ) type serverMessage struct {