tracker

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntervalCreateRetry  = time.Second * 30
	IntervalRefresh      = time.Second * 30
	IntervalConnected    = time.Second * 60
	IntervalDisconnected = time.Second * 10
)

Intervals

View Source
const (
	JiraCloud      = "jira-cloud"
	JiraServer     = "jira-server"
	JiraDataCenter = "jira-datacenter"
)

Tracker types

Variables

View Source
var (
	Log = logging.WithName("tickets")
)

Functions

This section is empty.

Types

type Connector

type Connector interface {
	// With updates the connector with the tracker model.
	With(t *model.Tracker)
	// Create a ticket in the external tracker.
	Create(t *model.Ticket) error
	// RefreshAll refreshes the status of all tickets.
	RefreshAll() (map[*model.Ticket]bool, error)
	// GetMetadata from the tracker (ticket types, projects, etc)
	GetMetadata() (model.Metadata, error)
	// TestConnection to the external ticket tracker.
	TestConnection() (bool, error)
}

Connector is a connector for an external ticket tracker.

func NewConnector

func NewConnector(t *model.Tracker) (conn Connector, err error)

NewConnector instantiates a connector for an external ticket tracker.

type Manager

type Manager struct {
	// DB
	DB *gorm.DB
}

Manager provides ticket management.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context)

Run the manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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