persistent

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string, db *sql.DB) (*string, error)

Get gets logs by the specified key passed in

func Test

func Test(endpoint string) bool

Test the schema to see if its an schema

Types

type Syslog

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

Syslog creates a new syslog output

func Create

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

Create a new endpoint

func (*Syslog) Close

func (log *Syslog) Close() error

Close closes the connection to peristent

func (*Syslog) Dial

func (log *Syslog) Dial() error

Dial connects persistent storage

func (*Syslog) Packets

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

Packets returns a channel to send syslog packets on

func (*Syslog) Pools

func (log *Syslog) Pools() bool

Pools returns whether the persistent end point pools connections

Jump to

Keyboard shortcuts

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