https

package
v0.0.0-...-003e2dc Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DistName             = "https"
	BridgeReloadInterval = time.Minute * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpsDistributor

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

HttpsDistributor contains all the context that the distributor needs to run.

func (*HttpsDistributor) Init

func (d *HttpsDistributor) Init(cfg *internal.Config)

Init initialises the given HTTPS distributor.

func (*HttpsDistributor) RequestBridges

func (d *HttpsDistributor) RequestBridges(opts RequestBridgesOptions) ([]string, error)

RequestBridges takes as tpe the type of the bridge requested, ip as the IP of the client, and ipv6 as whether IPv6 bridge is requested. and return a slice of bridge lines.

func (*HttpsDistributor) Shutdown

func (d *HttpsDistributor) Shutdown()

Shutdown shuts down the given HTTPS distributor.

type RequestBridgesOptions

type RequestBridgesOptions struct {
	Type    string
	IP      net.IP
	IPv6    bool
	Country string
	Lang    string
}

Jump to

Keyboard shortcuts

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