import "v.io/x/ref/lib/publisher"
Package publisher provides a type to publish names to a mounttable.
type T struct {
// contains filtered or unexported fields
}
T manages the publishing of names and servers in the mounttable. It spawns an internal goroutine the periodically performs mount and unmount rpcs. T is safe to use concurrently.
New returns a new publisher that updates mounts on ns every period, and when changes are made to the state.
AddName adds a new name for all servers to be mounted as.
AddServer adds a new server to be mounted under all names.
Closed returns a channel that is closed when the publisher context is cancelled, and all unmount operations terminate.
RemoveName removes a name.
RemoveServer removes a server from the list of mounts.
func (p *T) Status() ([]rpc.PublisherEntry, <-chan struct{})
Status returns a snapshot of the publisher's current state. The returned channel is closed when the state has become stale and the caller should repoll Status.
String returns a string representation of the publisher.
Package publisher imports 10 packages (graph) and is imported by 10 packages. Updated 2020-06-09. Refresh now. Tools for package owners.