controllers

package
v0.0.0-...-b2f019a Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserController

type UserController interface {
	CreateUser(data *model.User) (bool, error)
	GetAllUsers() ([]*model.User, error)
	GetUser(id int) (*model.User, error)
}

UserController userController構造体のインターフェイス

func NewUserController

func NewUserController(us interactor.UserInteractor, log logs.Logger) UserController

NewUserController userのコントローラー。処理の実態であるusecase/interactorを呼び出す [この関数をwireでDI]

Jump to

Keyboard shortcuts

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