File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
- package signature
2
-
3
1
/*
4
2
Package signature implements signature verification for MessageBird webhooks.
5
3
@@ -21,6 +19,7 @@ this value, set the ValidityWindow to the disired duration.
21
19
Take into account that the validity window works around the current time:
22
20
[now - ValidityWindow/2, now + ValidityWindow/2]
23
21
*/
22
+ package signature
24
23
25
24
import (
26
25
"bytes"
@@ -43,7 +42,7 @@ const (
43
42
// ValidityWindow defines the time window in which to validate a request.
44
43
var ValidityWindow = 5 * time .Second
45
44
46
- // StringToTime converts from Unicod Epoch enconded timestamps to time.Time Go objects .
45
+ // StringToTime converts from Unicode Epoch encoded timestamps to the time.Time type .
47
46
func stringToTime (s string ) (time.Time , error ) {
48
47
sec , err := strconv .ParseInt (s , 10 , 64 )
49
48
if err != nil {
You can’t perform that action at this time.
0 commit comments