relay

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2015 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service added in v0.12.10

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

func NewService added in v0.12.10

func NewService(cfg *config.Wrapper, tlsCfg *tls.Config) *Service

func (*Service) Accept added in v0.12.10

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

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

func (*Service) CommitConfiguration added in v0.12.10

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

func (*Service) RelayStatus added in v0.12.10

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

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

func (*Service) Relays added in v0.12.10

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

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

func (*Service) VerifyConfiguration added in v0.12.10

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

type Status

type Status struct {
	URL     string
	OK      bool
	Latency int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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