MCPcopy Create free account
hub / github.com/goinaction/code / Subscribe

Method Subscribe

chapter10/listing06/pubsub/pubsub.go:32–36  ·  view source on GitHub ↗

Subscribe sets up an request to receive messages for the specified key.

(key string)

Source from the content-addressed store, hash-verified

30// Subscribe sets up an request to receive messages for the
31// specified key.
32func (ps *PubSub) Subscribe(key string) error {
33
34 // PRETEND THERE IS A SPECIFIC IMPLEMENTATION.
35 return nil
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected