micro/server/handler.go

18 lines
272 B
Go
Raw Normal View History

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