MCPcopy Index your code
hub / github.com/coder/coder / Validate

Method Validate

enterprise/wsproxy/wsproxy.go:106–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (o *Options) Validate() error {
107 var errs optErrors
108
109 errs.Required("Logger", o.Logger)
110 errs.Required("DashboardURL", o.DashboardURL)
111 errs.Required("AccessURL", o.AccessURL)
112 errs.Required("RealIPConfig", o.RealIPConfig)
113 errs.Required("PrometheusRegistry", o.PrometheusRegistry)
114 errs.NotEmpty("ProxySessionToken", o.ProxySessionToken)
115
116 if len(errs) > 0 {
117 return errs
118 }
119 return nil
120}
121
122// Server is an external workspace proxy server. This server can communicate
123// directly with a workspace. It requires a primary coderd to establish a said

Callers

nothing calls this directly

Calls 2

RequiredMethod · 0.95
NotEmptyMethod · 0.95

Tested by

no test coverage detected