synchronizer

package
v0.0.0-...-cf91c1a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityHandler

type ActivityHandler interface {
	Synchronize(*pivotal.Activity, *pivotal.Client, *jira.Client) error
}

ActivityHandler wraps the functionality to have a class factory for handling activity events from Pivotal Tracker

type ChangeHandler

type ChangeHandler interface {
	HandleChanges(*pivotal.Change, *pivotal.Client, *jira.Client) error
}

ChangeHandler wraps the functionality to have a class factory for handling change events from Pivotal Tracker

type DefaultActivityHandler

type DefaultActivityHandler struct {
}

DefaultActivityHandler is a fill in for types we do not want to handle

func (DefaultActivityHandler) Synchronize

func (d DefaultActivityHandler) Synchronize(activity *pivotal.Activity, pt *pivotal.Client, j *jira.Client) error

Synchronize is the null handler function for synchronizing activities

type EpicActivityHandler

type EpicActivityHandler struct {
}

EpicActivityHandler is the struct to wrap all Epic related updates

func (EpicActivityHandler) Synchronize

func (e EpicActivityHandler) Synchronize(activity *pivotal.Activity, pt *pivotal.Client, j *jira.Client) error

Synchronize is the general handler function for synchronizing epic activities

type StoryActivityHandler

type StoryActivityHandler struct {
}

StoryActivityHandler is a fill in for types we do not want to handle

func (StoryActivityHandler) Synchronize

func (sa StoryActivityHandler) Synchronize(activity *pivotal.Activity, pt *pivotal.Client, j *jira.Client) error

Synchronize is the general handler function for synchronizing story activities

type Synchronizer

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

Synchronizer ...

func NewSynchronizer

func NewSynchronizer(db backend.Database, task *models.Task) *Synchronizer

NewSynchronizer ...

func (*Synchronizer) ID

func (s *Synchronizer) ID() string

ID ...

func (*Synchronizer) Run

func (s *Synchronizer) Run() error

Run ...

func (*Synchronizer) SetFailed

func (s *Synchronizer) SetFailed() error

SetFailed ...

func (*Synchronizer) SetRunning

func (s *Synchronizer) SetRunning() error

SetRunning ...

func (*Synchronizer) SetStopped

func (s *Synchronizer) SetStopped() error

SetStopped ...

Jump to

Keyboard shortcuts

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