Documentation ¶
Overview ¶
Package ext defines extensions to broker/protocol that depend on keyspace and allocator (which in turn depend on etcd). This package has been separated from broker/protocol and broker/client to avoid incurring the dependency on etcd for client users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachEndpoints ¶
AttachEndpoints maps Route members through the KeySpace to their respective specs, and attaches the associated Endpoint of each to the Route. KeySpace must already be read-locked.
func FromEtcdResponseHeader ¶
func FromEtcdResponseHeader(h epb.ResponseHeader) pb.Header_Etcd
FromEtcdResponseHeader converts an etcd ResponseHeader to an equivalent Header_Etcd.
func NewUnroutedHeader ¶
NewUnroutedHeader returns a Header with its ProcessId and Etcd fields derived from the v3_allocator.State, and Route left as zero-valued. It is a helper for APIs which do not utilize item resolution but still return Headers (eg, List and Update).
Types ¶
This section is empty.