BoltTransport implements the TransportInterface using the Bolt database.
| 31 | |
| 32 | // BoltTransport implements the TransportInterface using the Bolt database. |
| 33 | type BoltTransport struct { |
| 34 | sync.RWMutex |
| 35 | |
| 36 | subscribers *SubscriberList |
| 37 | logger *slog.Logger |
| 38 | db *bolt.DB |
| 39 | bucketName string |
| 40 | size uint64 |
| 41 | cleanupFrequency float64 |
| 42 | closed chan struct{} |
| 43 | closedOnce sync.Once |
| 44 | lastSeq uint64 |
| 45 | lastEventID string |
| 46 | } |
| 47 | |
| 48 | // NewBoltTransport creates a new BoltTransport. |
| 49 | func NewBoltTransport( |
nothing calls this directly
no outgoing calls
no test coverage detected