Documentation ¶
Index ¶
- type Component
- func (reg *Component) Close() error
- func (reg *Component) IsValid(ctx context.Context) error
- func (reg *Component) ListServices(ctx context.Context, t eregistry.Target) (services []*server.ServiceInfo, err error)
- func (reg *Component) RegisterService(ctx context.Context, info *server.ServiceInfo) error
- func (reg *Component) SyncServices(context.Context, eregistry.SyncServicesOptions) error
- func (reg *Component) UnregisterService(ctx context.Context, info *server.ServiceInfo) error
- func (reg *Component) WatchServices(ctx context.Context, t eregistry.Target) (chan eregistry.Endpoints, error)
- type Config
- type Container
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) ListServices ¶
func (reg *Component) ListServices(ctx context.Context, t eregistry.Target) (services []*server.ServiceInfo, err error)
ListServices list service registered in registry with name `name`
func (*Component) RegisterService ¶
RegisterService do noting
func (*Component) SyncServices ¶
func (*Component) UnregisterService ¶
UnregisterService do noting
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func DefaultContainer ¶
func DefaultContainer() *Container
Click to show internal directories.
Click to hide internal directories.