Documentation
¶
Overview ¶
Package discovery adapts instance registries to Conduit service clients.
Index ¶
- type Forge
- func (f *Forge) Deregister(ctx context.Context, identity core.Identity) error
- func (f *Forge) List(ctx context.Context, namespace string) ([]core.Instance, error)
- func (f *Forge) Register(ctx context.Context, instance core.Instance) error
- func (f *Forge) Resolve(ctx context.Context, namespace, service string) ([]core.Instance, error)
- type Static
- func (r *Static) Deregister(_ context.Context, identity core.Identity) error
- func (r *Static) List(_ context.Context, namespace string) ([]core.Instance, error)
- func (r *Static) Register(_ context.Context, instance core.Instance) error
- func (r *Static) Resolve(ctx context.Context, namespace, service string) ([]core.Instance, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forge ¶
type Forge struct {
// contains filtered or unexported fields
}
Forge adapts an existing Forge discovery backend without owning its lifecycle.
func (*Forge) Deregister ¶
Deregister removes only the stopping member's dedicated record.
func (*Forge) List ¶
List includes unhealthy members without mixing namespaces or legacy unscoped records.
type Static ¶
type Static struct {
// contains filtered or unexported fields
}
Static is an explicitly configured registry for development and fixed deployments.
func (*Static) Deregister ¶
Deregister removes only the stopping instance.
Click to show internal directories.
Click to hide internal directories.