Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ViewCapability = vat.BasicCap{ "view/packed", "view"} // ErrNotFound is returned when a lookup item was not found // in the routing table. ErrNotFound = errors.New("not found") )
View Source
var HostCapability = vat.BasicCap{
"host/packed",
"host"}
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
----------------------------* | | | Client Implementations | | | *-----------------------------
type FutureRecord ¶
type FutureRecord api.View_lookup_Results_Future
func (FutureRecord) Record ¶
func (f FutureRecord) Record() (Record, error)
type FutureView ¶
type FutureView cluster.Host_view_Results_Future
func (FutureView) Err ¶
func (f FutureView) Err() error
func (FutureView) View ¶
func (f FutureView) View() View
type Host ¶
type Host struct { Client *capnp.Client Info peer.AddrInfo // contains filtered or unexported fields }
type HostServer ¶
type HostServer struct { // The server policy for client instances created by Client(). // If nil, reasonable defaults are used. Callers MUST set this // value before the first call to Client(). *server.Policy // RoutingTable provides a global view of namespace peers. // Callers MUST set this value before the first call to Client() RoutingTable // The root anchor for the HostServer. Users SHOULD NOT // set this field; it will be populated automatically on // the first call to Client(). anchor.AnchorServer // contains filtered or unexported fields }
HostServer represents a host instance on the network. It provides the Anchor and Joiner capabilities.
The zero-value HostServer is ready to use.
func (*HostServer) Client ¶
func (h *HostServer) Client() *capnp.Client
type Record ¶
type Record api.View_Record
type RecordStream ¶
func (*RecordStream) Deadline ¶
func (s *RecordStream) Deadline() (t time.Time)
func (*RecordStream) Finish ¶
func (s *RecordStream) Finish()
func (*RecordStream) Next ¶
func (s *RecordStream) Next()
func (*RecordStream) Record ¶
func (s *RecordStream) Record() (r routing.Record)
func (*RecordStream) Send ¶
func (s *RecordStream) Send(ctx context.Context, call chan_api.Sender_send) (err error)
func (*RecordStream) Shutdown ¶
func (s *RecordStream) Shutdown()
type RoutingTable ¶
RoutingTable provides a global view of namespace peers.
type ViewServer ¶
type ViewServer struct { // RoutingTable provides a local cluster view for the host. RoutingTable *server.Policy }
ViewServer provides query and iteration over a host's routing table.
func (ViewServer) Client ¶
func (f ViewServer) Client() *capnp.Client
func (ViewServer) Lookup ¶
func (f ViewServer) Lookup(_ context.Context, call api.View_lookup) error
Click to show internal directories.
Click to hide internal directories.