Documentation
¶
Index ¶
- Constants
- func Connect(logger *log.Logger, ctx context.Context, clientName string, ...) (*tls.Conn, error)
- func LookupAndConnect(logger *log.Logger, ctx context.Context, clientName string, ...) (*tls.Conn, error)
- func LookupDevice(ctx context.Context, deviceID protocol.DeviceID) (string, error)
- func PerformHandshakeAndValidation(conn *tls.Conn, deviceID protocol.DeviceID) error
- func Ping(logger *log.Logger, conn *tls.Conn) error
- func Proxy(sconn *tls.Conn) (net.Conn, error)
- func TlsConfig(cert tls.Certificate) *tls.Config
- type Server
- type ServerConfig
Constants ¶
View Source
const ( ConnTimeout = 10 * time.Second MsgPing = 0x01 MsgPong = 0x02 MsgProxy = 0x03 AnnounceAddr = "https://discovery-v6.syncthing.net/v2/?nolookup&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW" LookupAddr = "https://discovery.syncthing.net/v2/?noannounce&id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW" DynamicRelayAddr = "dynamic+https://relays.syncthing.net/endpoint" )
Variables ¶
This section is empty.
Functions ¶
func LookupAndConnect ¶
func LookupDevice ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddressLister ¶
func (server *Server) AddressLister() discover.AddressLister
func (*Server) ServeDiscover ¶
func (*Server) ServeServer ¶
type ServerConfig ¶
type ServerConfig struct {
Cert tls.Certificate
ServerNetwork string
ServerAddress string
}
Click to show internal directories.
Click to hide internal directories.