New creates a pubsub value for use.
(host string)
| 11 | |
| 12 | // New creates a pubsub value for use. |
| 13 | func New(host string) *PubSub { |
| 14 | ps := PubSub{ |
| 15 | host: host, |
| 16 | } |
| 17 | |
| 18 | // PRETEND THERE IS A SPECIFIC IMPLEMENTATION. |
| 19 | |
| 20 | return &ps |
| 21 | } |
| 22 | |
| 23 | // Publish sends the data for the specified key. |
| 24 | func (ps *PubSub) Publish(key string, v interface{}) error { |
nothing calls this directly
no outgoing calls
no test coverage detected