Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultAddress = ":0" DefaultName = "go-server" DefaultVersion = "1.0.0" DefaultId = uuid.NewUUID().String() DefaultServer Server = newRpcServer() )
Functions ¶
func Deregister ¶
func Deregister() error
func Subscribe ¶
func Subscribe(s Subscriber) error
Types ¶
type Handler ¶
func NewHandler ¶
func NewHandler(h interface{}) Handler
type Server ¶
type Subscriber ¶
type Subscriber interface { Topic() string Subscriber() interface{} Endpoints() []*registry.Endpoint }
func NewSubscriber ¶
func NewSubscriber(topic string, h interface{}) Subscriber
Source Files ¶
Click to show internal directories.
Click to hide internal directories.