Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimitedReader ¶
type LimitedReader struct {
// contains filtered or unexported fields
}
func NewReadLimiter ¶
func NewReadLimiter(r io.Reader, b *ratelimit.Bucket) *LimitedReader
type LimitedWriter ¶
type LimitedWriter struct {
// contains filtered or unexported fields
}
func NewWriteLimiter ¶
func NewWriteLimiter(w io.Writer, b *ratelimit.Bucket) *LimitedWriter
type ListenerFactory ¶
type Model ¶
type Model interface { protocol.Model AddConnection(conn model.Connection, hello protocol.HelloMessage) ConnectedTo(remoteID protocol.DeviceID) bool IsPaused(remoteID protocol.DeviceID) bool OnHello(protocol.DeviceID, net.Addr, protocol.HelloMessage) GetHello(protocol.DeviceID) protocol.HelloMessage }
type Service ¶ added in v0.13.0
type Service struct { *suture.Supervisor // contains filtered or unexported fields }
Service listens on TLS and dials configured unconnected devices. Successful connections are handed to the model.
func NewConnectionService ¶ added in v0.12.10
func (*Service) AllAddresses ¶ added in v0.13.0
AllAddresses returns a list of addresses that are our best guess for where we are reachable from the local network. Same conditions as ExternalAddresses, but private IPv4 addresses are included.
func (*Service) CommitConfiguration ¶ added in v0.13.0
func (s *Service) CommitConfiguration(from, to config.Configuration) bool
func (*Service) ExternalAddresses ¶ added in v0.13.0
ExternalAddresses returns a list of addresses that are our best guess for where we are reachable from the outside. As a special case, we may return one or more addresses with an empty IP address (0.0.0.0 or ::) and just port number - this means that the outside address of a NAT gateway should be substituted.
func (*Service) VerifyConfiguration ¶ added in v0.13.0
func (s *Service) VerifyConfiguration(from, to config.Configuration) error
Click to show internal directories.
Click to hide internal directories.