summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/slack-go/slack/internal
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-06-25 00:36:16 +0200
committerGitHub <noreply@github.com>2022-06-25 00:36:16 +0200
commit4649876956ab944d2a9ea8fc98c75dc8a9f5ef08 (patch)
tree0f32da8e492cabd8eca53de319e287e6c4791c5e /vendor/github.com/slack-go/slack/internal
parent5604d140e3bbf5c8f6c414b1427145a0c4e36bb4 (diff)
downloadmatterbridge-msglm-4649876956ab944d2a9ea8fc98c75dc8a9f5ef08.tar.gz
matterbridge-msglm-4649876956ab944d2a9ea8fc98c75dc8a9f5ef08.tar.bz2
matterbridge-msglm-4649876956ab944d2a9ea8fc98c75dc8a9f5ef08.zip
Update dependencies (#1851)
Diffstat (limited to 'vendor/github.com/slack-go/slack/internal')
-rw-r--r--vendor/github.com/slack-go/slack/internal/misc/misc.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/vendor/github.com/slack-go/slack/internal/misc/misc.go b/vendor/github.com/slack-go/slack/internal/misc/misc.go
deleted file mode 100644
index eab8cdd8..00000000
--- a/vendor/github.com/slack-go/slack/internal/misc/misc.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package misc
-
-import (
- "fmt"
- "net/http"
-)
-
-// StatusCodeError represents an http response error.
-// type httpStatusCode interface { HTTPStatusCode() int } to handle it.
-type StatusCodeError struct {
- Code int
- Status string
-}
-
-func (t StatusCodeError) Error() string {
- return fmt.Sprintf("slack server error: %s", t.Status)
-}
-
-func (t StatusCodeError) HTTPStatusCode() int {
- return t.Code
-}
-
-func (t StatusCodeError) Retryable() bool {
- if t.Code >= 500 || t.Code == http.StatusTooManyRequests {
- return true
- }
- return false
-}