aboutsummaryrefslogtreecommitdiff
path: root/lib/http/callback_error_handler.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-05-09 21:54:02 +0700
committerShulhan <ms@kilabit.info>2022-05-09 21:54:02 +0700
commit0c9abc1a962955dd0b795a422958c5445145d54c (patch)
tree4bf0369f6469a7c22057a2840c9b1c56de460559 /lib/http/callback_error_handler.go
parentc833f34b716b3aeacfca8f92227ff04cad5d04ae (diff)
downloadpakakeh.go-0c9abc1a962955dd0b795a422958c5445145d54c.tar.xz
all: reformat all codes using gofmt 1.19 (the Go tip)
Diffstat (limited to 'lib/http/callback_error_handler.go')
-rw-r--r--lib/http/callback_error_handler.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/http/callback_error_handler.go b/lib/http/callback_error_handler.go
index b6e927a2..5b93a7b5 100644
--- a/lib/http/callback_error_handler.go
+++ b/lib/http/callback_error_handler.go
@@ -13,14 +13,11 @@ import (
"github.com/shuLhan/share/lib/mlog"
)
-//
// CallbackErrorHandler define the function that can be used to handle an
// error returned from Endpoint.Call.
// By default, if Endpoint.Call is nil, it will use DefaultErrorHandler.
-//
type CallbackErrorHandler func(epr *EndpointRequest)
-//
// DefaultErrorHandler define the default function that will called to handle
// the error returned from Callback function, if the Endpoint.ErrorHandler is
// not defined.
@@ -33,7 +30,6 @@ type CallbackErrorHandler func(epr *EndpointRequest)
// write the response body as JSON format,
//
// {"code":<HTTP_STATUS_CODE>, "message":<err.Error()>}
-//
func DefaultErrorHandler(epr *EndpointRequest) {
var (
logp = "DefaultErrorHandler"