lj

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 0 Imported by: 22

Documentation

Overview

Package lj implements common lumberjack types and functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Events []interface{}
	// contains filtered or unexported fields
}

Batch is an ACK-able batch of events as has been received by lumberjack server implemenentations. Batches must be ACKed, for the server implementations returning an ACK to it's clients.

func NewBatch

func NewBatch(evts []interface{}) *Batch

NewBatch creates a new ACK-able batch.

func (*Batch) ACK

func (b *Batch) ACK()

ACK acknowledges a batch initiating propagation of ACK to clients.

func (*Batch) Await

func (b *Batch) Await() <-chan struct{}

Await returns a channel for waiting for a batch to be ACKed.

Jump to

Keyboard shortcuts

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