Documentation ¶
Index ¶
- type AuthenticationMethod
- type Authenticator
- type DirectAuth
- type SenderAuthorization
- type SenderHello
- type SenderMessage
- type ServerMessage
- type Sp3Conn
- func (s *Sp3Conn) Close() error
- func (s *Sp3Conn) LocalAddr() net.Addr
- func (s *Sp3Conn) ReadFrom(b []byte) (n int, addr net.Addr, err error)
- func (s *Sp3Conn) SetDeadline(t time.Time) error
- func (s *Sp3Conn) SetReadDeadline(t time.Time) error
- func (s *Sp3Conn) SetWriteDeadline(t time.Time) error
- func (s *Sp3Conn) WriteTo(b []byte, addr net.Addr) (n int, err error)
- type State
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationMethod ¶
type AuthenticationMethod int
const ( WEBSOCKET AuthenticationMethod = iota STUNINJECTION PATHREFLECTION )
type Authenticator ¶
type Authenticator interface {
Authenticate(chan<- string) (AuthenticationMethod, []byte, error)
}
*
- An SP3 Authenticator is the interface for a specific authentication method.
- The method is passed a channel to complete the challenge from the server;
- THe Authenticate method should set up a listener, and then provide the
- AuthenticationMethod and AuthenticationOptions for the SenderHello message.
type DirectAuth ¶
type DirectAuth struct {
// contains filtered or unexported fields
}
func (DirectAuth) Authenticate ¶
func (d DirectAuth) Authenticate(done chan<- string) (AuthenticationMethod, []byte, error)
type SenderAuthorization ¶
type SenderHello ¶
type SenderHello struct { DestinationAddress string AuthenticationMethod AuthenticationMethod AuthenticationOptions []byte }
type SenderMessage ¶
type SenderMessage struct {
Packet []byte
}
type ServerMessage ¶
type Sp3Conn ¶
Click to show internal directories.
Click to hide internal directories.