Skip to content

Commit 84d4bcf

Browse files
authored
add healthz endpoint (#378)
1 parent 9b0d3bd commit 84d4bcf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ctlog.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,10 @@ func NewLogHandler(ctx context.Context, origin string, signer crypto.Signer, cfg
145145
mux.Handle(path, handler)
146146
}
147147

148+
// Health checking endpoint.
149+
mux.HandleFunc("/healthz", func(resp http.ResponseWriter, req *http.Request) {
150+
fmt.Print("ok")
151+
})
152+
148153
return mux, nil
149154
}

0 commit comments

Comments
 (0)