config

package
v0.0.0-...-160fd46 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportConfiguration

func ExportConfiguration(c *Configuration, path string) error

ExportConfiguration -

func StringToTime

func StringToTime(t, sep string) (time.Duration, error)

StringToTime converts string to time.

func TimeToString

func TimeToString(t time.Duration, sep string) (string, error)

TimeToString converts time to string.

Types

type Configuration

type Configuration struct {
	Interval time.Duration
	Language string
	Pushed   time.Duration
	Min      int
	Max      int
	Tokens   []*github.Token
}

Configuration -

func LoadConfiguration

func LoadConfiguration(path string) (*Configuration, error)

LoadConfiguration -

type GitHubDetectorConfiguration

type GitHubDetectorConfiguration struct {
	ConfigurationPath string
	MirrorPath        string
	StorePath         StorePath

	Configuration *Configuration
	Mirrors       *sync.Map

	GPool github.Pool
	SPool *scheduler.Pool
}

GitHubDetectorConfiguration is the main context object for the detector.

type StorePath

type StorePath struct {
	Root  string
	Repo  string
	Cache string
	Repos string
}

StorePath -

Jump to

Keyboard shortcuts

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