puncher

package
v0.0.0-...-ae87ca3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSessionAlreadyStarted = errors.New("Session already started")
	ErrSessionAlreadyEnded   = errors.New("Session already ended")
	ErrInvalidSession        = errors.New("Invalid session")
)

Functions

This section is empty.

Types

type Puncher

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

func NewPuncher

func NewPuncher(repo repositories.SessionRepository) *Puncher

func (*Puncher) EndSession

func (p *Puncher) EndSession(session models.Session, timestamp time.Time, note string) (*models.Session, error)

func (*Puncher) StartSession

func (p *Puncher) StartSession(client models.Client, timestamp time.Time, note string) (*models.Session, error)

func (*Puncher) ToggleCheckInOut

func (p *Puncher) ToggleCheckInOut(client *models.Client, note string) (*models.Session, error)

Jump to

Keyboard shortcuts

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