diff options
| author | 2025-03-09 17:47:56 +0100 | |
|---|---|---|
| committer | 2025-12-01 22:08:04 +0100 | |
| commit | b1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch) | |
| tree | 9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/github.com/SherClockHolmes/webpush-go/urgency.go | |
| parent | [chore] update URLs to forked source (diff) | |
| download | gotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz | |
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/SherClockHolmes/webpush-go/urgency.go')
| -rw-r--r-- | vendor/github.com/SherClockHolmes/webpush-go/urgency.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/github.com/SherClockHolmes/webpush-go/urgency.go b/vendor/github.com/SherClockHolmes/webpush-go/urgency.go deleted file mode 100644 index 97c4a32b4..000000000 --- a/vendor/github.com/SherClockHolmes/webpush-go/urgency.go +++ /dev/null @@ -1,26 +0,0 @@ -package webpush - -// Urgency indicates to the push service how important a message is to the user. -// This can be used by the push service to help conserve the battery life of a user's device -// by only waking up for important messages when battery is low. -type Urgency string - -const ( - // UrgencyVeryLow requires device state: on power and Wi-Fi - UrgencyVeryLow Urgency = "very-low" - // UrgencyLow requires device state: on either power or Wi-Fi - UrgencyLow Urgency = "low" - // UrgencyNormal excludes device state: low battery - UrgencyNormal Urgency = "normal" - // UrgencyHigh admits device state: low battery - UrgencyHigh Urgency = "high" -) - -// Checking allowable values for the urgency header -func isValidUrgency(urgency Urgency) bool { - switch urgency { - case UrgencyVeryLow, UrgencyLow, UrgencyNormal, UrgencyHigh: - return true - } - return false -} |
