Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
ID string
AuthkeyB64 string
Cipher crypto.SymmetricCipher
// Lock when reading or writing
Conn net.Conn
LastActive time.Time
Relaying bool
Mu sync.Mutex
}
func (*Connection) SendMsgDetectAlive ¶
func (c *Connection) SendMsgDetectAlive() (alive bool)
Be careful of deadlocks
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
func (*Relay) AddConnection ¶
func (*Relay) RemoveLongConnection ¶
Click to show internal directories.
Click to hide internal directories.