MCPcopy
hub / github.com/dunglas/mercure / BoltTransport

Struct BoltTransport

bolt.go:33–46  ·  view source on GitHub ↗

BoltTransport implements the TransportInterface using the Bolt database.

Source from the content-addressed store, hash-verified

31
32// BoltTransport implements the TransportInterface using the Bolt database.
33type 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.
49func NewBoltTransport(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected