songentity

package
v0.6.10-0...-926069d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Song

type Song struct {
	jsonlib.Flatten[SongFields]
}

func (*Song) CreateID

func (s *Song) CreateID()

func (Song) IsNew

func (s Song) IsNew() bool

func (*Song) SetSavedAtToNow

func (s *Song) SetSavedAtToNow()

type SongFields

type SongFields struct {
	ID          string     `json:"id"`
	Owner       string     `json:"owner"`
	LastSavedAt *time.Time `json:"lastSavedAt"`
}

type SongSummary

type SongSummary struct {
	jsonlib.Flatten[SongFields]
}

SongSummary is explicitly distinct from Song because it's meant to be a smaller set of fields. I don't want there to be a confusion where a method takes in a song and a song summary is passed in instead

Jump to

Keyboard shortcuts

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