Documentation ¶
Overview ¶
network announcements
Index ¶
- Constants
- func AddCertificate(fingerprint [32]byte, certificate []byte)
- func AddPeer(publicKey []byte, broadcasts []byte, listeners []byte) bool
- func AddRPC(fingerprint []byte, rpcs []byte) bool
- func Finalise() error
- func GetNext(publicKey []byte) ([]byte, []byte, []byte, error)
- func Initialise(nodesDomain string) error
- func SendRegistration(client *zmqutil.Client, fn string) error
- func SetPeer(publicKey []byte, broadcasts []byte, listeners []byte) error
- func SetRPC(fingerprint fingerprintType, rpcs []byte) error
- type RPCEntry
Constants ¶
View Source
const ( TypeRPC = iota TypePeer = iota )
type of listener
Variables ¶
This section is empty.
Functions ¶
func AddCertificate ¶
add a certificate
func AddPeer ¶
add a peer announcement to the in-memory tree returns:
true if this was a new/updated entry false if the update was within the limits (to prevent continuous relaying)
func AddRPC ¶ added in v0.2.0
add an remote RPC listener returns:
true if this was a new/updated entry false if the update was within the limits (to prevent continuous relaying)
func Initialise ¶
initialise the announcement system pass a fuklly qualified domain for root node list or empty string for no root nodes
func SendRegistration ¶ added in v0.2.0
send a peer registration request to a client channel
Types ¶
Click to show internal directories.
Click to hide internal directories.