MCPcopy
hub / github.com/mattermost/mattermost / Buffer

Struct Buffer

server/public/shared/mlog/tlog.go:126–129  ·  view source on GitHub ↗

Buffer provides a thread-safe buffer useful for logging to memory in unit tests.

Source from the content-addressed store, hash-verified

124
125// Buffer provides a thread-safe buffer useful for logging to memory in unit tests.
126type Buffer struct {
127 buf bytes.Buffer
128 mux sync.Mutex
129}
130
131func (b *Buffer) Read(p []byte) (n int, err error) {
132 b.mux.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected