Documentation ¶
Overview ¶
Package subscription implements user subscription.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscription ¶
Subscription represents user subscription to car search.
func (*Subscription) CarExists ¶
func (sub *Subscription) CarExists(ID string) bool
CarExists returns whatever car included in the list of cars for current subscription.
func (*Subscription) NewCars ¶
func (sub *Subscription) NewCars(cars []string) []string
NewCars returns list of cars, which aren't in the list yet.
func (*Subscription) Start ¶
func (sub *Subscription) Start(callback func())
Start initializes a new goroutine for current subscription with specified callback.
func (*Subscription) Stop ¶
func (sub *Subscription) Stop()
Stop stops all running goroutines for current subscription.
Click to show internal directories.
Click to hide internal directories.