NewNativeAttachmentStore returns the default (zero-dependency) attachment store.
(secret, publicURL string)
| 56 | |
| 57 | // NewNativeAttachmentStore returns the default (zero-dependency) attachment store. |
| 58 | func NewNativeAttachmentStore(secret, publicURL string) AttachmentStore { |
| 59 | return &nativeAttachmentStore{secret: []byte(secret), publicURL: strings.TrimRight(publicURL, "/")} |
| 60 | } |
| 61 | |
| 62 | // attachmentTokenPayload is the signed, opaque-to-the-client capability payload. |
| 63 | func attachmentTokenPayload(messageID string, index int, expUnix int64) string { |
no outgoing calls