mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-30 16:02:01 +08:00

- Introduces `Config`, `ConfigFactory`, `ProviderFactory`, and `Service` interfaces in `config.go`, `provider.go`, and `service.go`. - Implements `NamedMap` for managing named factories in `named.go`. - Adds `ProviderSettings` and `ScopedProviderSettings` for managing provider settings in `setting.go`.
11 lines
224 B
Go
11 lines
224 B
Go
package factory
|
|
|
|
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
|
|
}
|