aboutsummaryrefslogtreecommitdiff
path: root/httpd.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-04-01 16:11:24 +0700
committerShulhan <ms@kilabit.info>2023-04-01 16:15:08 +0700
commit3e188c30249222b58504ca87da66564b31f63d11 (patch)
treeb3a4b8ecb11e73d6304d587c97894f77acae9325 /httpd.go
parent482ff43bdd061d194875920f43ae335a69053946 (diff)
downloadrescached-3e188c30249222b58504ca87da66564b31f63d11.tar.xz
all: update go doc comments
While at it, use "_" for unused parameter on methods.
Diffstat (limited to 'httpd.go')
-rw-r--r--httpd.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/httpd.go b/httpd.go
index 4a19e19..4a13524 100644
--- a/httpd.go
+++ b/httpd.go
@@ -331,7 +331,7 @@ func (srv *Server) httpdRun() {
// ...
// }
// }
-func (srv *Server) httpApiBlockdList(epr *libhttp.EndpointRequest) (resBody []byte, err error) {
+func (srv *Server) httpApiBlockdList(_ *libhttp.EndpointRequest) (resBody []byte, err error) {
var (
res = libhttp.EndpointResponse{}
)
@@ -495,7 +495,7 @@ func (srv *Server) httpApiBlockdFetch(epr *libhttp.EndpointRequest) (resBody []b
return json.Marshal(&res)
}
-func (srv *Server) httpApiCaches(epr *libhttp.EndpointRequest) (resBody []byte, err error) {
+func (srv *Server) httpApiCaches(_ *libhttp.EndpointRequest) (resBody []byte, err error) {
var (
res = libhttp.EndpointResponse{}
answers = srv.dns.Caches.ExternalLRU()
@@ -580,7 +580,7 @@ func (srv *Server) httpApiCachesDelete(epr *libhttp.EndpointRequest) (resBody []
// {
// "data": <Environment>
// }
-func (srv *Server) httpApiEnvironmentGet(epr *libhttp.EndpointRequest) (resBody []byte, err error) {
+func (srv *Server) httpApiEnvironmentGet(_ *libhttp.EndpointRequest) (resBody []byte, err error) {
var (
res = libhttp.EndpointResponse{}
)
@@ -1138,7 +1138,7 @@ func (srv *Server) apiHostsdRecordDelete(epr *libhttp.EndpointRequest) (resbody
// ...
// }
// }
-func (srv *Server) apiZoned(epr *libhttp.EndpointRequest) (resb []byte, err error) {
+func (srv *Server) apiZoned(_ *libhttp.EndpointRequest) (resb []byte, err error) {
var (
res = libhttp.EndpointResponse{}
)