seawa

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL