Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { sync.RWMutex // Channel for sending zone event (one of NextZone, NextZoneTick, ZoneTickEnd) ZoneEventBroadcaster *broadcast.Broadcaster LastZoneEvent interface{} // contains filtered or unexported fields }
func NewController ¶
func (*Controller) Next ¶
func (c *Controller) Next(nextZoneCreationTime time.Time)
Create next zone
func (*Controller) Start ¶
func (c *Controller) Start() error
Function for starting zone changing workflow
Timer for new zone -> Timer for next zone delay -> Tick zone till next zone reached -> Restart next zone timer Workflow will work till zero zone reached
func (*Controller) Stop ¶
func (c *Controller) Stop()
type StartNextZoneTimerEvent ¶
type Zone ¶
type ZoneTickEvent ¶
Click to show internal directories.
Click to hide internal directories.