usecase

package
v0.3.6-dev38 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

type UseCase interface {
	// Run starts the execution of the behavior of a use case
	Run(context.Context) error
}

UseCase is the interface an UseCase must implement to be executable

type UseCaseBase

type UseCaseBase struct {
	Log logger.Logger
}

UseCaseBase is the basic fields needed to implement a use case along with a logger

func NewUseCaseBase

func NewUseCaseBase(name string) *UseCaseBase

NewUseCaseBase returns a new basic use case implementation

Jump to

Keyboard shortcuts

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