app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package app responsible for application entry point.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

Dispatcher acts as en entry point for the application.

func (*Dispatcher) Run

func (d *Dispatcher) Run()

Run starts the dispatcher.

type HTTPServer

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

HTTPServer is an interface for handling HTTP connections.

func NewHTTPServer

func NewHTTPServer(config config.Configuration, analyzer *analysis.Analyzer) *HTTPServer

NewHTTPServer allocates and returns a new HTTPServer to handle HTTP connections.

func (*HTTPServer) Start

func (s *HTTPServer) Start()

Start initiates routes configuration, and starts listening.

type Proxy

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

Proxy orchestrates the interactions between the server and client, and collection of analysis data.

func NewProxy

func NewProxy(
	config config.Configuration,
	analyzer *analysis.Analyzer,
	saver *persistence.Saver,
) *Proxy

NewProxy allocates and returns a new Proxy to handle connections forwarding/reversing.

func (*Proxy) Start

func (p *Proxy) Start() error

Start initiates the proxy operations.

Jump to

Keyboard shortcuts

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