entity

package
v0.0.0-...-0e50a25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TotalDuration = 45
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Developer

type Developer struct {
	ID             primitive.ObjectID `bson:"_id"`
	Name           string             `bson:"name"`
	Speed          int                `bson:"speed"`
	RemainingHours int                `bson:"reamaning_hours"`
}

func NewDevelopers

func NewDevelopers() []Developer

func (*Developer) GetIntensityPerHour

func (w *Developer) GetIntensityPerHour() int

func (*Developer) GetWeekleyTotalHours

func (w *Developer) GetWeekleyTotalHours() int

func (*Developer) GetWeekleyTotalTasks

func (w *Developer) GetWeekleyTotalTasks() int

func (*Developer) Work

func (w *Developer) Work(taskName string)

type Provider

type Provider struct {
	ID              primitive.ObjectID `bson:"_id"`
	Name            string             `bson:"name,required"`
	TaskValueKey    string             `bson:"task_value_key,required"`
	TaskDurationKey string             `bson:"task_duration_key,required"`
	TaskNameKey     string             `bson:"task_name_key,required"`
	Url             string             `bson:"url,required"`
	Tasks           []valueobject.Task `bson:"tasks,omitempty"`
}

Jump to

Keyboard shortcuts

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