package
0.2.0
Repository: https://github.com/vanadium/core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
This file was auto-generated by the vanadium vdl tool.
No description provided by the author
package test contains tests that rely on a fake runtime.
Package testutil defines helpers for discovery tests.

# Functions

AdvertiseServer advertises the server with the given advertisement.
DecodeTimestamp decodes the timestamp from a 8-byte byte slice.
DecodeCiphertext decodes the cipher text from a byte slice.
DirectoryClient returns a client stub for Directory.
DirectoryServer returns a server stub for Directory.
EncodeTimestamp encodes the timestamp into a 8-byte byte slice.
EncodeCiphertext encodes the cipher text into a byte slice.
ErrorfAdvertisementNotFound calls ErrAdvertisementNotFound.Errorf with the supplied arguments.
ErrorfAlreadyBeingAdvertised calls ErrAlreadyBeingAdvertised.Errorf with the supplied arguments.
ErrorfBadAdvertisement calls ErrBadAdvertisement.Errorf with the supplied arguments.
ErrorfBadQuery calls ErrBadQuery.Errorf with the supplied arguments.
ErrorfDiscoveryClosed calls ErrDiscoveryClosed.Errorf with the supplied arguments.
ErrorfNoDiscoveryPlugin calls ErrNoDiscoveryPlugin.Errorf with the supplied arguments.
ErrorfTooManyPlugins calls ErrTooManyPlugins.Errorf with the supplied arguments.
MessageAdvertisementNotFound calls ErrAdvertisementNotFound.Message with the supplied arguments.
MessageAlreadyBeingAdvertised calls ErrAlreadyBeingAdvertised.Message with the supplied arguments.
MessageBadAdvertisement calls ErrBadAdvertisement.Message with the supplied arguments.
MessageBadQuery calls ErrBadQuery.Message with the supplied arguments.
MessageDiscoveryClosed calls ErrDiscoveryClosed.Message with the supplied arguments.
MessageNoDiscoveryPlugin calls ErrNoDiscoveryPlugin.Message with the supplied arguments.
MessageTooManyPlugins calls ErrTooManyPlugins.Message with the supplied arguments.
NewAttributeUUID returns a version 5 UUID for the given name.
No description provided by the author
NewEncodingBuffer returns a new encoding buffer.
NewFactory returns a new discovery factory with the given plugins.
No description provided by the author
NewServiceUUID returns a version 5 UUID for the given interface name.
No description provided by the author
NewUpdate returns a new update with the given advertisement information.
PackAddresses packs addresses into a byte slice.
PackEncryptionKeys packs encryption algorithm and keys into a byte slice.
ParamsErrAdvertisementNotFound extracts the expected parameters from the error's ParameterList.
ParamsErrAlreadyBeingAdvertised extracts the expected parameters from the error's ParameterList.
ParamsErrBadAdvertisement extracts the expected parameters from the error's ParameterList.
ParamsErrBadQuery extracts the expected parameters from the error's ParameterList.
ParamsErrDiscoveryClosed extracts the expected parameters from the error's ParameterList.
ParamsErrNoDiscoveryPlugin extracts the expected parameters from the error's ParameterList.
ParamsErrTooManyPlugins extracts the expected parameters from the error's ParameterList.
UnpackAddresses unpacks addresses from a byte slice.
UnpackEncryptionKeys unpacks encryption algorithm and keys from a byte slice.

# Constants

Not all information is available for querying against it.
All information except attachments is available.
All information is available.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DirectoryDesc describes the Directory interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AdInfo represents advertisement information for discovery.
A Barrier is a simple incremental barrier that runs a done closure after all closures returned by Add() have been invoked.
EncodingBuffer is used to encode and decode advertisements.
A Trigger is a simple multi-channel receiver.

# Interfaces

DirectoryClientMethods is the client interface containing Directory methods.
DirectoryClientStub embeds DirectoryClientMethods and is a placeholder for additional management operations.
DirectoryServerMethods is the interface a server writer implements for Directory.
DirectoryServerStub adds universal methods to DirectoryServerStubMethods.
Factory is the interface for creating a new discovery.T instance.
Matcher is the interface for matching advertisements against a query.
Plugin is the basic interface for discovery plugins.

# Type aliases

An AdHash is a hash of an advertisement.
No description provided by the author
DirectoryServerStubMethods is the server interface containing Directory methods, as expected by rpc.Server.
No description provided by the author
No description provided by the author
Type definitions ================.