Skip to content

Commit ec46e59

Browse files
committed
Add comment
1 parent 5356400 commit ec46e59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/wsproxy/wsproxy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ type Server struct {
103103
cancel context.CancelFunc
104104
}
105105

106+
// New creates a new workspace proxy server. This requires a primary coderd
107+
// instance to be reachable and the correct authorization access token to be
108+
// provided. If the proxy cannot authenticate with the primary, this will fail.
106109
func New(ctx context.Context, opts *Options) (*Server, error) {
107110
if opts.PrometheusRegistry == nil {
108111
opts.PrometheusRegistry = prometheus.NewRegistry()

0 commit comments

Comments
 (0)