MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / NewNativeAttachmentStore

Function NewNativeAttachmentStore

internal/httpapi/attachments.go:58–60  ·  view source on GitHub ↗

NewNativeAttachmentStore returns the default (zero-dependency) attachment store.

(secret, publicURL string)

Source from the content-addressed store, hash-verified

56
57// NewNativeAttachmentStore returns the default (zero-dependency) attachment store.
58func 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.
63func attachmentTokenPayload(messageID string, index int, expUnix int64) string {

Calls

no outgoing calls