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

Method Run

server/server.go:98–103  ·  view source on GitHub ↗

Run server that terminates on SIGINT, SIGTERM signals

()

Source from the content-addressed store, hash-verified

96
97// Run server that terminates on SIGINT, SIGTERM signals
98func (s *Server) Run() {
99 ctx, cancel := signal.NotifyContext(
100 context.Background(), syscall.SIGINT, syscall.SIGTERM)
101 defer cancel()
102 s.RunContext(ctx)
103}
104
105// RunContext run server with context
106func (s *Server) RunContext(ctx context.Context) {

Callers 15

TestBlobTypesFunction · 0.80
TestBlobTypeRAWFormatsFunction · 0.80
TestWithCacheHeaderTTLFunction · 0.80
TestWithSameStoreFunction · 0.80
TestAutoWebPFunction · 0.80
TestAutoAVIFFunction · 0.80
TestAutoJPEGFunction · 0.80
TestAutoFormatPrecedenceFunction · 0.80

Calls 1

RunContextMethod · 0.95

Tested by 15

TestBlobTypesFunction · 0.64
TestBlobTypeRAWFormatsFunction · 0.64
TestWithCacheHeaderTTLFunction · 0.64
TestWithSameStoreFunction · 0.64
TestAutoWebPFunction · 0.64
TestAutoAVIFFunction · 0.64
TestAutoJPEGFunction · 0.64
TestAutoFormatPrecedenceFunction · 0.64