imports

package
v0.0.0-...-1d5f51d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const OriginWakatime = "wakatime"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataImporter

type DataImporter interface {
	Import(*models.User, time.Time, time.Time) (<-chan *models.Heartbeat, error)
	ImportAll(*models.User) (<-chan *models.Heartbeat, error)
}

type WakatimeDumpImporter

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

func NewWakatimeDumpImporter

func NewWakatimeDumpImporter(apiKey string) *WakatimeDumpImporter

func (*WakatimeDumpImporter) Import

func (w *WakatimeDumpImporter) Import(user *models.User, minFrom time.Time, maxTo time.Time) (<-chan *models.Heartbeat, error)

func (*WakatimeDumpImporter) ImportAll

func (w *WakatimeDumpImporter) ImportAll(user *models.User) (<-chan *models.Heartbeat, error)

type WakatimeHeartbeatsImporter

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

func NewWakatimeHeartbeatImporter

func NewWakatimeHeartbeatImporter(apiKey string) *WakatimeHeartbeatsImporter

func (*WakatimeHeartbeatsImporter) Import

func (w *WakatimeHeartbeatsImporter) Import(user *models.User, minFrom time.Time, maxTo time.Time) (<-chan *models.Heartbeat, error)

func (*WakatimeHeartbeatsImporter) ImportAll

func (w *WakatimeHeartbeatsImporter) ImportAll(user *models.User) (<-chan *models.Heartbeat, error)

type WakatimeImporter

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

func NewWakatimeImporter

func NewWakatimeImporter(apiKey string, forceLegacy bool) *WakatimeImporter

func (*WakatimeImporter) Import

func (w *WakatimeImporter) Import(user *models.User, minFrom time.Time, maxTo time.Time) (<-chan *models.Heartbeat, error)

func (*WakatimeImporter) ImportAll

func (w *WakatimeImporter) ImportAll(user *models.User) (<-chan *models.Heartbeat, error)

Jump to

Keyboard shortcuts

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