jobs

package
v0.0.0-...-be7f70f Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVisited

func CheckVisited() func(string) bool

CheckVisited in map

Types

type Commit

type Commit struct {
	Author  string
	Diff    string
	Time    time.Time
	URL     string
	Hash    plumbing.Hash
	After   string
	Before  string
	Content string
}

Commit struct

type Job

type Job struct {
	Commit  *object.Commit
	Parent  *object.Commit
	Patches []diff.FilePatch
}

Job struct

type Options

type Options struct {
	Logger logger.Logger

	// Channels:
	Commits chan *object.Commit
	Parents chan *Job
	Changes chan *Commit

	// Helpers:
	Visited visitedHandler

	Repo string

	// Result:
	Result []*Commit
}

Options of worker

type Worker

type Worker struct {
	logger.Logger
	// contains filtered or unexported fields
}

Worker struct

func New

func New(opts Options) *Worker

New worker

func (*Worker) Parents

func (w *Worker) Parents() error

Parents worker

Jump to

Keyboard shortcuts

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