Documentation ¶
Index ¶
- func AddNewStreamer(streamerName string, category string)
- func GetStreamStatus(userid string) (string, string)
- func GetUserId(username string) (string, error)
- func RemoveExistingStreamer(streamerName string)
- func RenameCategory(oldCategoryName string, newCategoryName string)
- func RenameStreamer(oldStreamerName string, newStreamerName string)
- func ShowAllStreamers()
- func ShowStreamersOfCategoryFiltered(selectedCategory string)
- func UpdateStreamerStatus(streamer *Streamer) error
- type ApiStreamer
- type Response
- type Streamer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewStreamer ¶
AddNewStreamer checks if streamer already exists and adds it if not.
func GetStreamStatus ¶
func RemoveExistingStreamer ¶ added in v0.8.0
func RemoveExistingStreamer(streamerName string)
RemoveExistingStreamer checks if streamer exists and deletes it from the config file.
func RenameCategory ¶ added in v0.8.0
RenameCategory renames all occurrences of a category.
func RenameStreamer ¶ added in v0.8.0
RenameStreamer renames an existing streamer.
func ShowAllStreamers ¶
func ShowAllStreamers()
ShowAllStreamers shows all streamers with their current state.
func ShowStreamersOfCategoryFiltered ¶
func ShowStreamersOfCategoryFiltered(selectedCategory string)
ShowStreamersOfCategoryFiltered shows all streamers of a specified category with their current state.
func UpdateStreamerStatus ¶
Types ¶
type ApiStreamer ¶
type ApiStreamer struct { ID string `json:"id"` Login string `json:"login"` DisplayName string `json:"display_name"` Type string `json:"type"` BroadcasterType string `json:"broadcaster_type"` Description string `json:"description"` ProfileImageUrl string `json:"profile_image_url"` OfflineImageUrl string `json:"offline_image_url"` ViewCount int `json:"view_count"` }
type Response ¶
type Response struct {
Data []ApiStreamer `json:"data"`
}
type Streamer ¶
Streamer represents a twitch streamer with properties that will be displayed to the user.
func FilterForCategory ¶
func ReadStreamersFromFile ¶
ReadStreamersFromFile reads the .streamstatus config and loads the streamers.
Click to show internal directories.
Click to hide internal directories.