traefik_waiting_room

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 9 Imported by: 0

README

traefik-waiting-room

Waiting room plugin for Traefik

Really badly incomplete and under development!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

Instantiate a new Waiting Room plugin

Types

type Config

type Config struct {
	Enabled          bool          `json:"enabled"`
	WaitRoomFile     string        `json:"waitRoomFile"`
	WaitingTime      time.Duration `json:"waitingTime"`
	PurgeTime        time.Duration `json:"purgeTime"`
	MaxEntries       int           `json:"maxEntries"`
	HttpResponseCode int           `json:"httpResponseCode"`
	HttpContentType  string        `json:"httpContentType"`
}

func CreateConfig

func CreateConfig() *Config

type WaitingRoom

type WaitingRoom struct {
	// contains filtered or unexported fields
}

func (*WaitingRoom) ServeHTTP

func (r *WaitingRoom) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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