MemWal defines a toy wal using memory as storage.
| 26 | |
| 27 | // MemWal defines a toy wal using memory as storage. |
| 28 | type MemWal struct { |
| 29 | sync.RWMutex |
| 30 | logs []*kt.Log |
| 31 | revIndex map[uint64]int |
| 32 | offset uint64 |
| 33 | closed uint32 |
| 34 | } |
| 35 | |
| 36 | // NewMemWal returns new memory wal instance. |
| 37 | func NewMemWal() (p *MemWal) { |
nothing calls this directly
no outgoing calls
no test coverage detected