webserver

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminHandler

func AdminHandler(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 HandleHTTP

func HandleHTTP(passedIrcBot *irc.KardBot)

func HealthHandler

func HealthHandler(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 RootHandler

func RootHandler(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
	FullTitle          string
	Duet               bool
	OtherSinger        string
	SongTitle          string
	LastSungSong       time.Time
	NiceLastSungSong   string
	LastSungSinger     time.Time
	NiceLastSungSinger string
}

func AugmentSingsVideoStruct added in v0.0.3

func AugmentSingsVideoStruct(input irc.SingsVideoStruct) AugmentedSingsVideoStruct

func AugmentSingsVideoStructForCSV added in v0.0.3

func AugmentSingsVideoStructForCSV(input irc.SingsVideoStruct) AugmentedSingsVideoStruct

func AugmentSingsVideoStructSlice added in v0.0.3

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

func AugmentSingsVideoStructSliceForCSV added in v0.0.3

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

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