timetracker

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: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeProvidersDisplayNameMap = make(map[string]string)

TimeProvidersDisplayNameMap ...

Functions

func CleanTimeProviderConfig

func CleanTimeProviderConfig(data interface{}, name string) interface{}

CleanTimeProviderConfig ...

func GetProjectTimeLogs

func GetProjectTimeLogs(
	config []byte,
	project string,
	startTime, endTime time.Time) ([]serializers.TimeLog, error)

GetProjectTimeLogs ...

func RegisterTimeProvider

func RegisterTimeProvider(name string, newProvider TimeProvider)

RegisterTimeProvider ...

func RegisterTimeProviderDisplayName

func RegisterTimeProviderDisplayName(name string, displayName string)

RegisterTimeProviderDisplayName ...

Types

type Connection

type Connection interface {
	GetProjectTimeLogs(project string, startTime time.Time, endTime time.Time) []serializers.TimeLog
	CleanTimeProviderConfig() interface{}
}

Connection ...

func GetConnections

func GetConnections(config []byte) (connections []Connection, err error)

GetConnections ...

type TimeProvider

type TimeProvider interface {
	New(config interface{}) Connection
}

TimeProvider ...

func GetTimeProvider

func GetTimeProvider(name string) TimeProvider

GetTimeProvider ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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