From 4a8f9ef10ed6253901396bd6cd3554af05cf0d73 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Mon, 31 Jan 2022 20:55:38 +0300 Subject: Added license --- rpc/errors.go | 19 +++++++++++++++++++ rpc/logger.go | 21 ++++++++++++++++++++- rpc/server.go | 19 +++++++++++++++++++ rpc/wrapper.go | 19 +++++++++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) (limited to 'rpc') 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 +// +//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 . + 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 +// +//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 . + 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 +// +//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 . + 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 +// +//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 . + package rpc import ( -- cgit v1.2.3