geminipoller

package
v0.0.0-...-cbc9d59 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEntry

type CacheEntry struct {
	PollerId        []byte
	SymbolHash      []byte
	RecipientConfig poller.RecipientConfig
	Notifications   gemini.NotificationsConfig
	PollInterval    time.Duration
}

type Poller

type Poller struct {
	*poller.BasePoller
	// contains filtered or unexported fields
}

func NewPoller

func NewPoller(conf poller.Config, geminiConfig *gemini.Config) (*Poller, error)

func (*Poller) Datastore

func (p *Poller) Datastore() datastore.Datastore[CacheEntry]

func (*Poller) GeminiClient

func (p *Poller) GeminiClient() *gemini.Client

func (*Poller) GeminiConfig

func (p *Poller) GeminiConfig() gemini.Config

func (*Poller) Start

func (p *Poller) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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