engine

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0, BSD-3-Clause, Zlib Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionLimit

type ConnectionLimit struct {
	Id         string                `json:"Id"`
	Priority   int                   `json:"Priority"`
	Type       string                `json:"Type"`
	Middleware *ConnectionMiddleware `json:"Middleware"`
}

type ConnectionMiddleware

type ConnectionMiddleware struct {
	Variable    string `json:"Variable"`
	Connections int    `json:"Connections"`
}

type Engine

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

func NewEngine

func NewEngine(dockerUrl string, etcdMachines []string, rootDomain string, hostIP string, nameRegex string, rateLimit int, rateLimitVariable string, rateLimitBurst int, connLimit int, connLimitVariable string) *Engine

func (*Engine) Run

func (e *Engine) Run()

func (*Engine) Stop

func (e *Engine) Stop()

type RateLimit

type RateLimit struct {
	Id         string             `json:"Id"`
	Priority   int                `json:"Priority"`
	Type       string             `json:"Type"`
	Middleware *RequestMiddleware `json:"Middleware"`
}

type RequestMiddleware

type RequestMiddleware struct {
	PeriodSeconds int    `json:"PeriodSeconds"`
	Burst         int    `json:"Burst"`
	Variable      string `json:"Variable"`
	Requests      int    `json:"Requests"`
}

Jump to

Keyboard shortcuts

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