web

package
v0.0.0-...-fb49ba0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Package web implements the HortBot web server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Addr       string
	RealIP     bool
	SessionKey []byte
	AdminAuth  map[string]string

	Brand    string
	BrandMap map[string]string

	Debug bool

	Redis  *redis.DB
	DB     *sql.DB
	Twitch twitch.API
	// contains filtered or unexported fields
}

App is the HortBot webapp.

func (*App) Run

func (a *App) Run(ctx context.Context) error

Run runs the webapp until the context is canceled.

Directories

Path Synopsis
Package mid provides HTTP middleware.
Package mid provides HTTP middleware.
Package templates contains generated HTML templates.
Package templates contains generated HTML templates.

Jump to

Keyboard shortcuts

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