-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: sort redis configuration * fix: yaml serialization * fix: add comment * fix: add comment * fix: doc * fix: doc * fix: sort otes config * test: fix different config * fix: test flakes * fix: test flakes * fix: test flakes * fix: test flakes Co-authored-by: marvin <lingwei0604@gmail.com>
- Loading branch information
1 parent
d810b38
commit 14233d6
Showing
7 changed files
with
47 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package otes | ||
|
||
// Config is the type of elasticsearch configurations. | ||
type Config struct { | ||
URL []string `json:"url" yaml:"url"` | ||
Index string `json:"index" yaml:"index"` | ||
Username string `json:"username" yaml:"username"` | ||
Password string `json:"password" yaml:"password"` | ||
Shards int `json:"shards" yaml:"shards"` | ||
Replicas int `json:"replicas" yaml:"replicas"` | ||
Sniff *bool `json:"sniff" yaml:"sniff"` | ||
Healthcheck *bool `json:"healthcheck" yaml:"healthcheck"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters