Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
Add JSON and YAML tag to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanja Bonic committed Jun 7, 2021
1 parent f56ef51 commit ed77002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.1

Add JSON and YAML tag as well as a sane default for the HTTP configuration.

## 1.0.0

Initial version of a health check service using an external configuration.
2 changes: 1 addition & 1 deletion health.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// Config is the configuration for the HealthCheckService.
type Config struct {
http.ServerConfiguration
http.ServerConfiguration `json:",inline" yaml:",inline" default:"{\"listen\":\"0.0.0.0:23074\"}"`
}

// New creates a new HTTP health service on port 23074
Expand Down

0 comments on commit ed77002

Please sign in to comment.