app

package
v0.0.0-...-40a4d50 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repos

type Repos struct {
	DriverRepo   internal.DriverRepo
	ShipmentRepo internal.ShipmentRepo
	TruckRepo    internal.TruckRepo
}

func (*Repos) Close

func (r *Repos) Close() []error

type ShipmentApp

type ShipmentApp struct {
	Repos    *Repos
	Usecases *Usecases

	Cfg config.Config
}

func NewShipmentApp

func NewShipmentApp() (*ShipmentApp, error)

NewShipmentApp Initialize app and do dependency injection for all layers

func (*ShipmentApp) Close

func (a *ShipmentApp) Close() []error

type Usecases

type Usecases struct {
	DriverUC   internal.DriverUC
	ShipmentUC internal.ShipmentUC
	TruckUC    internal.TruckUC
}

func (*Usecases) Close

func (*Usecases) Close() []error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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