MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / NewServer

Function NewServer

config/webhook/server.go:12–22  ·  view source on GitHub ↗

NewServer returns a complete HTTP server that responds to the configuration requests. goland:noinspection GoUnusedExportedFunction

(
	cfg configuration.HTTPServerConfiguration,
	h ConfigRequestHandler,
	logger log.Logger,
)

Source from the content-addressed store, hash-verified

10// NewServer returns a complete HTTP server that responds to the configuration requests.
11//goland:noinspection GoUnusedExportedFunction
12func NewServer(
13 cfg configuration.HTTPServerConfiguration,
14 h ConfigRequestHandler,
15 logger log.Logger,
16) (service.Service, error) {
17 return config.NewServer(
18 cfg,
19 h,
20 logger,
21 )
22}

Callers 1

ExampleNewServerFunction · 0.92

Calls 1

NewServerFunction · 0.92

Tested by 1

ExampleNewServerFunction · 0.74