Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AcceptedPeer ¶
type AdapterActivity ¶
type AdapterActivityObserver ¶
type AdapterActivityObserver interface {
ObserveAdapterActivity(context.Context, AdapterActivity)
}
type CommandActivity ¶
type CommandActivityObserver ¶
type CommandActivityObserver interface {
ObserveCommandActivity(context.Context, CommandActivity)
}
type EphemeralBroadcaster ¶
type EphemeralBroadcaster interface {
http.Handler
EmitEphemeralEvent(context.Context, protocol.Event) error
}
func NewWebSocketHandler ¶
func NewWebSocketHandler(cfg WebSocketConfig) EphemeralBroadcaster
type Handshake ¶
type Handshake struct {
// contains filtered or unexported fields
}
func NewHandshake ¶
func NewHandshake(cfg HandshakeConfig) *Handshake
type HandshakeConfig ¶
type HandshakeConfig struct {
Authenticator auth.Authenticator
EventStore interface {
LatestSeq(ctx context.Context, sessionID string) (int64, error)
}
SessionLookup SessionLookup
}
type SessionInfo ¶
type SessionLookup ¶
type SessionLookup interface {
LookupSession(ctx context.Context, sessionID string) (SessionInfo, error)
}
type WebSocketConfig ¶
type WebSocketConfig struct {
Handshake *Handshake
EventStore store.EventStore
HandshakeTimeout time.Duration
CommandActivityObserver CommandActivityObserver
AdapterActivityObserver AdapterActivityObserver
}
Click to show internal directories.
Click to hide internal directories.