usecase

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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 DocumentUseCase

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

DocumentUseCase is the concrete implementation the use cases for the document repository.

func NewDocumentUseCase

func NewDocumentUseCase(repo document.Repository, svc shortlink.Service, cfg *config.Configuration) *DocumentUseCase

NewDocumentUseCase creates a new instance of the `DocumentUseCase`.

func (DocumentUseCase) Create

func (d DocumentUseCase) Create(ctx context.Context, doc *model.Document) (*model.Document, error)

Create implements the use case interface.

func (DocumentUseCase) Get

func (d DocumentUseCase) Get(ctx context.Context, id string) (*model.File, error)

Get implements the use case interface.

Jump to

Keyboard shortcuts

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