Skip to content

Add healthz endpoint#378

Merged
phbnf merged 1 commit into
transparency-dev:mainfrom
phbnf:healthz
Jun 24, 2025
Merged

Add healthz endpoint#378
phbnf merged 1 commit into
transparency-dev:mainfrom
phbnf:healthz

Conversation

@phbnf

@phbnf phbnf commented Jun 24, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@phbnf
phbnf requested review from AlCutter and roger2hk June 24, 2025 15:52
@phbnf
phbnf marked this pull request as ready for review June 24, 2025 16:03
@phbnf
phbnf merged commit 84d4bcf into transparency-dev:main Jun 24, 2025
7 checks passed
Comment thread ctlog.go

// Health checking endpoint.
mux.HandleFunc("/healthz", func(resp http.ResponseWriter, req *http.Request) {
fmt.Print("ok")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fmt.Print("ok")
resp.Write([]byte("ok"))

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@roger2hk

Copy link
Copy Markdown
Contributor

Opps, I was one minute late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants