models

package
v0.0.0-...-3eeb8ca Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-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 Fullstack

type Fullstack struct {
	models.BaseModel

	Type        string `db:"type" json:"type"`
	Name        string `db:"name" json:"name"`
	Description string `db:"description" json:"description"`
	Link        string `db:"link" json:"link"`
	Order       int    `db:"order" json:"order"`
}

func (*Fullstack) TableName

func (m *Fullstack) TableName() string

type Releases

type Releases struct {
	models.BaseModel

	Songtitle    string         `db:"songtitle" json:"songtitle"`
	Slug         string         `db:"slug" json:"slug"`
	Artists      string         `db:"artists" json:"artists"`
	PrimaryColor string         `db:"primaryColor" json:"primaryColor"`
	ReleaseDate  types.DateTime `db:"releaseDate" json:"releaseDate"`
	Cover        string         `db:"cover" json:"cover"`
	Apple        string         `db:"apple" json:"apple"`
	Spotify      string         `db:"spotify" json:"spotify"`
	Youtube      string         `db:"youtube" json:"youtube"`
}

func (*Releases) TableName

func (m *Releases) TableName() string

type SpotifyActivity

type SpotifyActivity struct {
	models.BaseModel

	SpotifyId     string `db:"spotifyId" json:"spotifyId"`
	TrackName     string `db:"trackName" json:"trackName"`
	ArtistName    string `db:"artistName" json:"artistName"`
	CoverUrl      string `db:"coverUrl" json:"coverUrl"`
	DominantColor string `db:"dominantColor" json:"dominantColor"`
	SongLink      string `db:"songLink" json:"songLink"`
	IsPlaying     bool   `db:"isPlaying" json:"isPlaying"`
	ProgressMs    int    `db:"progressMs" json:"progressMs"`
	DurationMs    int    `db:"durationMs" json:"durationMs"`
}

func (*SpotifyActivity) SetCurrent

func (m *SpotifyActivity) SetCurrent(current *spotify.CurrentlyPlaying)

func (*SpotifyActivity) TableName

func (m *SpotifyActivity) TableName() string

Jump to

Keyboard shortcuts

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