proximate

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

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 0 Imported by: 0

README

proximate

created by Austin Poor

Proximate is a reverse proxy written in Go.

Sample Config File:

---
proximate:
  upstreams:
  - name: backend
    servers:
    - localhost:8080
    - localhost:8081
    - localhost:8082
    healthcheck:
    - /health
  server:
    port: 80
    routes:
    - path: /
      static: ./static       
    - path: /api/
      forward_to: backend 

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Upstreams []string
	// contains filtered or unexported fields
}

func (*Proxy) AddUpstream

func (p *Proxy) AddUpstream(up string)

func (*Proxy) GetNextUpstream

func (p *Proxy) GetNextUpstream() string

func (*Proxy) Run

func (p *Proxy) Run() error

type RoundRobinServerGroup

type RoundRobinServerGroup struct {
	Servers []string
}

type ServerGroup

type ServerGroup interface {
	AddServer()
	NextServer()
}

Jump to

Keyboard shortcuts

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