aero

package module
v0.0.0-...-a1324f4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

README

Aero

An interception-based web proxy. Only prerelease builds are available.

Heroku Replit Glitch

Basic Example

You can find a basic example of Aero here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aero

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

Aero represents an instance of the Aero proxy

func New

func New(log *logrus.Logger, client *fasthttp.Client, config Config) (*Aero, error)

New creates and starts a new Aero instance

type Config

type Config struct {
	// SSL contains the SSL configuration information.
	SSL struct {
		// Cert is the path to the SSL certificate file.
		Cert string
		// Key is the path to the SSL key file.
		Key string
		// Enabled indicates whether SSL is enabled.
		Enabled bool
	}
	HTTP struct {
		// Addr is the address the proxy will listen on.
		Addr string
		// Prefix is the prefix used to access the HTTP proxy.
		Prefix string
		// Static is the path to the static files.
		Static string
	}
	WS struct {
		// Prefix is the prefix used to access the WebSocket proxy.
		Prefix string
	}
}

Config is the configuration of an Aero instance.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns a configuration with the default values filled out.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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