buffer

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package buffer implements a first-in-first-out (FIFO) fixed-capacity list

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer(capacity uint8) Buffer

func (*Buffer) Collect

func (b *Buffer) Collect() []model.Log

func (*Buffer) Flush

func (b *Buffer) Flush()

func (*Buffer) Insert

func (b *Buffer) Insert(line model.Log)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL