usecase

package
v0.0.0-...-238b541 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthCheckUsecase

Define an exported function. Call this in main.go and bind your parameters to the struct

Types

type HealthCheckUsecase

type HealthCheckUsecase struct {
	HealthCheckRepository HealthCheckInterface.IHealthCheckRepository
}

Define your usecase struct You can make the struct with repository or another usecase To access the repository or the usecase you need an interface

func (*HealthCheckUsecase) GetDBTimestamp

func (a *HealthCheckUsecase) GetDBTimestamp() models.HealthCheck

Jump to

Keyboard shortcuts

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