Documentation ¶
Index ¶
- Variables
- 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 ¶
View Source
var WithClient = WithClientK8s
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 ¶ added in v0.2.0
func (*Component) UnregisterService ¶
UnregisterService do noting
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func DefaultContainer ¶
func DefaultContainer() *Container
type Option ¶
type Option func(c *Container)
func WithClientK8s
deprecated
func WithOnFailHandle ¶ added in v0.2.0
func WithScheme ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.