db

package module
v0.0.0-...-3c8afe8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = 0.1
)

Variables

This section is empty.

Functions

func AddShow

func AddShow(show_id int, show_name string, season string) string

func CreateDefaults

func CreateDefaults()

func DeleteShow

func DeleteShow(show_id int) int64

func ListShows

func ListShows() bool

func UpdateSettings

func UpdateSettings(key string, value string) bool

func UpdateShow

func UpdateShow(show_id int, key string, value string) bool

Types

type Configurations

type Configurations struct {
	gorm.Model
	Type  string
	Key   string
	Value string
}

type LastEpisodes

type LastEpisodes struct {
	gorm.Model
	Show_id   int
	Show_name string
	Season    string
	Episode   int
}

func GetShow

func GetShow(show_id int) LastEpisodes

func GetShows

func GetShows() []LastEpisodes

type Settings

type Settings struct {
	gorm.Model
	Notion_database string
	Notion_key      string
	Moviedb_key     string
}

func GetSettings

func GetSettings() Settings

Jump to

Keyboard shortcuts

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