MCPcopy Create free account
hub / github.com/compozy/agh / validateRequired

Method validateRequired

internal/api/httpapi/server.go:548–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

546}
547
548func (s *Server) validateRequired() error {
549 switch {
550 case len(s.resourceAuth) > 0 && s.resources == nil:
551 return errors.New("httpapi: resource service is required when resource operator auth is configured")
552 case s.sessions == nil:
553 return errors.New("httpapi: session manager is required")
554 case s.tasks == nil:
555 return errors.New("httpapi: task service is required")
556 case s.observer == nil:
557 return errors.New("httpapi: observer is required")
558 case s.workspaces == nil:
559 return errors.New("httpapi: workspace resolver is required")
560 default:
561 return nil
562 }
563}
564
565func (s *Server) configureAddress() {
566 if strings.TrimSpace(s.host) == "" {

Callers 1

finalizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected