models

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paste

type Paste struct {
	ID            string     `json:"id" bson:"_id"`
	CreatedAt     time.Time  `json:"created_at" bson:"created_at"`
	ExpiresAt     *time.Time `json:"expires_at" bson:"expires_at,omitempty"`
	Size          int64      `json:"size" bson:"size"`
	ContentType   string     `json:"content_type" bson:"content_type"`
	BurnAfterRead bool       `json:"burn_after_read" bson:"burn_after_read"`
	ReadCount     int        `json:"read_count" bson:"read_count"`
	Content       []byte     `json:"-" bson:"content"` // Not exposed in JSON
}

Paste represents a paste/clipboard entry in the system

func (*Paste) IsExpired

func (p *Paste) IsExpired() bool

IsExpired checks if the paste has expired

func (*Paste) ShouldBurn

func (p *Paste) ShouldBurn() bool

ShouldBurn returns true if this paste should be deleted after reading

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL