repocounter

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

Counter keeps track of succeeded and failed repositories

func NewCounter

func NewCounter() *Counter

NewCounter create a new repo counter

func (*Counter) AddError

func (r *Counter) AddError(err error, repo domain.Repository)

AddError add a failing repository together with the error that caused it

func (*Counter) AddSuccess

func (r *Counter) AddSuccess(repo domain.Repository)

AddSuccess adds a repository that succeeded

func (*Counter) Info

func (r *Counter) Info() string

Info returns a formated string about all repositories

Jump to

Keyboard shortcuts

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