Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ Validate
Method
Validate
pkg/asteros/options.go:53–61 ·
view source on GitHub ↗
Validate 验证配置
()
Source
from the content-addressed store, hash-verified
51
52
// Validate 验证配置
53
func
(o *Options) Validate() error {
54
if
o.Pool == nil {
55
return
ErrPoolRequired
56
}
57
if
o.Port <= 0 || o.Port > 65535 {
58
return
ErrInvalidPort
59
}
60
return
nil
61
}
Callers
1
TestOptionsValidation
Function · 0.95
Calls
no outgoing calls
Tested by
1
TestOptionsValidation
Function · 0.76