Documentation
¶
Index ¶
- type Hub
- func (h *Hub) Acquire() *blobcache.Message
- func (h *Hub) Lookup(hash [32]byte) blobcache.TID
- func (h *Hub) Publish(tmsg *blobcache.Message) int
- func (h *Hub) Release(x *blobcache.Message)
- func (h *Hub) Subscribe(tid blobcache.TID, ch chan<- *blobcache.Message) error
- func (h *Hub) Unsubscribe(tid blobcache.TID, ch chan<- *blobcache.Message) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) Publish ¶
Publish will return the number of destinations the topic was sent to tmsg should have been obtained using Acquire. After Publish is called, the caller does not need to call Release on the message.
Click to show internal directories.
Click to hide internal directories.