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"
|
||||
)
|
||||
|
||||
service := micro.New(
|
||||
micro.Registry(r),
|
||||
micro.Broker(b),
|
||||
)
|
||||
|
||||
service := micro.NewService()
|
||||
h := service.Server().NewHandler(&Greeter{})
|
||||
service.Server().Handle(h)
|
||||
service.Run()
|
||||
|
||||
|
||||
req := service.Client.NewRequest(service, method, request)
|
||||
req := service.Client().NewRequest(service, method, request)
|
||||
rsp := response{}
|
||||
err := service.Client.Call(req, rsp)
|
||||
err := service.Client().Call(req, rsp)
|
||||
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user