2020-08-22 18:36:03 +03:00
|
|
|
// Package mucp provides a transport agnostic RPC server
|
2019-06-08 21:40:44 +03:00
|
|
|
package mucp
|
2016-03-14 13:45:38 +03:00
|
|
|
|
|
|
|
import (
|
2020-07-27 15:22:00 +03:00
|
|
|
"github.com/micro/go-micro/v3/server"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
DefaultRouter = newRpcRouter()
|
2016-03-14 13:45:38 +03:00
|
|
|
)
|
|
|
|
|
2018-11-20 13:30:53 +03:00
|
|
|
// NewServer returns a micro server interface
|
2016-03-14 13:45:38 +03:00
|
|
|
func NewServer(opts ...server.Option) server.Server {
|
2020-07-27 15:22:00 +03:00
|
|
|
return newServer(opts...)
|
2016-03-14 13:45:38 +03:00
|
|
|
}
|