Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthHandler ¶
func HealthHandler() http.HandlerFunc
func NewStaticHandler ¶
func ReadyHandler ¶
func ReadyHandler() http.HandlerFunc
Types ¶
type Authenticator ¶
type Authenticator interface {
AuthLogin(message event.LoginEvent, psk security.PSK) (event.LoginResponse, error)
AuthLogout()
Reset()
PrivateKey() ed25519.PrivateKey
}
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( codec Codec, 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
Click to show internal directories.
Click to hide internal directories.