core

package
v0.0.0-...-550907a Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProxy

func GenerateProxy(server config.CoralServer) (proxy.Proxy, error)

Types

type LB

type LB interface {
}

type Listener

type Listener interface {
	ListenAndServe() error
	RegisterProxy(proxy.Proxy) (bool, error)
	RegisterLoadBalance(SelectProxyFunc) (bool, error)
	AuthIP(string) bool
	AuthUser(string, string) bool
}

func NewHttpListener

func NewHttpListener(conf *config.CoralConfig) (Listener, error)

type RandomLB

type RandomLB struct {
}

type SelectProxyFunc

type SelectProxyFunc func(addr string, proxies []proxy.Proxy, direct bool) (proxy.Proxy, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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