gossip

package
v0.0.0-...-ca58dd2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: GPL-3.0 Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptInvite

func AcceptInvite(ds *ssb.DataStore, pb Pub, invite []byte) error

func AddPub

func AddPub(ds *ssb.DataStore, pb Pub)

func Replicate

func Replicate(ds *ssb.DataStore)

Types

type Pub

type Pub struct {
	Link ssb.Ref `json:"key"`
	Host string  `json:"host"`
	Port int     `json:"port"`
}

func GetPubs

func GetPubs(ds *ssb.DataStore) (pds []*Pub)

type PubAnnounce

type PubAnnounce struct {
	ssb.MessageBody
	Pub Pub `json:"address"`
}

Jump to

Keyboard shortcuts

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