P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
14 lines
244 B
Go
14 lines
244 B
Go
package config
|
|
|
|
import "github.com/google/wire"
|
|
|
|
// ProviderSet 提供配置层的依赖
|
|
var ProviderSet = wire.NewSet(
|
|
ProvideConfig,
|
|
)
|
|
|
|
// ProvideConfig 提供应用配置
|
|
func ProvideConfig() (*Config, error) {
|
|
return LoadForBootstrap()
|
|
}
|