timelog

package
v0.0.0-...-082fd94 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InType  string = "i"
	OutType string = "o"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type S3TimelogRepository

type S3TimelogRepository struct {
	AwsSession *session.Session
	Bucket     string
	Key        string
}

func (*S3TimelogRepository) Add

func (r *S3TimelogRepository) Add(timelog *Timelog) error

Add appends the timelog entry to the timelog file in an S3 bucket

func (*S3TimelogRepository) GetLast

func (r *S3TimelogRepository) GetLast() (*Timelog, error)

type Timelog

type Timelog struct {
	Type        string
	Description string
	Timestamp   string
}

type TimelogRepository

type TimelogRepository interface {
	Add(timelog *Timelog) error
	GetLast() (*Timelog, error)
}

type TimelogService

type TimelogService struct {
	Repository TimelogRepository
}

func (*TimelogService) Start

func (s *TimelogService) Start(timestamp, description string) error

func (*TimelogService) Stop

func (s *TimelogService) Stop(timestamp string) error

Jump to

Keyboard shortcuts

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