amqp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: BSD-2-Clause-Views Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportStorage

type ReportStorage struct {
	MaxBatchSize         uint
	MaxConcurrentBatches uint
	BatchTimeout         time.Duration
	PendingWorkCapacity  uint
	ExchangeName         string
	RoutingKey           string
	AMQPConnectionString string
	Logger               cspreport.Logger
	// contains filtered or unexported fields
}

ReportStorage is an AMQP implementation of cspreport.ReportStorage interface

func (*ReportStorage) AddCSPReport

func (rs *ReportStorage) AddCSPReport(report cspreport.CSPReport)

AddCSPReport adds a report to next batch

func (*ReportStorage) AddPKPReport

func (rs *ReportStorage) AddPKPReport(report cspreport.PKPReport)

AddPKPReport adds a report to next batch

func (*ReportStorage) Start

func (rs *ReportStorage) Start() error

Start initializes AMQP connections and muster batching

func (*ReportStorage) Stop

func (rs *ReportStorage) Stop() error

Stop flushes and stops muster batching

Jump to

Keyboard shortcuts

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