usecase

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 3 Imported by: 0

README

  • Use case is your main business logic
  • You should always call your repository methods in this package
  • You may use your src/library functions directly in this package
  • Any changes outside this package should not affect your use cases (except changes for business entity and repository)
  • If you need config variables, external clients, or repositories, pass/inject them as a dependency
  • You can use your own style as long as it doesn't break the main idea

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

type UseCase struct {
	GetExample getExample.Contract
}

func InitUseCase

func InitUseCase(cfg *config.Config, repo *repository.Repository) (*UseCase, error)

InitUseCase initializes use case

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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