memory

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalInternalOutputs map[string]chan syslog.Packet

GlobalInternalOutputs is a map of unique ids to channels that are used to push routed logs back to a pre-created channel.

Functions

func NewMemoryChannel added in v0.0.68

func NewMemoryChannel(uid string) <-chan syslog.Packet

func Test

func Test(endpoint string) bool

Test the schema to see if its memory://

Types

type Syslog

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

Syslog http ouput struct

func Create

func Create(endpoint string, errorsCh chan<- error) (*Syslog, error)

Create a new memory output

func (*Syslog) Close

func (log *Syslog) Close() error

Close closes the memory output

func (*Syslog) Dial

func (log *Syslog) Dial() error

Dial connects to the specified memory point

func (*Syslog) Packets

func (log *Syslog) Packets() chan syslog.Packet

Packets returns a channel where packets can be sent to the memory output handler

func (*Syslog) Pools

func (log *Syslog) Pools() bool

Pools returns whether the output pools connections

Jump to

Keyboard shortcuts

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