controllers

package
v0.0.0-...-a65c540 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateAdded   = "dateadded"
	Name        = "name"
	LastEpisode = "lastepisode"
)
View Source
const (
	Asc  = "asc"
	Desc = "desc"
)

Variables

This section is empty.

Functions

func AddNewPodcast

func AddNewPodcast(c *gin.Context)

func AddPage

func AddPage(c *gin.Context)

func AddPodcast

func AddPodcast(c *gin.Context)

func AddTag

func AddTag(c *gin.Context)

func AddTagToPodcast

func AddTagToPodcast(c *gin.Context)

func AllEpisodesPage

func AllEpisodesPage(c *gin.Context)

func AllTagsPage

func AllTagsPage(c *gin.Context)

func BackupsPage

func BackupsPage(c *gin.Context)

func BookmarkPodcastItem

func BookmarkPodcastItem(c *gin.Context)

func DeleteOnlyPodcastById

func DeleteOnlyPodcastById(c *gin.Context)

func DeletePodcasDeleteOnlyPodcasttEpisodesById

func DeletePodcasDeleteOnlyPodcasttEpisodesById(c *gin.Context)

func DeletePodcastById

func DeletePodcastById(c *gin.Context)

func DeletePodcastEpisodesById

func DeletePodcastEpisodesById(c *gin.Context)

func DeletePodcastItem

func DeletePodcastItem(c *gin.Context)

func DeleteTagById

func DeleteTagById(c *gin.Context)

func DownloadAllEpisodesByPodcastId

func DownloadAllEpisodesByPodcastId(c *gin.Context)

func DownloadPodcastItem

func DownloadPodcastItem(c *gin.Context)

func GetAllPodcastItems

func GetAllPodcastItems(c *gin.Context)

func GetAllPodcasts

func GetAllPodcasts(c *gin.Context)

func GetAllTags

func GetAllTags(c *gin.Context)

func GetFileContentType

func GetFileContentType(filePath string) string

func GetOmpl

func GetOmpl(c *gin.Context)

func GetPodcastById

func GetPodcastById(c *gin.Context)

func GetPodcastImageById

func GetPodcastImageById(c *gin.Context)

func GetPodcastItemById

func GetPodcastItemById(c *gin.Context)

func GetPodcastItemFileById

func GetPodcastItemFileById(c *gin.Context)

func GetPodcastItemImageById

func GetPodcastItemImageById(c *gin.Context)

func GetPodcastItemsByPodcastId

func GetPodcastItemsByPodcastId(c *gin.Context)

func GetRss

func GetRss(c *gin.Context)

func GetRssForPodcastById

func GetRssForPodcastById(c *gin.Context)

func GetRssForTagById

func GetRssForTagById(c *gin.Context)

func GetTagById

func GetTagById(c *gin.Context)

func HandleWebsocketMessages

func HandleWebsocketMessages()

func HomePage

func HomePage(c *gin.Context)

func MarkPodcastItemAsPlayed

func MarkPodcastItemAsPlayed(c *gin.Context)

func MarkPodcastItemAsUnplayed

func MarkPodcastItemAsUnplayed(c *gin.Context)

func PatchPodcastItemById

func PatchPodcastItemById(c *gin.Context)

func PausePodcastById

func PausePodcastById(c *gin.Context)

func PlayerPage

func PlayerPage(c *gin.Context)

func PodcastPage

func PodcastPage(c *gin.Context)

func RemoveTagFromPodcast

func RemoveTagFromPodcast(c *gin.Context)
func Search(c *gin.Context)

func SettingsPage

func SettingsPage(c *gin.Context)

func UnbookmarkPodcastItem

func UnbookmarkPodcastItem(c *gin.Context)

func UnpausePodcastById

func UnpausePodcastById(c *gin.Context)

func UpdateSetting

func UpdateSetting(c *gin.Context)

func UploadOpml

func UploadOpml(c *gin.Context)

func Wshandler

func Wshandler(w http.ResponseWriter, r *http.Request)

Types

type AddPodcastData

type AddPodcastData struct {
	Url string `binding:"required" form:"url" json:"url"`
}

type AddRemoveTagQuery

type AddRemoveTagQuery struct {
	Id    string `binding:"required" uri:"id" json:"id" form:"id"`
	TagId string `binding:"required" uri:"tagId" json:"tagId" form:"tagId"`
}

type AddTagData

type AddTagData struct {
	Label       string `binding:"required" form:"label" json:"label"`
	Description string `form:"description" json:"description"`
}

type EnqueuePayload

type EnqueuePayload struct {
	ItemIds   []string `json:"itemIds"`
	PodcastId string   `json:"podcastId"`
	TagIds    []string `json:"tagIds"`
}

type Message

type Message struct {
	Identifier  string          `json:"identifier"`
	MessageType string          `json:"messageType"`
	Payload     string          `json:"payload"`
	Connection  *websocket.Conn `json:"-"`
}

type PatchPodcastItem

type PatchPodcastItem struct {
	IsPlayed bool   `json:"isPlayed" form:"isPlayed" query:"isPlayed"`
	Title    string `form:"title" json:"title" query:"title"`
}

type PodcastListQuery

type PodcastListQuery struct {
	Sort  string `uri:"sort" query:"sort" json:"sort" form:"sort" default:"created_at"`
	Order string `uri:"order" query:"order" json:"order" form:"order" default:"asc"`
}

type SearchByIdQuery

type SearchByIdQuery struct {
	Id string `binding:"required" uri:"id" json:"id" form:"id"`
}

type SearchGPodderData

type SearchGPodderData struct {
	Q            string `binding:"required" form:"q" json:"q" query:"q"`
	SearchSource string `binding:"required" form:"searchSource" json:"searchSource" query:"searchSource"`
}

type SearchQuery

type SearchQuery struct {
	Q    string `binding:"required" form:"q"`
	Type string `form:"type"`
}

type SettingModel

type SettingModel struct {
	DownloadOnAdd                 bool   `form:"downloadOnAdd" json:"downloadOnAdd" query:"downloadOnAdd"`
	InitialDownloadCount          int    `form:"initialDownloadCount" json:"initialDownloadCount" query:"initialDownloadCount"`
	AutoDownload                  bool   `form:"autoDownload" json:"autoDownload" query:"autoDownload"`
	AppendDateToFileName          bool   `form:"appendDateToFileName" json:"appendDateToFileName" query:"appendDateToFileName"`
	AppendEpisodeNumberToFileName bool   `form:"appendEpisodeNumberToFileName" json:"appendEpisodeNumberToFileName" query:"appendEpisodeNumberToFileName"`
	DarkMode                      bool   `form:"darkMode" json:"darkMode" query:"darkMode"`
	DownloadEpisodeImages         bool   `form:"downloadEpisodeImages" json:"downloadEpisodeImages" query:"downloadEpisodeImages"`
	GenerateNFOFile               bool   `form:"generateNFOFile" json:"generateNFOFile" query:"generateNFOFile"`
	DontDownloadDeletedFromDisk   bool   `form:"dontDownloadDeletedFromDisk" json:"dontDownloadDeletedFromDisk" query:"dontDownloadDeletedFromDisk"`
	BaseUrl                       string `form:"baseUrl" json:"baseUrl" query:"baseUrl"`
	MaxDownloadConcurrency        int    `form:"maxDownloadConcurrency" json:"maxDownloadConcurrency" query:"maxDownloadConcurrency"`
	UserAgent                     string `form:"userAgent" json:"userAgent" query:"userAgent"`
}

Jump to

Keyboard shortcuts

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