edge

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func (*Backend) ServeHTTP

func (b *Backend) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Backends

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

func (*Backends) Start

func (b *Backends) Start()

type Gateway

type Gateway struct {
	api.Gateway
	Instances []string `json:"instances"`
}

func (*Gateway) Pick

func (gw *Gateway) Pick() (string, bool)

type Gateways

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

func (*Gateways) GetGateway

func (g *Gateways) GetGateway(domain string) (*Gateway, bool)

func (*Gateways) Start

func (g *Gateways) Start()

type Instance

type Instance struct {
	Id         string `json:"id"`
	Gatewayid  string `json:"gateway_id"`
	Address    string `json:"address"`
	Port       int    `json:"port"`
	TargetPort int    `json:"target_port"`
}

type RavelProxy

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

func NewRavelProxy

func NewRavelProxy(config *proxy.Config) *RavelProxy

func (*RavelProxy) Handle

func (p *RavelProxy) Handle(w http.ResponseWriter, r *http.Request)

func (*RavelProxy) Start

func (p *RavelProxy) Start()

Jump to

Keyboard shortcuts

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