Documentation
¶
Overview ¶
Package sourcemark stores a source node's custom feed mark as a normalized square PNG under the app data dir, content-addressed by hash. A node's config records the hash; a missing file falls back to the node's glyph. See ADR webhook-source-image-marks.
Index ¶
Constants ¶
View Source
const ( // MaxInputBytes caps a raw upload before decoding. MaxInputBytes = 8 << 20 // HashLen is the character length of a mark reference: hex of the first 16 // bytes of the stored PNG's SHA-256. HashLen = 32 )
Variables ¶
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store keeps normalized mark PNGs under dir, one per content hash.
Click to show internal directories.
Click to hide internal directories.