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

Function NewServer

agent/boundarylogproxy/proxy.go:65–72  ·  view source on GitHub ↗

NewServer creates a new boundary log proxy server.

(logger slog.Logger, socketPath string, registerer prometheus.Registerer)

Source from the content-addressed store, hash-verified

63
64// NewServer creates a new boundary log proxy server.
65func NewServer(logger slog.Logger, socketPath string, registerer prometheus.Registerer) *Server {
66 return &Server{
67 logger: logger.Named("boundary-log-proxy"),
68 socketPath: socketPath,
69 metrics: newMetrics(registerer),
70 logs: make(chan *agentproto.ReportBoundaryLogsRequest, logBufferSize),
71 }
72}
73
74// Start begins listening for connections on the Unix socket, and handles new
75// connections in a separate goroutine. Incoming logs from connections are

Calls 2

newMetricsFunction · 0.85
NamedMethod · 0.80