diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-01-31 20:55:38 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-01-31 20:55:38 +0300 |
commit | 4a8f9ef10ed6253901396bd6cd3554af05cf0d73 (patch) | |
tree | acf0589087614375bdaa7a55804192f01b00e306 /rpc | |
parent | 4cf58de9bb7b109dddbc80adefe52cdf61328d0d (diff) |
Added license
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/errors.go | 19 | ||||
-rw-r--r-- | rpc/logger.go | 21 | ||||
-rw-r--r-- | rpc/server.go | 19 | ||||
-rw-r--r-- | rpc/wrapper.go | 19 |
4 files changed, 77 insertions, 1 deletions
diff --git a/rpc/errors.go b/rpc/errors.go index 1af84ee..02e66cf 100644 --- a/rpc/errors.go +++ b/rpc/errors.go @@ -1,3 +1,22 @@ +//Package rpc provides abstract rpc server +// +//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> +// +//This file is part of github.com/neonxp/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 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/>. + package rpc import "fmt" diff --git a/rpc/logger.go b/rpc/logger.go index 25fe2d6..9b1e0cc 100644 --- a/rpc/logger.go +++ b/rpc/logger.go @@ -1,3 +1,22 @@ +//Package rpc provides abstract rpc server +// +//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> +// +//This file is part of github.com/neonxp/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 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/>. + package rpc import "log" @@ -8,7 +27,7 @@ type Logger interface { type nopLogger struct{} -func (n nopLogger) Logf(format string, args ...interface{}) { +func (n nopLogger) Logf(_ string, _ ...interface{}) { } type stdLogger struct{} diff --git a/rpc/server.go b/rpc/server.go index 12f07e8..ff9fcc5 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -1,3 +1,22 @@ +//Package rpc provides abstract rpc server +// +//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> +// +//This file is part of github.com/neonxp/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 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/>. + package rpc import ( diff --git a/rpc/wrapper.go b/rpc/wrapper.go index 0bc0a5c..5ef7a24 100644 --- a/rpc/wrapper.go +++ b/rpc/wrapper.go @@ -1,3 +1,22 @@ +//Package rpc provides abstract rpc server +// +//Copyright (C) 2022 Alexander Kiryukhin <i@neonxp.dev> +// +//This file is part of github.com/neonxp/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 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/>. + package rpc import ( |