Skip to content

Commit

Permalink
refactor(config): import internal config package
Browse files Browse the repository at this point in the history
- Update import path for internal config package
- Add new constants for custom source config
  • Loading branch information
godcong committed Nov 11, 2024
1 parent db2fd58 commit 1af00fa
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 65 deletions.
5 changes: 4 additions & 1 deletion runtime/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package config
import (
kratosconfig "github.com/go-kratos/kratos/v2/config"

config "github.com/origadmin/toolkits/runtime/internal/config/v1"
"github.com/origadmin/toolkits/runtime/internal/config/v1"
)

type (
Expand Down Expand Up @@ -116,6 +116,9 @@ type (
SourceConfig_ETCD = config.SourceConfig_ETCD
SourceConfig_ETCDMultiError = config.SourceConfig_ETCDMultiError
SourceConfig_ETCDValidationError = config.SourceConfig_ETCDValidationError
SourceConfig_Custom = config.SourceConfig_Custom
SourceConfig_CustomMultiError = config.SourceConfig_CustomMultiError
SourceConfig_CustomValidationError = config.SourceConfig_CustomValidationError
SourceConfig_File = config.SourceConfig_File
SourceConfig_FileMultiError = config.SourceConfig_FileMultiError
SourceConfig_FileValidationError = config.SourceConfig_FileValidationError
Expand Down
181 changes: 118 additions & 63 deletions runtime/internal/config/v1/source.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1af00fa

Please sign in to comment.