cache

package
v0.0.0-...-407183c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCache

func ReadCache(
	ctx context.Context,
	b []byte,
	cache *Cache,
) error

func ReadCacheFromPath

func ReadCacheFromPath(
	ctx context.Context,
	cfgPath string,
	cache *Cache,
) (_err error)

func WriteCache

func WriteCache(
	_ context.Context,
	w io.Writer,
	cache Cache,
) error

func WriteCacheToPath

func WriteCacheToPath(
	ctx context.Context,
	cfgPath string,
	cache Cache,
) (_err error)

Types

type Cache

type Cache struct {
	Kick    Kick
	Twitch  Twitch
	Youtube YouTube
}

type Kick

type Kick = kick.Cache

type Twitch

type Twitch struct {
	Categories []helix.Game
}

type YouTube

type YouTube struct {
	Broadcasts []*youtube.LiveBroadcast
}

Jump to

Keyboard shortcuts

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