MCPcopy
hub / github.com/1Panel-dev/KubePi / Validate

Method Validate

thirdparty/gotty/server/options.go:147–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (ro *RedisOptions) Validate() error {
148 if ro.UseRedisTokenCache == "true" && ro.Addr == "" {
149 return errors.New("redis addr must not be null")
150 }
151 return nil
152}

Callers 1

mainFunction · 0.95

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected