Documentation ¶
Index ¶
- func Register[Options any](registry *Registry, outboundType string, constructor ConstructorFunc[Options])
- type Adapter
- type ConstructorFunc
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) Create(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) error
- func (m *Manager) Default() adapter.Outbound
- func (m *Manager) Initialize(defaultOutboundFallback adapter.Outbound)
- func (m *Manager) Outbound(tag string) (adapter.Outbound, bool)
- func (m *Manager) Outbounds() []adapter.Outbound
- func (m *Manager) Remove(tag string) error
- func (m *Manager) Start(stage adapter.StartStage) error
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func (*Adapter) Dependencies ¶
type ConstructorFunc ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(logger logger.ContextLogger, registry adapter.OutboundRegistry, endpoint adapter.EndpointManager, defaultTag string) *Manager
func (*Manager) Initialize ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.