Documentation ¶ Index ¶ type Broker func NewBroker(v Validator, pubsub internal.PubSuber, log *logger.Logger) *Broker func (b *Broker) Accept(w http.ResponseWriter, r *http.Request) type ConnectionData type Validator Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Broker ¶ type Broker struct { Broadcast chan internal.Command // contains filtered or unexported fields } func NewBroker ¶ func NewBroker(v Validator, pubsub internal.PubSuber, log *logger.Logger) *Broker func (*Broker) Accept ¶ func (b *Broker) Accept(w http.ResponseWriter, r *http.Request) type ConnectionData ¶ type ConnectionData struct { // contains filtered or unexported fields } type Validator ¶ type Validator func(context.Context, string) (string, error) Source Files ¶ View all Source files broker.go Click to show internal directories. Click to hide internal directories.