mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-06 08:16:03 +02:00
22 lines
499 B
Go
22 lines
499 B
Go
// Package mucp initialises a mucp service
|
|
package mucp
|
|
|
|
import (
|
|
// TODO: change to go-micro/service
|
|
"github.com/micro/go-micro"
|
|
cmucp "github.com/micro/go-micro/client/mucp"
|
|
smucp "github.com/micro/go-micro/server/mucp"
|
|
)
|
|
|
|
// NewService returns a new mucp service
|
|
func NewService(opts ...micro.Option) micro.Service {
|
|
options := []micro.Option{
|
|
micro.Client(cmucp.NewClient()),
|
|
micro.Server(smucp.NewServer()),
|
|
}
|
|
|
|
options = append(options, opts...)
|
|
|
|
return micro.NewService(opts...)
|
|
}
|