Versions in this module Expand all Collapse all v0 v0.9.0 Apr 11, 2023 Changes in this version + type Option func(*Options) + func Address(addr string) Option + func AfterStart(fn func() error) Option + func AfterStop(fn func() error) Option + func BeforeStart(fn func() error) Option + func BeforeStop(fn func() error) Option + func Broker(b broker.Broker) Option + func Client(c client.Client) Option + func Context(ctx context.Context) Option + func Metadata(md map[string]string) Option + func Name(n string) Option + func RegisterInterval(t time.Duration) Option + func RegisterTTL(t time.Duration) Option + func Registry(r registry.Registry) Option + func Server(s server.Server) Option + func Transport(t transport.Transport) Option + func Version(v string) Option + func WrapCall(w ...client.CallWrapper) Option + func WrapClient(w ...client.Wrapper) Option + func WrapHandler(w ...server.HandlerWrapper) Option + func WrapSubscriber(w ...server.SubscriberWrapper) Option + type Options struct + AfterStart []func() error + AfterStop []func() error + BeforeStart []func() error + BeforeStop []func() error + Broker broker.Broker + Client client.Client + Context context.Context + Registry registry.Registry + Server server.Server + Transport transport.Transport + func NewOptions(opts ...Option) Options + type Service interface + Client func() client.Client + Init func(...Option) + Name func() string + Options func() Options + Run func() error + Server func() server.Server + String func() string