There was an error while loading. Please reload this page.
1 parent d1f78f5 commit c688d68Copy full SHA for c688d68
internal/config/http.go
@@ -1,16 +1,16 @@
1
package config
2
3
import (
4
-"github.com/harluo/boot"
+"github.com/harluo/config"
5
)
6
7
type Http struct {
8
-Client *Client `json:"client,omitempty" validate:"required"`
+Client *Client `default:"{}" json:"client,omitempty" validate:"required"`
9
}
10
11
-func newHttp(config *boot.Config) (http *Http, err error) {
+func newHttp(config *config.Getter) (http *Http, err error) {
12
http = new(Http)
13
-err = config.Build().Get(&struct {
+err = config.Get(&struct {
14
Http *Http `json:"http,omitempty" validate:"required"`
15
}{
16
Http: http,
0 commit comments