sender

package
v2.0.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {

	// state
	sync.RWMutex // Lock() to protect internal consistency of the service
	// contains filtered or unexported fields
}

func New

func New(reportChan <-chan *report.Report, w Writer, logger *logrus.Entry) *Sender

func (*Sender) Name

func (self *Sender) Name() string

func (*Sender) Start

func (self *Sender) Start() error

Start starts but doesn't wait until it exits

func (*Sender) Status

func (self *Sender) Status() map[string]string

func (*Sender) Stop

func (self *Sender) Stop()

Stop stops running

type Writer

type Writer interface {
	Write(r *report.Report) error
}

Writer write QAN Report

Jump to

Keyboard shortcuts

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