Documentation ¶
Index ¶
- Constants
- func ColLen(s *sql.ColumnType) string
- func IsDemozoo(b []sql.RawBytes) bool
- func NewApprove(b []sql.RawBytes) bool
- func Queries(v bool) error
- func ReverseInt(i uint) (uint, error)
- func Valid(deletedat, updatedat sql.RawBytes) (bool, error)
- func Verbose(v bool, i any)
- type Record
- func (r *Record) Approve() error
- func (r *Record) AutoID(data string) (id uint)
- func (r *Record) Check(values []sql.RawBytes, dir *directories.Dir) (ok bool)
- func (r *Record) CheckGroups(g1, g2 string) (ok bool)
- func (r *Record) ImagePath(path string) string
- func (r *Record) String() string
- func (r *Record) Summary(rows int)
Constants ¶
View Source
const ( // Datetime MySQL 5.7 format. Datetime = "2006-01-02T15:04:05Z" // UpdateID is a user id to use with the updatedby column. UpdateID = "b66dc282-a029-4e99-85db-2cf2892fffcc" )
Variables ¶
This section is empty.
Functions ¶
func ColLen ¶
func ColLen(s *sql.ColumnType) string
func NewApprove ¶
NewApprove reports if a new file record is set to unapproved.
func Queries ¶
queries parses all records waiting for approval skipping those that are missing expected data or assets such as thumbnails.
func ReverseInt ¶
ReverseInt swaps the direction of the value, 12345 would return 54321.
Types ¶
Click to show internal directories.
Click to hide internal directories.