1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/server/handler.go

18 lines
272 B
Go

package server
import (
"github.com/myodc/go-micro/registry"
)
type Handler interface {
Name() string
Handler() interface{}
Endpoints() []*registry.Endpoint
}
type Subscriber interface {
Topic() string
Subscriber() interface{}
Endpoints() []*registry.Endpoint
}