opensergo / opensergo-control-plane

Universal cloud-native microservice governance control plane (微服务治理控制面)
Apache License 2.0
35 stars 23 forks source link

Add control plane component abstraction #4

Closed sczyh30 closed 2 years ago

sczyh30 commented 2 years ago

Add component abstraction as the abstraction of a control plane component:

type OpenSergoControlPlaneComponent interface {
    // ComponentName returns the name of the component.
    ComponentName() string

    // Run starts the component.
    Run() error
}