mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 06:50:37 +08:00

### Summary Add packages for Registry and HTTP #### Related Issues / PR's https://github.com/SigNoz/signoz/pull/5710
17 lines
352 B
Go
17 lines
352 B
Go
package registry
|
|
|
|
import "context"
|
|
|
|
type Service interface {
|
|
// Starts a service. The service should return an error if it cannot be started.
|
|
Start(context.Context) error
|
|
// Stops a service.
|
|
Stop(context.Context) error
|
|
}
|
|
|
|
type NamedService interface {
|
|
// Identifier of a service. It should be unique across all services.
|
|
Name() string
|
|
Service
|
|
}
|