router

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ルーティング

  • ルーティングの定義をする
  • ハンドラー層、サービス層、リポジトリ層をDIをする

router.go

  • エンドポイントの設定

wire.go

  • DIの定義ファイル

wire_gen.go

  • DIツールによって生成されるファイル

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDeleteUser

func InitDeleteUser(db *sqlx.DB, repo domain.UserRepo, cache domain.Cache) *handler.DeleteUser

func InitGetAccount

func InitGetAccount(db *sqlx.DB, repo *repository.Repository) *handler.GetAccount

func InitGetNotification

func InitGetNotification(cache domain.Cache, repo *repository.Repository, db *sqlx.DB) *handler.GetNotification

func InitGetNotifications

func InitGetNotifications(db *sqlx.DB, repo *repository.Repository) *handler.GetNotifications

func InitGetUncheckedNotificationCount

func InitGetUncheckedNotificationCount(db *sqlx.DB, cache domain.Cache, repo domain.NotificationRepo) *handler.GetUncheckedNotificationCount

func InitGetUsers

func InitGetUsers(db *sqlx.DB, repo *repository.Repository, jwter domain.TokenGenerator) *handler.GetUsers

func InitHealthCheck

func InitHealthCheck() *handler.HealthCheck

func InitRegisterTemporaryUser

func InitRegisterTemporaryUser(db *sqlx.DB, rep domain.UserRepo, cache domain.Cache) *handler.RegisterTemporaryUser

func InitRegisterUser

func InitRegisterUser(db *sqlx.DB, rep domain.UserRepo, cache domain.Cache, jwter domain.TokenGenerator) *handler.RegisterUser

func InitResetPassword

func InitResetPassword(db *sqlx.DB, rep domain.UserRepo) *handler.ResetPassword

func InitSendPoint

func InitSendPoint(repo *repository.Repository, db *sqlx.DB, cache domain.Cache) *handler.SendPoint

func InitSignin

func InitSignin(db *sqlx.DB, rep domain.UserRepo, cache domain.Cache, jwter domain.TokenGenerator) *handler.Signin

func InitSignout

func InitSignout(cache domain.Cache) *handler.Signout

func InitUpdateAccount

func InitUpdateAccount(db *sqlx.DB, repo domain.UserRepo) *handler.UpdateAccount

func InitUpdateEmail

func InitUpdateEmail(db *sqlx.DB, cache domain.Cache, repo domain.UserRepo) *handler.UpdateEmail

func InitUpdatePassword

func InitUpdatePassword(db *sqlx.DB, repo domain.UserRepo) *handler.UpdatePassword

func InitUpdateTemporaryEmail

func InitUpdateTemporaryEmail(db *sqlx.DB, cache domain.Cache, repo domain.UserRepo) *handler.UpdateTemporaryEmail

func SetRouting

func SetRouting(ctx context.Context, db *sqlx.DB, router *gin.Engine, cfg *config.Config) error

ルーティングの設定を行う

@param ctx コンテキスト router ルーター

Types

This section is empty.

Jump to

Keyboard shortcuts

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