aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/main.go6
-rw-r--r--go.mod4
-rw-r--r--rpc/contract.go2
-rw-r--r--rpc/errors.go2
-rw-r--r--rpc/logger.go2
-rw-r--r--rpc/middleware.go2
-rw-r--r--rpc/middleware/logger.go4
-rw-r--r--rpc/middleware/validation.go4
-rw-r--r--rpc/options.go4
-rw-r--r--rpc/server.go4
-rw-r--r--rpc/wrapper.go2
-rw-r--r--transport/http.go2
-rw-r--r--transport/tcp.go2
-rw-r--r--transport/transport.go2
-rw-r--r--transport/unix.go26
15 files changed, 33 insertions, 35 deletions
diff --git a/example/main.go b/example/main.go
index cd1bbec..ec3c5a4 100644
--- a/example/main.go
+++ b/example/main.go
@@ -7,9 +7,9 @@ import (
"os"
"os/signal"
- "go.neonxp.ru/jsonrpc2/rpc"
- "go.neonxp.ru/jsonrpc2/rpc/middleware"
- "go.neonxp.ru/jsonrpc2/transport"
+ "neonxp.ru/go/jsonrpc2/rpc"
+ "neonxp.ru/go/jsonrpc2/rpc/middleware"
+ "neonxp.ru/go/jsonrpc2/transport"
)
func main() {
diff --git a/go.mod b/go.mod
index a18d7e9..f0a1fa8 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module go.neonxp.ru/jsonrpc2
+module neonxp.ru/go/jsonrpc2
go 1.18
@@ -8,5 +8,3 @@ require (
)
require github.com/qri-io/jsonpointer v0.1.1 // indirect
-
-replace go.neonxp.ru/jsonrpc2 latest => neonxp.ru/go/jsonrpc2 latest
diff --git a/rpc/contract.go b/rpc/contract.go
index 28bd911..20ef127 100644
--- a/rpc/contract.go
+++ b/rpc/contract.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/rpc/errors.go b/rpc/errors.go
index e6d7be0..da2a7bb 100644
--- a/rpc/errors.go
+++ b/rpc/errors.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/rpc/logger.go b/rpc/logger.go
index 1d32f38..e38968a 100644
--- a/rpc/logger.go
+++ b/rpc/logger.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/rpc/middleware.go b/rpc/middleware.go
index b348de8..8feea71 100644
--- a/rpc/middleware.go
+++ b/rpc/middleware.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/rpc/middleware/logger.go b/rpc/middleware/logger.go
index 825e002..6f3e8ad 100644
--- a/rpc/middleware/logger.go
+++ b/rpc/middleware/logger.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ import (
"fmt"
"time"
- "go.neonxp.ru/jsonrpc2/rpc"
+ "neonxp.ru/go/jsonrpc2/rpc"
)
func Logger(logger rpc.Logger) rpc.Middleware {
diff --git a/rpc/middleware/validation.go b/rpc/middleware/validation.go
index efa6096..c18ce4f 100644
--- a/rpc/middleware/validation.go
+++ b/rpc/middleware/validation.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
@@ -27,7 +27,7 @@ import (
"github.com/qri-io/jsonschema"
- "go.neonxp.ru/jsonrpc2/rpc"
+ "neonxp.ru/go/jsonrpc2/rpc"
)
type ServiceSchema map[string]MethodSchema
diff --git a/rpc/options.go b/rpc/options.go
index aee96bc..1252b9e 100644
--- a/rpc/options.go
+++ b/rpc/options.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
package rpc
import (
- "go.neonxp.ru/jsonrpc2/transport"
+ "neonxp.ru/go/jsonrpc2/transport"
)
type Option func(s *RpcServer)
diff --git a/rpc/server.go b/rpc/server.go
index 55d2bf3..134a44b 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ import (
"golang.org/x/sync/errgroup"
- "go.neonxp.ru/jsonrpc2/transport"
+ "neonxp.ru/go/jsonrpc2/transport"
)
const version = "2.0"
diff --git a/rpc/wrapper.go b/rpc/wrapper.go
index cb3d655..d158fac 100644
--- a/rpc/wrapper.go
+++ b/rpc/wrapper.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/transport/http.go b/transport/http.go
index fb27a61..985b207 100644
--- a/transport/http.go
+++ b/transport/http.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/transport/tcp.go b/transport/tcp.go
index cb1abca..8d2f9f5 100644
--- a/transport/tcp.go
+++ b/transport/tcp.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/transport/transport.go b/transport/transport.go
index e8886a4..7d30e2c 100644
--- a/transport/transport.go
+++ b/transport/transport.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+//This file is part of neonxp.ru/go/jsonrpc2 project.
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
diff --git a/transport/unix.go b/transport/unix.go
index 496c2f6..cf72205 100644
--- a/transport/unix.go
+++ b/transport/unix.go
@@ -1,21 +1,21 @@
-//Package transport provides transports for rpc server
+// Package transport provides transports for rpc server
//
-//Copyright (C) 2022 Max Nikitenko <moaddib666@gmail.com>
+// Copyright (C) 2022 Max Nikitenko <moaddib666@gmail.com>
//
-//This file is part of go.neonxp.ru/jsonrpc2 project.
+// This file is part of neonxp.ru/go/jsonrpc2 project.
//
-//This program is free software: you can redistribute it and/or modify
-//it under the terms of the GNU General Public License as published by
-//the Free Software Foundation, either version 3 of the License, or
-//(at your option) any later version.
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
//
-//This program is distributed in the hope that it will be useful,
-//but WITHOUT ANY WARRANTY; without even the implied warranty of
-//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-//GNU General Public License for more details.
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
//
-//You should have received a copy of the GNU General Public License
-//along with this program. If not, see <https://www.gnu.org/licenses/>.
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
package transport
import (