currentlion

package
v0.0.0-...-304b2f4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package currentlion implements basic integration with Current using plaintext syslog.

https://current.sh

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMarshaller

func NewMarshaller(options ...MarshallerOption) lion.Marshaller

NewMarshaller returns a new Marshaller that marshals messages into , appropriate to send to an io.Writer that can be tailed by the current cli tool.

func NewPusher

func NewPusher(
	appName string,
	syslogAddress string,
	token string,
) (lion.Pusher, error)

NewPusher returns a new Pusher for current.

Types

type MarshallerOption

type MarshallerOption func(*marshaller)

MarshallerOption is an option for creating Marshallers.

func MarshallerDisableNewlines

func MarshallerDisableNewlines() MarshallerOption

MarshallerDisableNewlines disables newlines after each marshalled Entry.

func MarshallerWithToken

func MarshallerWithToken(token string) MarshallerOption

MarshallerWithToken will add @current:token before every marshalled Entry. This is used for syslog output.

Jump to

Keyboard shortcuts

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