MCPcopy Create free account
hub / github.com/coder/coder / Close

Method Close

enterprise/coderd/connectionlog/connectionlog.go:80–90  ·  view source on GitHub ↗

Close closes all backends that implement io.Closer.

()

Source from the content-addressed store, hash-verified

78
79// Close closes all backends that implement io.Closer.
80func (c *ConnectionLogger) Close() error {
81 var errs error
82 for _, backend := range c.backends {
83 if closer, ok := backend.(io.Closer); ok {
84 if err := closer.Close(); err != nil {
85 errs = multierror.Append(errs, err)
86 }
87 }
88 }
89 return errs
90}
91
92// DBBatcherOption is a functional option for configuring a DBBatcher.
93type DBBatcherOption func(b *DBBatcher)

Callers

nothing calls this directly

Implementers 5

nopcoderd/connectionlog/connectionlog.go
FakeConnectionLoggercoderd/connectionlog/connectionlog.go
ConnectionLoggerenterprise/coderd/connectionlog/connec
DBBatcherenterprise/coderd/connectionlog/connec
connectionSlogBackendenterprise/coderd/connectionlog/connec

Calls 2

CloseMethod · 0.65
AppendMethod · 0.45

Tested by

no test coverage detected