Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticHandler ¶
Types ¶
type Authenticator ¶
type Authenticator interface {
AuthLogin(message event.LoginEvent, psk security.PSK) (event.LoginResponse, error)
AuthLogout()
Reset()
PrivateKey() ed25519.PrivateKey
IsAuthenticated() bool
}
Authenticator is the slice of the auth service the dispatcher uses: log the owner in and out, and sign self-stream requests with their key.
type BridgeHandler ¶
type BridgeHandler struct {
// contains filtered or unexported fields
}
func NewBridgeHandler ¶
func NewBridgeHandler( handshake HandshakeFunc, auth Authenticator, psk security.PSK, firstRun func() bool, ) *BridgeHandler
func (*BridgeHandler) AttachNode ¶
func (b *BridgeHandler) AttachNode(n Node)
func (*BridgeHandler) Handle ¶
func (b *BridgeHandler) Handle() http.HandlerFunc
type HandshakeFunc ¶
Click to show internal directories.
Click to hide internal directories.