providers

package
v0.0.0-...-e75809f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeProviderGSheet            = "gsheet"
	TimeProviderGSheetDisplayName = "Google Timesheet"
)

TimeProviderGSheet ...

View Source
const (
	TimeProviderJira            = "jira"
	TimeProviderJiraDisplayName = "JIRA"
)

TimeProviderJira ...

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Type     string `json:"Type"`
	Username string `json:"Username"`
	Password string `json:"Password"`
}

Credentials ...

type GSheetTimeProvider

type GSheetTimeProvider struct {
}

GSheetTimeProvider ...

func (*GSheetTimeProvider) New

func (m *GSheetTimeProvider) New(config interface{}) timetracker.Connection

New ...

type GsheetConfig

type GsheetConfig struct {
	Email string `json:"email"`
}

GsheetConfig ...

type GsheetConnection

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

GsheetConnection ...

func (*GsheetConnection) CleanTimeProviderConfig

func (m *GsheetConnection) CleanTimeProviderConfig() interface{}

CleanTimeProviderConfig ...

func (*GsheetConnection) GetProjectTimeLogs

func (m *GsheetConnection) GetProjectTimeLogs(project string, startTime time.Time, endTime time.Time) []serializers.TimeLog

GetProjectTimeLogs ...

type JIRAConfig

type JIRAConfig struct {
	Credentials   Credentials `json:"Credentials"`
	BaseURL       string      `json:"BaseURL"`
	BoardIds      string      `json:"BoardIds"`
	JQL           string      `json:"JQL"`
	EstimateField string      `json:"EstimateField"`
}

JIRAConfig ...

func (JIRAConfig) GetBaseURL

func (config JIRAConfig) GetBaseURL() string

GetBaseURL ...

type JIRAConnection

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

JIRAConnection ...

func (*JIRAConnection) CleanTimeProviderConfig

func (jiraConnection *JIRAConnection) CleanTimeProviderConfig() interface{}

CleanTimeProviderConfig ...

func (*JIRAConnection) GetProjectTimeLogs

func (jiraConnection *JIRAConnection) GetProjectTimeLogs(project string, startTime time.Time, endTime time.Time) []serializers.TimeLog

GetProjectTimeLogs ...

type JiraTimeProvider

type JiraTimeProvider struct {
}

JiraTimeProvider ...

func (*JiraTimeProvider) New

func (jiraConnection *JiraTimeProvider) New(config interface{}) timetracker.Connection

New ...

type JiraTimeResult

type JiraTimeResult struct {
	Project string  `json:"Project"`
	TaskID  string  `json:"TaskID"`
	Hours   float64 `json:"Hours"`
}

JiraTimeResult ...

type TimeResult

type TimeResult struct {
	Project string  `json:"Project"`
	TaskID  string  `json:"TaskID"`
	Hours   float64 `json:"Hours"`
}

TimeResult ...

Jump to

Keyboard shortcuts

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