Documentation ¶
Index ¶
- type SeaWatcher
- func (sw *SeaWatcher) ActiveSubscriptions() map[string]map[osmodels.EventType]func()
- func (sw *SeaWatcher) DecodeCollectionOfferEvent(itemEvent map[string]interface{}) (osmodels.CollectionOfferEvent, error)
- func (sw *SeaWatcher) DecodeItemReceivedBidEvent(itemEvent map[string]interface{}) (osmodels.ItemReceivedBidEvent, error)
- func (sw *SeaWatcher) EventChannel() chan map[string]interface{}
- func (sw *SeaWatcher) IsSubscribed(slug string) bool
- func (sw *SeaWatcher) Pr(message string)
- func (sw *SeaWatcher) Prf(format string, a ...interface{})
- func (sw *SeaWatcher) PublishSendSlugs()
- func (sw *SeaWatcher) SubscribeForSlug(slug string) bool
- func (sw *SeaWatcher) SubscribeToPubsubMgmt()
- func (sw *SeaWatcher) UnubscribeForSlug(slug string) bool
- func (sw *SeaWatcher) WorkerMgmtChannel()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SeaWatcher ¶
type SeaWatcher struct {
// contains filtered or unexported fields
}
func NewSeaWatcher ¶ added in v0.4.2
func NewSeaWatcher(apiToken string, gb *gloomberg.Gloomberg) *SeaWatcher
func NewSeaWatcher(apiToken string, rdb rueidis.Client) *SeaWatcher {.
func (*SeaWatcher) ActiveSubscriptions ¶
func (sw *SeaWatcher) ActiveSubscriptions() map[string]map[osmodels.EventType]func()
func (*SeaWatcher) DecodeCollectionOfferEvent ¶ added in v0.7.1
func (sw *SeaWatcher) DecodeCollectionOfferEvent(itemEvent map[string]interface{}) (osmodels.CollectionOfferEvent, error)
func (*SeaWatcher) DecodeItemReceivedBidEvent ¶ added in v0.7.1
func (sw *SeaWatcher) DecodeItemReceivedBidEvent(itemEvent map[string]interface{}) (osmodels.ItemReceivedBidEvent, error)
func (*SeaWatcher) EventChannel ¶
func (sw *SeaWatcher) EventChannel() chan map[string]interface{}
func (*SeaWatcher) IsSubscribed ¶ added in v0.7.6
func (sw *SeaWatcher) IsSubscribed(slug string) bool
func (*SeaWatcher) Pr ¶ added in v0.7.6
func (sw *SeaWatcher) Pr(message string)
Pr prints messages from seawatcher to the terminal.
func (*SeaWatcher) Prf ¶ added in v0.7.6
func (sw *SeaWatcher) Prf(format string, a ...interface{})
Prf formats and prints messages from seawatcher to the terminal.
func (*SeaWatcher) PublishSendSlugs ¶ added in v0.6.0
func (sw *SeaWatcher) PublishSendSlugs()
func (*SeaWatcher) SubscribeForSlug ¶
func (sw *SeaWatcher) SubscribeForSlug(slug string) bool
func (*SeaWatcher) SubscribeToPubsubMgmt ¶ added in v0.8.0
func (sw *SeaWatcher) SubscribeToPubsubMgmt()
SubscribeToPubsubMgmt starts the seawatcher by subscribing to the mgmt channel and listening for new slugs to subscribe to.
func (*SeaWatcher) UnubscribeForSlug ¶
func (sw *SeaWatcher) UnubscribeForSlug(slug string) bool
func (*SeaWatcher) WorkerMgmtChannel ¶ added in v0.8.0
func (sw *SeaWatcher) WorkerMgmtChannel()
Click to show internal directories.
Click to hide internal directories.