usecases

package
v0.0.0-...-e85e4ab Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryCarry

type RepositoryCarry interface {
	CreateCarry(carry domain.Carry) (domain.Carry, error)
	GetCarryByCid(cid string) (domain.Carry, error)
}

type RepositoryLocality

type RepositoryLocality interface {
	GetCarryLocalityByID(id int) (domain.Locality, error)
	GetAllCarriesLocality() ([]domain.Locality, error)
}

type ServiceCarry

type ServiceCarry interface {
	CreateCarry(carry domain.Carry) (domain.Carry, error)
}

func NewServiceCarry

func NewServiceCarry(r RepositoryCarry) ServiceCarry

type ServiceLocality

type ServiceLocality interface {
	GetCarryLocalityByID(id int) (domain.Locality, error)
	GetAllCarriesLocality() ([]domain.Locality, error)
}

func NewServiceLocality

func NewServiceLocality(r RepositoryLocality) ServiceLocality

Directories

Path Synopsis
mock

Jump to

Keyboard shortcuts

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