MCPcopy Create free account

hub / github.com/Thodin/axum-clean-architecture / functions

Functions23 in github.com/Thodin/axum-clean-architecture

↓ 2 callersMethodadd
(&self, username: &str, email: &str, password: &SecretString)
src/application/use_cases/user.rs:36
↓ 1 callersFunctionargon2_password_hasher
()
src/infra/mod.rs:17
↓ 1 callersFunctioncreate_app
(app_state: AppState)
src/infra/app.rs:11
↓ 1 callersMethodcreate_user
( &self, username: &str, email: &str, _password_hash: &str,
src/application/use_cases/user.rs:58
↓ 1 callersMethodhash_password
(&self, password: &str)
src/application/use_cases/user.rs:74
↓ 1 callersFunctioninit_app_state
()
src/infra/setup.rs:10
↓ 1 callersFunctioninit_db
()
src/infra/db.rs:6
↓ 1 callersFunctioninit_tracing
()
src/infra/setup.rs:24
↓ 1 callersFunctionpostgres_persistence
()
src/infra/mod.rs:11
↓ 1 callersFunctionrouter
()
src/adapters/http/routes/mod.rs:7
Functionadd_user_works
()
src/application/use_cases/user.rs:80
Methodcreate_user
(&self, username: &str, email: &str, password_hash: &str)
src/adapters/persistence/user.rs:35
Methodfrom
(value: sqlx::Error)
src/adapters/persistence/mod.rs:19
Methodfrom
(user_db: UserDb)
src/adapters/persistence/user.rs:23
Methodfrom_env
()
src/infra/config.rs:12
Methodfrom_ref
(app_state: &AppState)
src/adapters/http/app_state.rs:14
Methodhash_password
(&self, password: &str)
src/adapters/crypto/argon2.rs:17
Methodinto_response
(self)
src/adapters/http/app_error_impl.rs:8
Functionmain
()
src/main.rs:7
Methodnew
(pool: PgPool)
src/adapters/persistence/mod.rs:13
Methodnew
( hasher: Arc<dyn UserCredentialsHasher>, persistence: Arc<dyn UserPersistence>, )
src/application/use_cases/user.rs:25
Functionregister
( State(user_use_cases): State<Arc<UserUseCases>>, Json(payload): Json<RegisterPayload>, )
src/adapters/http/routes/user.rs:30
Functionrouter
()
src/adapters/http/routes/user.rs:12