MCPcopy
hub / github.com/cshum/imagor / Service

Interface Service

server/server.go:16–24  ·  view source on GitHub ↗

Service is a http.Handler with Startup and Shutdown lifecycle

Source from the content-addressed store, hash-verified

14
15// Service is a http.Handler with Startup and Shutdown lifecycle
16type Service interface {
17 http.Handler
18
19 // Startup controls app startup
20 Startup(ctx context.Context) error
21
22 // Shutdown controls app shutdown
23 Shutdown(ctx context.Context) error
24}
25
26// Metrics represents metrics Startup and Shutdown lifecycle and Handle middleware
27type Metrics interface {

Callers 3

RunContextMethod · 0.65
startupMethod · 0.65
shutdownMethod · 0.65

Implementers 9

Imagorimagor.go
cacherProcessorimagor_test.go
testDetectorimagor_test.go
Processorprocessor/vipsprocessor/processor.go
stubDetectorprocessor/vipsprocessor/processor_test
failingDetectorprocessor/vipsprocessor/processor_test
testProcessorserver/server_test.go
slowTestProcessorserver/server_test.go
testMetricsserver/server_test.go

Calls

no outgoing calls

Tested by

no test coverage detected