Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrContextIDNotFound signals that no item is associated to the given // context ID. ErrContextIDNotFound = errors.New("context ID not found") // ErrAlreadyAdvertised signals that an advertisement for identical content // was already published. ErrAlreadyAdvertised = errors.New("advertisement already published") )
Functions ¶
This section is empty.
Types ¶
type IPNIPublisher ¶
type IPNIPublisher struct {
// contains filtered or unexported fields
}
func New ¶
func New(id crypto.PrivKey, store store.PublisherStore, opts ...Option) (*IPNIPublisher, error)
type Option ¶
type Option func(cfg *options) error
Option is an option configuring a publisher.
func WithAnnounceAddrs ¶
WithAnnounceAddrs configures the multiaddrs that are put into announce messages to tell indexers the addresses to fetch advertisements from.
func WithDirectAnnounce ¶
WithDirectAnnounce sets indexer URLs to send direct HTTP announcements to.
Click to show internal directories.
Click to hide internal directories.