Documentation ¶ Overview ¶ Package readiness waits for an HTTP service to accept requests. Index ¶ func WaitHTTP(ctx context.Context, url string, timeout time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WaitHTTP ¶ func WaitHTTP(ctx context.Context, url string, timeout time.Duration) error WaitHTTP polls url until it answers with any HTTP status. A published container port accepts TCP connections before the app listens (Docker's userland proxy), so a TCP check is not enough. Types ¶ This section is empty. Source Files ¶ View all Source files readiness.go Click to show internal directories. Click to hide internal directories.