wrapper/

directory
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2019 License: MIT

README

Wrappers

example usage...

service := micro.NewService(
  micro.Name("com.example.srv.foo"),
  micro.Version("v0.1.0"),
  micro.WrapSubscriber(wrapper.NewSubscriberWrapper()),
)

publisher := micro.NewPublisher("topic", service.Client())

service.Init(
  micro.WrapClient(wrapper.NewClientWrapper(service)),
  micro.WrapHandler(wrapper.NewHandlerWrapper(service)),
  micro.WrapHandler(transWrapper.NewHandlerWrapper(publisher)),
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL