Documentation ¶
Index ¶
- Constants
- type Depute
- type Option
- func WithDirectAnnounceURLs(urls []string) Option
- func WithGrpcListenAddr(a string) Option
- func WithGrpcServerOptions(opt ...grpc.ServerOption) Option
- func WithHost(h host.Host) Option
- func WithHttpListenAddr(addr string) Option
- func WithNoPubsubAnnounce() Option
- func WithPublishAddrs(addrs []string) Option
- func WithPublishTopic(topicName string) Option
- func WithPublisher(publisher dagsync.Publisher) Option
- func WithRetrievalAddrs(a ...string) Option
Constants ¶
View Source
const DefaultTopic = "/indexer/ingest/mainnet"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Depute ¶
type Depute struct {
// contains filtered or unexported fields
}
func (*Depute) NotifyContent ¶
func (d *Depute) NotifyContent(source depute.Publisher_NotifyContentServer) error
func (*Depute) Publish ¶
func (d *Depute) Publish(ctx context.Context, req *depute.Publish_Request) (*depute.Publish_Response, error)
type Option ¶
type Option func(*options) error
func WithDirectAnnounceURLs ¶
WithDirectAnnounceURLs sets URLs of indexers to send direct HTTP announcements to.
func WithGrpcListenAddr ¶
func WithGrpcServerOptions ¶
func WithGrpcServerOptions(opt ...grpc.ServerOption) Option
func WithHttpListenAddr ¶
WithHttpListenAddrs sets the address to listen on for publishing advertisements over HTTP.
func WithNoPubsubAnnounce ¶
func WithNoPubsubAnnounce() Option
WithNoPubsubAnnounce disables libp2p pubsub announcements.
func WithPublishAddrs ¶
WithPublishAddrs sets the addresses put into announcements to tell indexers where to get the advertisements. Addresses are multiaddr strings.
func WithPublishTopic ¶
WithPublishTopic sets the topic that pubsub messages are send on.
func WithPublisher ¶
func WithRetrievalAddrs ¶
Click to show internal directories.
Click to hide internal directories.