From cb8c7e887dbf347d6e5295771574b13fa12e5b17 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Wed, 11 Dec 2024 01:51:56 +0300 Subject: Поправил имя пакета MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/main.go | 6 +++--- go.mod | 4 +--- rpc/contract.go | 2 +- rpc/errors.go | 2 +- rpc/logger.go | 2 +- rpc/middleware.go | 2 +- rpc/middleware/logger.go | 4 ++-- rpc/middleware/validation.go | 4 ++-- rpc/options.go | 4 ++-- rpc/server.go | 4 ++-- rpc/wrapper.go | 2 +- transport/http.go | 2 +- transport/tcp.go | 2 +- transport/transport.go | 2 +- transport/unix.go | 26 +++++++++++++------------- 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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 // -//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 +// Copyright (C) 2022 Max Nikitenko // -//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 . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package transport import ( -- cgit v1.2.3