MCPcopy Create free account
hub / github.com/goinaction/code / dbConnection

Struct dbConnection

chapter7/patterns/pool/main/main.go:22–24  ·  view source on GitHub ↗

dbConnection simulates a resource to share.

Source from the content-addressed store, hash-verified

20
21// dbConnection simulates a resource to share.
22type dbConnection struct {
23 ID int32
24}
25
26// Close implements the io.Closer interface so dbConnection
27// can be managed by the pool. Close performs any resource

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected