kick

package
v0.0.0-...-0cf00ac Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeKickScraper

func InitializeKickScraper(cfg *config.Config)

func LoopScrapedLivestream

func LoopScrapedLivestream(cfg *config.Config, state *util.State, l *lua.LState) error

func StartKickThread

func StartKickThread(prefix string, f loopKick, cfg *config.Config, state *util.State, sleeptime time.Duration)

Types

type API

type API struct {
	URL        string `json:"playback_url"`
	Livestream struct {
		IsLive    bool   `json:"is_live"`
		ID        int    `json:"id"`
		Slug      string `json:"slug"`
		CreatedAt string `json:"created_at"`
		Title     string `json:"session_title"`
		Thumbnail struct {
			URL string `json:"responsive"`
		} `json:"thumbnail"`
	} `json:"livestream"`
}

func ScrapeKickStream

func ScrapeKickStream(cfg *config.Config) *API

Jump to

Keyboard shortcuts

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