MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / Close

Method Close

auth/cert.go:114–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func (auth *CertAuth) Close() error {
115 var err error
116 auth.stopOnce.Do(func() {
117 if auth.next != nil {
118 if closeErr := auth.next.Close(); closeErr != nil {
119 err = multierror.Append(err, closeErr)
120 }
121 }
122 if auth.reject != nil {
123 if closeErr := auth.reject.Close(); closeErr != nil {
124 err = multierror.Append(err, closeErr)
125 }
126 }
127 close(auth.stopChan)
128 })
129 return err
130}
131
132func (auth *CertAuth) reload() error {
133 var oldModTime time.Time

Callers 1

NewCertAuthFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected