MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / Run

Method Run

server/server.go:355–369  ·  view source on GitHub ↗
(context context.Context)

Source from the content-addressed store, hash-verified

353}
354
355func (s *Server) Run(context context.Context) {
356 s.log.Info("Hello from the function stream server!")
357 go func() {
358 <-context.Done()
359 err := s.Close()
360 if err != nil {
361 s.log.Error(err, "failed to shutdown server")
362 return
363 }
364 }()
365 err := s.startRESTHandlers()
366 if err != nil && !errors.Is(err, http.ErrServerClosed) {
367 s.log.Error(err, "Error starting REST handlers")
368 }
369}
370
371func (s *Server) startRESTHandlers() error {
372

Callers 3

execFunction · 0.95
startStandaloneSvrFunction · 0.95

Calls 3

CloseMethod · 0.95
startRESTHandlersMethod · 0.95
ErrorMethod · 0.80

Tested by 2

startStandaloneSvrFunction · 0.76