db4401d306
goreleaser / goreleaser (push) Has been cancelled
Renames the fast-path option to the cleaner Local across the stack (it's still unreleased) and adds a service-level knob: - client.Local() (was client.LocalDispatch) enables the in-process fast-path; Options.Local is the field. The internal/network package it dispatches through is the "local network". - service.Local() (aliased micro.Local()) turns it on for a whole service's client in one place — every co-located unary call (agent tool calls, flow dispatch, gateway -> service) takes the fast-path, no per-call wiring. Same o.Client.Init(...) pattern the Broker option uses. Off by default; a no-op for distributed deployments since the fast-path falls back to the network for anything not co-located. Claude-Session: https://claude.ai/code/session_01CmdEY7pYmV5zzwCjNJ4ykL Co-authored-by: Claude <noreply@anthropic.com>
43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
package micro
|
|
|
|
import (
|
|
"go-micro.dev/v6/service"
|
|
)
|
|
|
|
var Broker = service.Broker
|
|
var Cache = service.Cache
|
|
var Cmd = service.Cmd
|
|
var Client = service.Client
|
|
var Local = service.Local
|
|
var Context = service.Context
|
|
var Handle = service.Handle
|
|
var HandleSignal = service.HandleSignal
|
|
var Profile = service.Profile
|
|
var Server = service.Server
|
|
var Store = service.Store
|
|
var Model = service.Model
|
|
var Registry = service.Registry
|
|
var Tracer = service.Tracer
|
|
var Auth = service.Auth
|
|
var Config = service.Config
|
|
var Selector = service.Selector
|
|
var Transport = service.Transport
|
|
var Address = service.Address
|
|
var Name = service.Name
|
|
var Version = service.Version
|
|
var Metadata = service.Metadata
|
|
var Flags = service.Flags
|
|
var Action = service.Action
|
|
var RegisterTTL = service.RegisterTTL
|
|
var RegisterInterval = service.RegisterInterval
|
|
var WrapClient = service.WrapClient
|
|
var WrapCall = service.WrapCall
|
|
var WrapHandler = service.WrapHandler
|
|
var WrapSubscriber = service.WrapSubscriber
|
|
var AddListenOption = service.AddListenOption
|
|
var BeforeStart = service.BeforeStart
|
|
var BeforeStop = service.BeforeStop
|
|
var AfterStart = service.AfterStart
|
|
var AfterStop = service.AfterStop
|
|
var Logger = service.Logger
|