Documentation
¶
Index ¶
Constants ¶
View Source
const Forever = 100 * 365 * 24 * time.Hour
Forever represents a paste that never expires (100 years)
Variables ¶
This section is empty.
Functions ¶
func ComputeChecksum ¶
ComputeChecksum calculates the SHA256 checksum of the given content
Types ¶
type Meta ¶
type Meta struct {
Checksum string `json:"checksum"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
Size int64 `json:"size"`
}
Meta represents paste metadata stored alongside the content
Click to show internal directories.
Click to hide internal directories.