extender

package
v1.6.2-tectonic.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extender

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

Extender can be Run() to write extensions to an output file.

func New

func New(extensions Extensions, license, output string, period time.Duration, publicKey string) *Extender

New returns a configured Extender that can be run.

func (*Extender) Run

func (e *Extender) Run(l *log.Logger)

Run is what actually executes a extender with a given configuration.

type Extensions

type Extensions map[string]string

Extensions is a map of key value pairs of extensions to report.

func (Extensions) Set

func (e Extensions) Set(value string) error

Set adds a new extension to the extensions map. This method splits the flag string on the first ":" character, using the first string as the key and the second string as the value. If the flag does not split on ":" then an error is raised.

func (Extensions) String

func (e Extensions) String() string

String returns a string representation of the extensions map.

Jump to

Keyboard shortcuts

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