16 lines
384 B
Go
16 lines
384 B
Go
// Copyright (c) 2026 Winlin
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
package bootstrap
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Bootstrap defines the interface for application bootstrap operations.
|
|
type Bootstrap interface {
|
|
// Start initializes the context with logger and signal handlers, then runs the bootstrap.
|
|
// Returns any error encountered during startup.
|
|
Start(ctx context.Context) error
|
|
}
|