Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array is used to prepopulate an array of items which can be re-used to add to log messages.
func (*Array) MarshalZerologArray ¶
MarshalZerologArray method here is no-op - since data is already in the needed format.
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
BufferPool represents a thread safe buffer pool
func NewBufferPool ¶
func NewBufferPool() (bp *BufferPool)
NewBufferPool creates a new BufferPool bounded to the given size.
func (*BufferPool) Get ¶
func (pool *BufferPool) Get() (buffer *bytes.Buffer)
Get gets a Buffer from the SizedBufferPool, or creates a new one if none are available in the pool. Buffers have a pre-allocated capacity.
func (*BufferPool) Put ¶
func (pool *BufferPool) Put(buffer *bytes.Buffer)
Put returns the given Buffer to the SizedBufferPool.
Click to show internal directories.
Click to hide internal directories.