Changed package name to go.neonxp.dev/jsonrpc2

This commit is contained in:
Alexander Kiryukhin 2022-03-24 18:37:38 +03:00
parent 4a8f9ef10e
commit d4708a3665
No known key found for this signature in database
GPG key ID: 6DF7A2910D0699E9
9 changed files with 16 additions and 13 deletions

View file

@ -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)
![GPL v3](https://www.gnu.org/graphics/gplv3-with-text-136x68.png)

View file

@ -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() {

2
go.mod
View file

@ -1,3 +1,3 @@
module github.com/neonxp/jsonrpc2
module go.neonxp.dev/jsonrpc2
go 1.18

View file

@ -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 {

View file

@ -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

View file

@ -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

3
rpc/meta.go Normal file
View file

@ -0,0 +1,3 @@
package rpc
type Meta map[string]interface{}

View file

@ -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

View file

@ -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