Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface {
// Name returns the service identifier (e.g., "database", "api", "grpc", "log").
Name() string
// Label returns the UI badge label for the dashboard.
Label() string
// Detect runs auto-detection on the project directory.
// Returns nil if the service is not detected.
Detect(dir string) interface{}
// Commands returns the cobra commands to register for this service.
Commands() []*cobra.Command
// IsConfigured checks if the config has this service set up.
IsConfigured(cfg interface{}) bool
}
Service is the interface that each built-in service type must implement. This allows tinker to be extended with new service types (Redis, Kafka, etc.) without modifying core code.
Click to show internal directories.
Click to hide internal directories.