Documentation ¶ Index ¶ Constants type Buffer func NewBuffer(maxEntries int) *Buffer func (b *Buffer) MaxEntries() int func (b *Buffer) Subscribe() <-chan Entry func (b *Buffer) Tail(n int) []Entry func (b *Buffer) Write(p []byte) (int, error) type Entry type Logger Constants ¶ View Source const DefaultMaxEntries = 10 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(maxEntries int) *Buffer func (*Buffer) MaxEntries ¶ func (b *Buffer) MaxEntries() int func (*Buffer) Subscribe ¶ func (b *Buffer) Subscribe() <-chan Entry func (*Buffer) Tail ¶ func (b *Buffer) Tail(n int) []Entry func (*Buffer) Write ¶ func (b *Buffer) Write(p []byte) (int, error) type Entry ¶ type Entry struct { Text string } type Logger ¶ type Logger interface { io.Writer MaxEntries() int Tail(n int) []Entry Subscribe() <-chan Entry } Source Files ¶ View all Source files buffer.gologger.go Click to show internal directories. Click to hide internal directories.