Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_N_LOC_THREADS = 4 MAX_N_THREADS = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Publisher *ControllerPublisher Channel chan *models.Data ChannelLoc chan *models.Data Quit chan int }
func New ¶
func New(subscribers []ControllerObserver) *Controller
func (*Controller) Exit ¶
func (controller *Controller) Exit()
func (*Controller) Sorter ¶
func (controller *Controller) Sorter() func(*gin.Context)
type ControllerObserver ¶
type ControllerPublisher ¶
type ControllerPublisher struct { Subscribers []ControllerObserver PuMutex sync.Mutex }
func NewControllerPublisher ¶
func NewControllerPublisher(subscribers []ControllerObserver) *ControllerPublisher
func (*ControllerPublisher) Notify ¶
func (publisher *ControllerPublisher) Notify(data *models.Data)
func (*ControllerPublisher) Subscribe ¶
func (publisher *ControllerPublisher) Subscribe(subscriber ControllerObserver)
Click to show internal directories.
Click to hide internal directories.