Documentation
¶
Overview ¶
internal/compose/compose.go
internal/compose/lifecycle.go
Index ¶
- func Down(configFile string, serverNames []string) error
- func List(configFile string) error
- func Logs(configFile string, serverNames []string, follow bool) error
- func ShortDuration(d time.Duration) string
- func Start(configFile string, serverNames []string) error
- func Stop(configFile string, serverNames []string) error
- func Up(configFile string, serverNames []string) error
- func Validate(configFile string) error
- type Composer
- type HealthChecker
- type LifecycleManager
- func (lm *LifecycleManager) ExecutePostStartHook(serverName string, hook string) error
- func (lm *LifecycleManager) ExecutePostStopHook(serverName string, hook string) error
- func (lm *LifecycleManager) ExecutePreStartHook(serverName string, hook string) error
- func (lm *LifecycleManager) ExecutePreStopHook(serverName string, hook string) error
- type ProtocolManagerSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShortDuration ¶
Types ¶
type Composer ¶
type Composer struct {
// contains filtered or unexported fields
}
Composer orchestrates the entire MCP compose environment
func NewComposer ¶
NewComposer creates a new composer instance
func (*Composer) GetProtocolManagers ¶
func (c *Composer) GetProtocolManagers(serverName string) *ProtocolManagerSet
GetProtocolManagers returns protocol managers for a server
func (*Composer) StartServer ¶
StartServer starts a specific server with protocol integration
func (*Composer) StopServer ¶
StopServer stops a specific server
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
HealthChecker performs health checks on servers
func NewHealthChecker ¶
func NewHealthChecker(healthConfig config.HealthCheck, logger *logging.Logger, baseURL string) *HealthChecker
NewHealthChecker creates a new health checker
type LifecycleManager ¶
type LifecycleManager struct {
// contains filtered or unexported fields
}
LifecycleManager handles pre/post hooks and health checks
func NewLifecycleManager ¶
func NewLifecycleManager(cfg *config.ComposeConfig, logger *logging.Logger, projectDir string) *LifecycleManager
NewLifecycleManager creates a new lifecycle manager
func (*LifecycleManager) ExecutePostStartHook ¶
func (lm *LifecycleManager) ExecutePostStartHook(serverName string, hook string) error
ExecutePostStartHook executes post-start lifecycle hook
func (*LifecycleManager) ExecutePostStopHook ¶
func (lm *LifecycleManager) ExecutePostStopHook(serverName string, hook string) error
ExecutePostStopHook executes post-stop lifecycle hook
func (*LifecycleManager) ExecutePreStartHook ¶
func (lm *LifecycleManager) ExecutePreStartHook(serverName string, hook string) error
ExecutePreStartHook executes pre-start lifecycle hook
func (*LifecycleManager) ExecutePreStopHook ¶
func (lm *LifecycleManager) ExecutePreStopHook(serverName string, hook string) error
ExecutePreStopHook executes pre-stop lifecycle hook
type ProtocolManagerSet ¶
type ProtocolManagerSet struct { Progress *protocol.ProgressManager Resource *protocol.ResourceManager Sampling *protocol.SamplingManager Subscription *protocol.SubscriptionManager Change *protocol.ChangeNotificationManager }
ProtocolManagerSet contains all protocol managers for a server