gossip

package
v0.0.0-...-9135dd4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Zlib Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HttpFeedMimeType = "application/x-bitchan-metadata"

Variables

This section is empty.

Functions

This section is empty.

Types

type Gossiper

type Gossiper interface {
	BroadcastLocalPost(*model.Post)
	AddNeighboor(u *url.URL) bool
	Stop()
	Bootstrap()
	ForEachPeer(func(model.Peer))
}

func NewServer

func NewServer(hostname string) Gossiper

type HttpFeed

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

func (*HttpFeed) FetchNeighboors

func (f *HttpFeed) FetchNeighboors() *model.PeerList

func (*HttpFeed) Publish

func (f *HttpFeed) Publish(p *model.Post)

func (*HttpFeed) Stop

func (f *HttpFeed) Stop()

Jump to

Keyboard shortcuts

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