controllers

package
v0.0.0-...-a2cf8b7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 12 Imported by: 0

README

/app/controllers

Code in this directory should handle everything related to business logic of this service.

Examples

  • Process request
  • Convert DTO to DB Model
  • Call DB operations
  • Call external services

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromModelCarToProtoCar

func FromModelCarToProtoCar(car *data.CarEntity) *workshop.Car

FromModelCarToProtoCar converts our data Entity to workshop proto model

func FromModelCarToSubWorkshopMap

func FromModelCarToSubWorkshopMap(car *data.CarEntity) map[string]interface{}

FromModelCarToSubWorkshopProtoCar converts our data Entity to workshop proto model

func FromProtoCarToModelCar

func FromProtoCarToModelCar(car *workshop.Car) *data.CarEntity

FromProtoCarToModelCar converts workshop proto model to our data Entity

Types

type WorkshopController

type WorkshopController interface {
	workshop.WorkshopServer
}

WorkshopController responsible for the business logic of our Workshop

func CreateWorkshopController

func CreateWorkshopController(deps workshopControllerDeps) WorkshopController

CreateWorkshopController is a constructor for Fx

Jump to

Keyboard shortcuts

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