MCPcopy
hub / github.com/op/go-logging / MemoryBackend

Struct MemoryBackend

memory.go:49–53  ·  view source on GitHub ↗

MemoryBackend is a simple memory based logging backend that will not produce any output but merly keep records, up to the given size, in memory.

Source from the content-addressed store, hash-verified

47// MemoryBackend is a simple memory based logging backend that will not produce
48// any output but merly keep records, up to the given size, in memory.
49type MemoryBackend struct {
50 size int32
51 maxSize int32
52 head, tail unsafe.Pointer
53}
54
55// NewMemoryBackend creates a simple in-memory logging backend.
56func NewMemoryBackend(size int) *MemoryBackend {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected