usecase

package
v0.0.0-...-37fcaca Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEntriesUseCase

type GetEntriesUseCase interface {
	Run() ([]entity.Entry, error)
}

GetEntriesUseCaseImpl represents the interface of use case "get entries".

func NewGetEntriesUseCase

func NewGetEntriesUseCase(db repository.DB) GetEntriesUseCase

NewGetEntriesUseCase create the use case of getting entries.

type PostEntriesUseCase

type PostEntriesUseCase interface {
	Run(entry entity.Entry) error
}

PostEntriesUseCase is the use case of post entry entity.

func NewPostEntriesUseCase

func NewPostEntriesUseCase(db repository.Beginner) PostEntriesUseCase

NewPostEntriesUseCase creates the struct which implements PostEntriesUseCase interface.

Jump to

Keyboard shortcuts

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