Versions in this module Expand all Collapse all v1 v1.0.1 Mar 15, 2018 v1.0.0 Mar 14, 2018 Changes in this version + const InputPath + type Config struct + Storage DataStorage + func (conf *Config) ListenAndServe(endpoint string) + func (conf *Config) ReportReceive(ctx *fasthttp.RequestCtx) + func (conf *Config) Shutdown() + type DataStorage interface + GetPipe func() chan *ExtReport + Init func() error + Save func(csp *ExtReport) error + type ElasticStorage struct + Client *elastic.Client + Ctx context.Context + DocType string + IdxName string + Pipe chan *ExtReport + URL string + func NewElasticStorage(url string, idxname string, doctype string) (*ElasticStorage, error) + func (e *ElasticStorage) GetPipe() chan *ExtReport + func (e *ElasticStorage) Init() error + func (e *ElasticStorage) Save(r *ExtReport) error + type ExtReport struct + Date time.Time + RemoteIP net.IP + UserAgent string + type Report struct + BlockedURI string + DocumentURI string + OriginalPolicy string + Referrer string + ViolatedDirective string + type Request struct + func (r *Request) UnmarshalJSON(data []byte) error