Versions in this module Expand all Collapse all v0 v0.1.0 Feb 9, 2022 Changes in this version + type Client struct + NodeID string + OnScrape OnScrapeCallback + OnShare OnShareCallback + Primary *redis.Client + ScrapeTicker *time.Ticker + Secondary *redis.Client + ShareTicker *time.Ticker + func NewDefaultClient(primaryAddr, secondaryAddr string, onScrape OnScrapeCallback) *Client + func (c *Client) Scrape() + func (c *Client) Set(key string, value string) + func (c *Client) Share() + func (c *Client) StartScraping() + func (c *Client) StartSharing() + type ClientState struct + func NewClientState() *ClientState + type LocalValueMap map[string]string + type OnScrapeCallback = func(error, ScrapedValuesMap) + type OnShareCallback = func(error) + type ScrapedValuesMap map[string]SharedValueMap + type SharedValueMap map[string]string