Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { ID string Period Interval Order Order Type ActivityType }
Activity an user activity
type ActivityType ¶
ActivityType the activity type
type Report ¶
type Report struct { ID string Description string Code string Name string Activities Activities Period Interval }
Report report model for storage
type Repository ¶
type Repository interface { Create(context.Context, Report) (*uuid.UUID, error) Read(context.Context, uuid.UUID) (*Report, error) Update(context.Context, Report) error Delete(context.Context, uuid.UUID) error List(context.Context) (Reports, error) }
Repository Repository interface
func NewInMemoryStore ¶
func NewInMemoryStore() Repository
NewInMemoryStore in memory repository for reports
Click to show internal directories.
Click to hide internal directories.