drivers

package
v0.0.0-...-d72b88c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubDriver

type GithubDriver struct {
	Auth string
}

GithubDriver is a driver for processing releases in Github format

func (GithubDriver) ApplyToReleases

func (d GithubDriver) ApplyToReleases(repository string, callback func(title, body string) error) error

ApplyToReleases is a driver method, that obtains release information directly from GitHub releases API https://developer.github.com/v3/repos/releases/

For each obtained release callback function will be invoked Execution will be stopped when callback returns null or there are no more releases

func (GithubDriver) ApplyToReleasesLastProcessed

func (d GithubDriver) ApplyToReleasesLastProcessed(repository string, callback func(title, body string) error, lastProcessed time.Time) error

ApplyToReleasesLastProcessed is similar to ApplyToReleases but also accepts time when this method was last called for this repository

Jump to

Keyboard shortcuts

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