shad-go/pubsub/my_pubsub.go

35 lines
604 B
Go
Raw Normal View History

2022-02-10 22:06:57 +00:00
//go:build !solution
2020-03-26 17:42:29 +00:00
// +build !solution
package pubsub
import "context"
var _ Subscription = (*MySubscription)(nil)
type MySubscription struct{}
func (s *MySubscription) Unsubscribe() {
panic("implement me")
}
var _ PubSub = (*MyPubSub)(nil)
type MyPubSub struct{}
func NewPubSub() PubSub {
panic("implement me")
}
func (p *MyPubSub) Subscribe(subj string, cb MsgHandler) (Subscription, error) {
panic("implement me")
}
func (p *MyPubSub) Publish(subj string, msg interface{}) error {
panic("implement me")
}
func (p *MyPubSub) Close(ctx context.Context) error {
panic("implement me")
}