package
1.8.22
Repository: https://github.com/stefanhans/go-ethereum.git
Documentation: pkg.go.dev

# Packages

Package lookup defines feed lookup algorithms and provides tools to place updates so they can be found */.

# Functions

Hex serializes the structure and converts it to a hex string.
NewDefaultTimestampProvider creates a system clock based timestamp provider.
NewError creates a new Swarm feeds Error object with the specified code and custom error message.
NewErrorf is a convenience version of NewError that incorporates printf-style formatting.
NewFirstRequest returns a ready to sign request to publish a first feed update.
NewGenericSigner builds a signer that will sign everything with the provided private key.
NewHandler creates a new Swarm feeds API.
NewQuery constructs an Query structure to find updates on or before `time` if time == 0, the latest update will be looked up.
NewQueryLatest generates lookup parameters that look for the latest update to a feed.
NewTestHandler creates Handler object to be used for testing purposes.
NewTopic creates a new topic from a provided name and "related content" byte array, merging the two together.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxUpdateDataLength indicates the maximum payload size for a feed update.
ProtocolVersion defines the current version of the protocol that will be included in each update message.
TopicLength establishes the max length of a topic string.

# Variables

ErrTopicTooLong is returned when creating a topic with a name/related content too long.
TimestampProvider sets the time source of the feeds package.

# Structs

DefaultTimestampProvider is a TimestampProvider that uses system time as time source.
Error is a the typed error object used for Swarm feeds.
Feed represents a particular user's stream of updates on a topic.
GenericSigner implements the Signer interface It is the vanilla signer that probably should be used in most cases.
No description provided by the author
HandlerParams pass parameters to the Handler constructor NewHandler Signer and TimestampProvider are mandatory parameters.
Header defines a update message header including a protocol version byte.
ID uniquely identifies an update on the network.
Query is used to specify constraints when performing an update lookup TimeLimit indicates an upper bound for the search.
Request represents a request to sign or signed feed update message.
No description provided by the author
Timestamp encodes a point in time as a Unix epoch.
Update encapsulates the information sent as part of a feed update.

# Interfaces

Signer signs feed update payloads.
Values interface represents a string key-value store useful for building query strings.

# Type aliases

Signature is an alias for a static byte array with the size of a signature.
Topic represents what a feed is about.