Documentation
¶
Overview ¶
Example of basic graceful shutdown
Example of shutting down multiple resources ¶
Example of programmatic shutdown initiation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache simulates a cache service
func NewMockCache ¶
func NewMockCache(logger *logging.ContextLogger) *MockCache
NewMockCache creates a new mock cache
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase simulates a database connection
func NewMockDatabase ¶
func NewMockDatabase(logger *logging.ContextLogger) *MockDatabase
NewMockDatabase creates a new mock database
func (*MockDatabase) Close ¶
func (db *MockDatabase) Close() error
Close simulates closing a database connection
Click to show internal directories.
Click to hide internal directories.