2015-06-03 03:25:37 +03:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2015-11-20 19:17:33 +03:00
|
|
|
"github.com/micro/go-micro/registry"
|
2015-06-03 03:25:37 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type Handler interface {
|
|
|
|
Name() string
|
|
|
|
Handler() interface{}
|
|
|
|
Endpoints() []*registry.Endpoint
|
|
|
|
}
|
2015-06-12 21:52:27 +03:00
|
|
|
|
|
|
|
type Subscriber interface {
|
|
|
|
Topic() string
|
|
|
|
Subscriber() interface{}
|
|
|
|
Endpoints() []*registry.Endpoint
|
|
|
|
}
|