report

package
v0.0.0-...-989364a Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Format(Message)
	FormatError(error)
	Close()
}

Formatter is a interface for output Formatters to implement

type Message

type Message struct {
	github.Event

	EventName string
	Payload   interface{}
	Message   string
}

Message represents some event from GitHub, but with a little preprocessing

type Report

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

Report will read data from GitHub and forward then to the Formatters

func New

func New(client *github.Client, beginning time.Time) Report

New Report

func (*Report) AttachFormatter

func (r *Report) AttachFormatter(f Formatter)

AttachFormatter to receive the messages

func (*Report) Run

func (r *Report) Run()

func (*Report) SetFilter

func (r *Report) SetFilter(filter filter.Filter)

Jump to

Keyboard shortcuts

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