MCPcopy Create free account
hub / github.com/cloud-native-go/examples / FileTransactionLogger

Struct FileTransactionLogger

ch08/hexarch/transact/filelogger.go:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27)
28
29type FileTransactionLogger struct {
30 events chan<- core.Event // Write-only channel for sending events
31 errors <-chan error
32 lastSequence uint64 // The last used event sequence number
33 file *os.File // The location of the transaction log
34 wg *sync.WaitGroup
35}
36
37func (l *FileTransactionLogger) WritePut(key, value string) {
38 l.wg.Add(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected