aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-03-24 18:37:38 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-03-24 18:37:38 +0300
commitd4708a3665e546eea57611b17441ad9b8c89e9a4 (patch)
treed85dd050b2eaf9f321b166ecfb020069de460e93
parent4a8f9ef10ed6253901396bd6cd3554af05cf0d73 (diff)
Changed package name to `go.neonxp.dev/jsonrpc2`
-rw-r--r--README.md8
-rw-r--r--examples/http/main.go4
-rw-r--r--go.mod2
-rw-r--r--http/server.go4
-rw-r--r--rpc/errors.go2
-rw-r--r--rpc/logger.go2
-rw-r--r--rpc/meta.go3
-rw-r--r--rpc/server.go2
-rw-r--r--rpc/wrapper.go2
9 files changed, 16 insertions, 13 deletions
diff --git a/README.md b/README.md
index 2fdbd9a..5938fdf 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Go 1.18+ required
1. Create JSON-RPC/HTTP server:
```go
- import "github.com/neonxp/jsonrpc2/http"
+ import "go.neonxp.dev/jsonrpc2/http"
...
s := http.New()
```
@@ -48,8 +48,8 @@ import (
"context"
"net/http"
- httpRPC "github.com/neonxp/jsonrpc2/http"
- "github.com/neonxp/jsonrpc2/rpc"
+ httpRPC "go.neonxp.dev/jsonrpc2/http"
+ "go.neonxp.dev/jsonrpc2/rpc"
)
func main() {
@@ -86,4 +86,4 @@ Alexander Kiryukhin <i@neonxp.dev>
## License
-![GPL v3](https://www.gnu.org/graphics/gplv3-with-text-136x68.png) \ No newline at end of file
+![GPL v3](https://www.gnu.org/graphics/gplv3-with-text-136x68.png)
diff --git a/examples/http/main.go b/examples/http/main.go
index 5783c05..5c24867 100644
--- a/examples/http/main.go
+++ b/examples/http/main.go
@@ -5,8 +5,8 @@ import (
"errors"
"net/http"
- httpRPC "github.com/neonxp/jsonrpc2/http"
- "github.com/neonxp/jsonrpc2/rpc"
+ httpRPC "go.neonxp.dev/jsonrpc2/http"
+ "go.neonxp.dev/jsonrpc2/rpc"
)
func main() {
diff --git a/go.mod b/go.mod
index caa2afb..c419096 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module github.com/neonxp/jsonrpc2
+module go.neonxp.dev/jsonrpc2
go 1.18
diff --git a/http/server.go b/http/server.go
index cbcb89e..9fae0a0 100644
--- a/http/server.go
+++ b/http/server.go
@@ -2,7 +2,7 @@
//
//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev>
//
-//This file is part of github.com/neonxp/jsonrpc2 project.
+//This file is part of go.neonxp.dev/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
@@ -23,7 +23,7 @@ import (
"bufio"
"net/http"
- "github.com/neonxp/jsonrpc2/rpc"
+ "go.neonxp.dev/jsonrpc2/rpc"
)
type Server struct {
diff --git a/rpc/errors.go b/rpc/errors.go
index 02e66cf..a18c712 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 github.com/neonxp/jsonrpc2 project.
+//This file is part of go.neonxp.dev/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 9b1e0cc..b38e990 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 github.com/neonxp/jsonrpc2 project.
+//This file is part of go.neonxp.dev/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/meta.go b/rpc/meta.go
new file mode 100644
index 0000000..77de69b
--- /dev/null
+++ b/rpc/meta.go
@@ -0,0 +1,3 @@
+package rpc
+
+type Meta map[string]interface{}
diff --git a/rpc/server.go b/rpc/server.go
index ff9fcc5..4fa004d 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 github.com/neonxp/jsonrpc2 project.
+//This file is part of go.neonxp.dev/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/wrapper.go b/rpc/wrapper.go
index 5ef7a24..bfcd381 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 github.com/neonxp/jsonrpc2 project.
+//This file is part of go.neonxp.dev/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