rescuetime

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *gorm.DB) provider.Provider

Types

type ActivityHistoryDetails

type ActivityHistoryDetails struct {
	sql.NullString
}

func (*ActivityHistoryDetails) UnmarshalText

func (ahd *ActivityHistoryDetails) UnmarshalText(text []byte) error

type ActivityHistoryItem

type ActivityHistoryItem struct {
	gorm.Model
	Activity string `csv:"activity" gorm:"uniqueIndex:rescuetime_activity_history_key"`
	// Workaround for NULL in unique index: https://stackoverflow.com/a/8289327
	Details   ActivityHistoryDetails `csv:"details" gorm:"uniqueIndex:rescuetime_activity_history_key,expression:COALESCE(details\\, '')"`
	Category  string                 `csv:"category"`
	Class     string                 `csv:"class"`
	Duration  int                    `csv:"duration"`
	Timestamp types.DateTime         `csv:"timestamp" gorm:"uniqueIndex:rescuetime_activity_history_key"`
}

func (ActivityHistoryItem) TableName

func (ActivityHistoryItem) TableName() string

Jump to

Keyboard shortcuts

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