fix repocard issues (#2)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-11-02 13:25:29 +03:00
committed by GitHub
parent 416fe5e4c8
commit a9eff06976
11 changed files with 21 additions and 16 deletions

View File

@@ -71,10 +71,8 @@ type Event interface {
Publish(ctx context.Context, msg interface{}, opts ...client.PublishOption) error
}
// Type alias to satisfy the deprecation
type Publisher = Event
var (
// HeaderPrefix for all headers passed
HeaderPrefix = "Micro-"
)
@@ -104,11 +102,6 @@ func NewEvent(topic string, c client.Client) Event {
return &event{c, topic}
}
// Deprecated: NewPublisher returns a new Publisher
func NewPublisher(topic string, c client.Client) Event {
return NewEvent(topic, c)
}
// RegisterHandler is syntactic sugar for registering a handler
func RegisterHandler(s server.Server, h interface{}, opts ...server.HandlerOption) error {
return s.Handle(s.NewHandler(h, opts...))