webserver

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BotDetailsHandler added in v0.0.11

func BotDetailsHandler(response http.ResponseWriter, request *http.Request)

func CSSHandler

func CSSHandler(response http.ResponseWriter, request *http.Request)

func CSVHandler added in v0.0.3

func CSVHandler(response http.ResponseWriter, request *http.Request)

func CacheDetailsHandler added in v0.0.11

func CacheDetailsHandler(response http.ResponseWriter, request *http.Request)

func ForceRefreshHandler added in v0.0.11

func ForceRefreshHandler(response http.ResponseWriter, request *http.Request)

func HandleHTTP

func HandleHTTP(passedIrcBot *irc.KardBot, passedGlobalData *data.GlobalData)

func HealthHandler

func HealthHandler(response http.ResponseWriter, request *http.Request)

func IsLower added in v0.0.6

func IsLower(s string) bool

func JSONHandler added in v0.0.8

func JSONHandler(response http.ResponseWriter, request *http.Request)

func JoinHandler added in v0.0.11

func JoinHandler(response http.ResponseWriter, request *http.Request)

func LeaveHandler

func LeaveHandler(response http.ResponseWriter, request *http.Request)

func NotFoundHandler

func NotFoundHandler(response http.ResponseWriter, request *http.Request)

func ReactIndexHandler added in v0.0.8

func ReactIndexHandler(entrypoint string) func(w http.ResponseWriter, r *http.Request)

func RootHandler

func RootHandler(response http.ResponseWriter, request *http.Request)

func ScriptHandler added in v0.0.13

func ScriptHandler(response http.ResponseWriter, request *http.Request)

func TemplateHandler

func TemplateHandler(response http.ResponseWriter, request *http.Request)

func TwitchAdminHandler

func TwitchAdminHandler(response http.ResponseWriter, request *http.Request)

func TwitchBackendHandler

func TwitchBackendHandler(response http.ResponseWriter, request *http.Request)

func UnauthorizedHandler

func UnauthorizedHandler(response http.ResponseWriter, request *http.Request)

func ValidateTwitchBearerToken added in v0.0.3

func ValidateTwitchBearerToken(bearer string) (bool, error)

Types

type AugmentedSingsVideoStruct added in v0.0.3

type AugmentedSingsVideoStruct struct {
	Date               time.Time
	NiceDate           string
	ShortDate          string
	FullTitle          string
	Duet               bool
	OtherSinger        string
	SongTitle          string
	LastSungSong       time.Time
	NiceLastSungSong   string
	LastSungSinger     time.Time
	NiceLastSungSinger string
	VideoURL           string
	VideoNumber        string //yes, I don't care any more.
}

func AugmentSingsVideoStruct added in v0.0.3

func AugmentSingsVideoStruct(input data.SingsVideoStruct) AugmentedSingsVideoStruct

func AugmentSingsVideoStructForCSV added in v0.0.3

func AugmentSingsVideoStructForCSV(input data.SingsVideoStruct) AugmentedSingsVideoStruct

func AugmentSingsVideoStructSlice added in v0.0.3

func AugmentSingsVideoStructSlice(input []data.SingsVideoStruct) []AugmentedSingsVideoStruct

func AugmentSingsVideoStructSliceForCSV added in v0.0.3

func AugmentSingsVideoStructSliceForCSV(input []data.SingsVideoStruct) []AugmentedSingsVideoStruct

type CacheDetails added in v0.0.11

type CacheDetails struct {
	Age       time.Duration `json: "cache_age"`
	AgeStr    string        `json: "cache_age_nice"`
	SongCount int           `json: "expires_in"`
}

type KVHeap added in v0.0.6

type KVHeap []kv

func (KVHeap) Len added in v0.0.6

func (h KVHeap) Len() int

func (KVHeap) Less added in v0.0.6

func (h KVHeap) Less(i, j int) bool

func (*KVHeap) Pop added in v0.0.6

func (h *KVHeap) Pop() interface{}

func (*KVHeap) Push added in v0.0.6

func (h *KVHeap) Push(x interface{})

func (KVHeap) Swap added in v0.0.6

func (h KVHeap) Swap(i, j int)

type SingerSings added in v0.0.3

type SingerSings struct {
	SingerName string
	Sings      int
}

type SongSings added in v0.0.3

type SongSings struct {
	SongTitle string
	Sings     int
}

Jump to

Keyboard shortcuts

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