burlesque/hub/hub.go
2014-09-10 15:44:38 +04:00

28 lines
384 B
Go

package hub
import (
"code.google.com/p/go.net/context"
"github.com/KosyanMedia/burlesque/storage"
)
type (
Hub struct {
storage *storage.Storage
subscribers []*context.Context
}
)
func New() (h *Hub) {
h = Hub{}
return
}
func (h *Hub) Pub(ctx context.Context) context.Context {
return ctx
}
func (h *Hub) Sub(ctx context.Context) context.Context {
return ctx
}