1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-06 22:06:19 +02:00
go-micro/server/handler.go
2015-11-20 16:17:33 +00:00

18 lines
272 B
Go

package server
import (
"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
}