Documentation ¶
Index ¶
- Constants
- type PingMessage
- type Subscriptions
- func (s *Subscriptions) NewGameWasUpdatedSubscription(ctx context.Context) (<-chan football.Game, error)
- func (s *Subscriptions) NewTokenAuctionWasUpdatedSubscription(ctx context.Context, sports ...types.Sport) (<-chan tokens.TokenAuction, error)
- func (s *Subscriptions) NewTokenOfferWasUpdatedSubscription(ctx context.Context, sports ...types.Sport) (<-chan tokens.TokenOffer, error)
- func (s *Subscriptions) SetDebug(debug bool)
- type WsError
- type WsMessage
Constants ¶
View Source
const WSURL = "wss://ws.sorare.com/cable"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PingMessage ¶
func (*PingMessage) Time ¶
func (p *PingMessage) Time() time.Time
func (*PingMessage) UnmarshalJSON ¶
func (p *PingMessage) UnmarshalJSON(bytes []byte) error
type Subscriptions ¶
type Subscriptions struct {
// contains filtered or unexported fields
}
func NewSubscriptions ¶
func NewSubscriptions() *Subscriptions
func (*Subscriptions) NewGameWasUpdatedSubscription ¶
func (*Subscriptions) NewTokenAuctionWasUpdatedSubscription ¶
func (s *Subscriptions) NewTokenAuctionWasUpdatedSubscription( ctx context.Context, sports ...types.Sport, ) (<-chan tokens.TokenAuction, error)
func (*Subscriptions) NewTokenOfferWasUpdatedSubscription ¶
func (s *Subscriptions) NewTokenOfferWasUpdatedSubscription( ctx context.Context, sports ...types.Sport, ) (<-chan tokens.TokenOffer, error)
func (*Subscriptions) SetDebug ¶
func (s *Subscriptions) SetDebug(debug bool)
type WsMessage ¶
type WsMessage struct { Type string Message json.RawMessage }
Click to show internal directories.
Click to hide internal directories.