router

package
v0.0.0-...-7516dab Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

A test router implementation.

Index

Constants

View Source
const (
	ProtocolHttp  = "http"
	ProtocolHttps = "https"
	ProtocolTls   = "tls"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Id      Identifier
	Servers Servers
}

func (*Backend) WriteTo

func (b *Backend) WriteTo(w io.Writer) error

type Certificate

type Certificate struct {
	Id                 Identifier
	Contents           []byte
	PrivateKey         []byte
	PrivateKeyPassword string
}

type Certificates

type Certificates []Certificate

type Frontend

type Frontend struct {
	Host        string
	Path        string
	Protocols   []string
	Certificate *Certificate
}

func (*Frontend) Remove

func (f *Frontend) Remove()

type Identifier

type Identifier string

func (Identifier) BackendPathfor

func (i Identifier) BackendPathfor() string

type Port

type Port struct {
	Port      port.Port
	Protocols []string
}

type Ports

type Ports []Port

type Server

type Server struct {
	Id    Identifier
	Host  string
	Ports Ports
}

type Servers

type Servers []Server

Directories

Path Synopsis
The gear 'test-router' extension.
The gear 'test-router' extension.
Job implementations for router operations.
Job implementations for router operations.

Jump to

Keyboard shortcuts

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