head

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0, MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryRootCid

func QueryRootCid(ctx context.Context, host host.Host, topic string, peer peer.ID) (cid.Cid, error)

Types

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher() *Publisher

func (*Publisher) Close

func (p *Publisher) Close() error

func (*Publisher) Serve

func (p *Publisher) Serve(host host.Host, topic string) error

func (*Publisher) ServeHTTP

func (p *Publisher) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Publisher) UpdateRoot

func (p *Publisher) UpdateRoot(_ context.Context, c cid.Cid) error

Jump to

Keyboard shortcuts

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