discovery

package
v0.0.0-...-51943a4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 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 Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(discord *discord.Client, s *state.Client, y *sync.Client) *Client

func (*Client) SyncWorker

func (c *Client) SyncWorker(ctx context.Context)

func (*Client) Watch

func (c *Client) Watch(ctx context.Context)

type Poller

type Poller struct {
	// contains filtered or unexported fields
}

func NewPoller

func NewPoller(config state.DiscoveryConfig) (*Poller, error)

func (*Poller) OpenWebsocket

func (p *Poller) OpenWebsocket(ctx context.Context) (*websocket.Conn, chan bool, error)

func (*Poller) Poll

func (p *Poller) Poll(ctx context.Context, r chan []state.ScrapedPuzzle) error

func (*Poller) Scrape

func (p *Poller) Scrape(ctx context.Context) ([]state.ScrapedPuzzle, error)

Jump to

Keyboard shortcuts

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