sender

package
v0.0.0-...-3dd6856 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEndpoints

func BuildEndpoints() (*client.Endpoints, error)

BuildEndpoints returns the endpoints to send logs to.

Types

type Sender

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

Sender is responsible for sending logs to different destinations.

func NewSender

func NewSender(inputChan, outputChan chan *message.Message, destinations *client.Destinations) *Sender

NewSender returns an new sender.

func (*Sender) Start

func (s *Sender) Start()

Start starts the Sender

func (*Sender) Stop

func (s *Sender) Stop()

Stop stops the Sender, this call blocks until inputChan is flushed

Jump to

Keyboard shortcuts

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