update the comment
This commit is contained in:
parent
2c983ef021
commit
cc720dd125
10
go-micro.go
10
go-micro.go
@ -5,19 +5,15 @@ Go micro provides a pluggable library to build microservices.
|
|||||||
micro "github.com/micro/go-micro"
|
micro "github.com/micro/go-micro"
|
||||||
)
|
)
|
||||||
|
|
||||||
service := micro.New(
|
service := micro.NewService()
|
||||||
micro.Registry(r),
|
|
||||||
micro.Broker(b),
|
|
||||||
)
|
|
||||||
|
|
||||||
h := service.Server().NewHandler(&Greeter{})
|
h := service.Server().NewHandler(&Greeter{})
|
||||||
service.Server().Handle(h)
|
service.Server().Handle(h)
|
||||||
service.Run()
|
service.Run()
|
||||||
|
|
||||||
|
|
||||||
req := service.Client.NewRequest(service, method, request)
|
req := service.Client().NewRequest(service, method, request)
|
||||||
rsp := response{}
|
rsp := response{}
|
||||||
err := service.Client.Call(req, rsp)
|
err := service.Client().Call(req, rsp)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user