Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multiplexor ¶
type Multiplexor struct {
// contains filtered or unexported fields
}
Multiplexor is responsible for handling the data transfer between the storage layer and the registry. Note this is still a WIP as right now the registry is assumed to handle everything.
func NewMultiplexor ¶
func NewMultiplexor(log logging.SimpleLogging, keyGenerator PartitionKeyGenerator, registry PartitionRegistry, checkOrigin bool) *Multiplexor
func (*Multiplexor) Handle ¶
func (m *Multiplexor) Handle(w http.ResponseWriter, r *http.Request) error
Handle should be called for a given websocket request. It blocks while writing to the websocket until the buffer is closed.
type PartitionKeyGenerator ¶
PartitionKeyGenerator generates partition keys for the multiplexor
Click to show internal directories.
Click to hide internal directories.