MCPcopy Index your code
hub / github.com/rilldata/rill / ServeHTTP

Method ServeHTTP

admin/server/server.go:146–157  ·  view source on GitHub ↗

Starts the HTTP server.

(ctx context.Context)

Source from the content-addressed store, hash-verified

144
145// Starts the HTTP server.
146func (s *Server) ServeHTTP(ctx context.Context) error {
147 handler, err := s.HTTPHandler(ctx)
148 if err != nil {
149 return err
150 }
151
152 return graceful.ServeHTTP(ctx, handler, graceful.ServeOptions{
153 Port: s.opts.HTTPPort,
154 GRPCPort: s.opts.GRPCPort,
155 Logger: s.logger,
156 })
157}
158
159// HTTPHandler returns a HTTP handler that serves REST and gRPC.
160func (s *Server) HTTPHandler(ctx context.Context) (http.Handler, error) {

Callers 10

ServeMethod · 0.95
StartCmdFunction · 0.95
newRuntimeServerFunction · 0.95
NewLocalServiceHandlerFunction · 0.45
StartCmdFunction · 0.45
HTTPHandlerMethod · 0.45
CookieToAuthHeaderMethod · 0.45
httpMiddlewareMethod · 0.45
NewWithOptionalRuntimeFunction · 0.45

Calls 2

HTTPHandlerMethod · 0.95
ServeHTTPFunction · 0.92

Tested by

no test coverage detected