Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoute ¶
func RegisterRoute(s server.Server, c IController)
Types ¶
type IController ¶
type IController interface {
DetectFood(ctx echo.Context) error
}
func NewController ¶
func NewController(s IService, l *logrus.Logger) IController
type IRepository ¶
type IRepository interface { InsertHistory(ctx context.Context, history History) error GetFoodDetailByCategory(ctx context.Context, category string) (foods.Food, error) }
func NewRepository ¶
func NewRepository(db *sqlx.DB, l *logrus.Logger) IRepository
type IService ¶
type IService interface {
DetectFoodUsingExternal(ctx echo.Context) (PredictResponse, error)
}
func NewService ¶
func NewService(r IRepository, l *logrus.Logger) IService
type PredictResponse ¶
Click to show internal directories.
Click to hide internal directories.