relay

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2015 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	URL     string
	OK      bool
	Latency int
}

type Svc

type Svc struct {
	*suture.Supervisor
	// contains filtered or unexported fields
}

func NewSvc

func NewSvc(cfg *config.Wrapper, tlsCfg *tls.Config) *Svc

func (*Svc) Accept

func (s *Svc) Accept() *tls.Conn

Accept returns a new *tls.Conn. The connection is already handshaken.

func (*Svc) CommitConfiguration

func (s *Svc) CommitConfiguration(from, to config.Configuration) bool

func (*Svc) RelayStatus

func (s *Svc) RelayStatus(uri string) (time.Duration, bool)

RelayStatus returns the latency and OK status for a given relay.

func (*Svc) Relays

func (s *Svc) Relays() []string

Relays return the list of relays that currently have an OK status.

func (*Svc) VerifyConfiguration

func (s *Svc) VerifyConfiguration(from, to config.Configuration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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