subscriptions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const WSURL = "wss://ws.sorare.com/cable"

Variables

This section is empty.

Functions

This section is empty.

Types

type PingMessage

type PingMessage time.Time

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 (s *Subscriptions) NewGameWasUpdatedSubscription(
	ctx context.Context,
) (<-chan football.Game, error)

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 WsError

type WsError struct {
	Message   string
	Locations []struct {
		Line   int
		Column int
	}
	Path       []string
	Extensions struct {
		Code         string
		TypeName     string `json:"typeName"`
		ArgumentName string `json:"argumentName"`
	}
}

type WsMessage

type WsMessage struct {
	Type    string
	Message json.RawMessage
}

Jump to

Keyboard shortcuts

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