Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppRouter ¶
func NewAppRouter(initPublicRouterFunc []InitRouterGroupFunc, initPrivateRouterFunc []InitRouterGroupFunc, corsConfig cors.Config, appConfig *config.AppConfig, authConfig *config.AuthConfig, debugConfig *config.DebugConfig) (*gin.Engine, error)
func NewTranslatorUserServer ¶
func NewTranslatorUserServer(userUsecase usecase.UserUsecase) pb.TranslatorUserServer
Types ¶
type AdminHandler ¶
type AdminHandler interface { FindTranslationsByFirstLetter(c *gin.Context) FindTranslationByTextAndPos(c *gin.Context) FindTranslationsByText(c *gin.Context) AddTranslation(c *gin.Context) UpdateTranslation(c *gin.Context) RemoveTranslation(c *gin.Context) ExportTranslations(c *gin.Context) }
func NewAdminHandler ¶
func NewAdminHandler(adminUsecase usecase.AdminUsecase) AdminHandler
type InitRouterGroupFunc ¶
type InitRouterGroupFunc func(parentRouterGroup *gin.RouterGroup, middleware ...gin.HandlerFunc) error
func NewInitAdminRouterFunc ¶
func NewInitAdminRouterFunc(adminUsecase usecase.AdminUsecase) InitRouterGroupFunc
func NewInitUserRouterFunc ¶
func NewInitUserRouterFunc(userUsecase usecase.UserUsecase) InitRouterGroupFunc
type UserHandler ¶
func NewUserHandler ¶
func NewUserHandler(userUsecase usecase.UserUsecase) UserHandler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.