upstream

package
v0.0.0-...-03f3354 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2015 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package upstream deals with connections to the virtual hosts' upstreams. It defines the Upstream interface. There is only one upstream object at the moment. It recongizes how to make the upstream request using the virtual host argument.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstream

type Upstream interface {
	GetRequestPartial(vh *config.VirtualHost, path string, start, end uint64) (*http.Response, error)

	GetSize(vh *config.VirtualHost, path string) (int64, error)

	GetHeader(vh *config.VirtualHost, path string) (http.Header, error)

	GetRequest(vh *config.VirtualHost, path string) (*http.Response, error)
}

func New

func New(cfg *config.Config) Upstream

Jump to

Keyboard shortcuts

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