wrapper/

directory
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT

README

Wrappers

example usage...

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

publisher := micro.NewEvent("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