models

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Note

type Note struct {
	Key        string        `json:"-"`
	Tag        string        `json:"tag,omitempty"`
	Content    string        `json:"content"`
	CreatedAt  time.Time     `json:"createdAt,omitempty"`
	LastUpdate time.Time     `json:"lastUpdate"`
	Version    int           `json:"version"`
	TimeSpent  time.Duration `json:"timeSpent"`
	// The number of get operations performed on a note.
	Picks uint64 `json:"picks"`
}

func (*Note) ReadableSize

func (n *Note) ReadableSize() string

func (*Note) Size

func (n *Note) Size() int

Jump to

Keyboard shortcuts

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