reporter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter interface {
	// Log appends a line to the report buffer.  Reporter will not write lines
	// until Reporter.Flush is called.
	Log(context.Context, string)

	// Flush flushes the report buffer.
	Flush(context.Context) error
}

Reporter reports lines.

func NewSheetsReporter

func NewSheetsReporter(
	ctx context.Context, spreadsheetID string,
) (Reporter, error)

NewSheetsReporter creates a reporter to store logs to a spreadsheet with a default credential.

func NewSheetsReporterWithCredential

func NewSheetsReporterWithCredential(
	ctx context.Context, cred, spreadsheetID string,
) (Reporter, error)

NewSheetsReporterWithCredential creates a reporter to store logs to a spreadsheet with a JSON credential.

Jump to

Keyboard shortcuts

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