diff options
| author | Shulhan <ms@kilabit.info> | 2023-04-01 16:11:24 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-04-01 16:15:08 +0700 |
| commit | 3e188c30249222b58504ca87da66564b31f63d11 (patch) | |
| tree | b3a4b8ecb11e73d6304d587c97894f77acae9325 /httpd.go | |
| parent | 482ff43bdd061d194875920f43ae335a69053946 (diff) | |
| download | rescached-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.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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{} ) |
