barista

package
v0.0.0-...-b53f2a2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPgRepository

type IPgRepository interface {
	// GetName returns the name of the barista.
	GetName() string
}

func NewPgRepository

func NewPgRepository(dbConn *gorm.DB) IPgRepository

type IUseCase

type IUseCase interface {
	// GetName returns the name of the barista.
	GetName() string
}

func NewUseCase

func NewUseCase(pgRepository IPgRepository) IUseCase

type PgRepository

type PgRepository struct {
	DBConn *gorm.DB
}

func (*PgRepository) GetName

func (r *PgRepository) GetName() string

GetName returns the name of the repository.

type UseCase

type UseCase struct {
	IPgRepository
}

func (*UseCase) GetName

func (u *UseCase) GetName() string

GetName returns the name of the barista.

Jump to

Keyboard shortcuts

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