MCPcopy Create free account

hub / github.com/LukeMathWalker/zero-to-production / functions

Functions150 in github.com/LukeMathWalker/zero-to-production

↓ 25 callersFunctionspawn_app
()
tests/api/helpers.rs:182
↓ 19 callersFunctionassert_is_redirect_to
(response: &reqwest::Response, location: &str)
tests/api/helpers.rs:305
↓ 10 callersMethodpost_subscriptions
(&self, body: String)
tests/api/helpers.rs:56
↓ 8 callersFunctioncontent
Generate a random email content
src/email_client.rs:102
↓ 8 callersFunctionsee_other
(location: &str)
src/utils.rs:21
↓ 7 callersMethodpost_login
(&self, body: &Body)
tests/api/helpers.rs:66
↓ 7 callersMethodpost_publish_newsletter
(&self, body: &Body)
tests/api/helpers.rs:145
↓ 6 callersMethodas_str
(&self)
src/configuration.rs:120
↓ 6 callersMethodsend_email
( &self, recipient: &SubscriberEmail, subject: &str, html_content: &str,
src/email_client.rs:28
↓ 5 callersMethodbuild
(configuration: Settings)
src/startup.rs:29
↓ 5 callersFunctionemail
Generate a random subscriber email
src/email_client.rs:107
↓ 4 callersMethoddispatch_all_pending_emails
(&self)
tests/api/helpers.rs:44
↓ 4 callersFunctionemail_client
Get a test instance of `EmailClient`.
src/email_client.rs:112
↓ 4 callersFunctionerror_chain_fmt
( e: &impl std::error::Error, f: &mut std::fmt::Formatter<'_>, )
src/routes/subscriptions.rs:196
↓ 4 callersMethodget_confirmation_links
Extract the confirmation links embedded in the request to the email API.
tests/api/helpers.rs:158
↓ 4 callersMethodget_login_html
(&self)
tests/api/helpers.rs:78
↓ 4 callersMethodget_publish_newsletter_html
(&self)
tests/api/helpers.rs:141
↓ 4 callersMethodget_user_id
(&self)
src/session_state.rs:21
↓ 4 callersMethodlogin
(&self, app: &TestApp)
tests/api/helpers.rs:273
↓ 4 callersMethodpost_change_password
(&self, body: &Body)
tests/api/helpers.rs:121
↓ 4 callersFunctionsubject
Generate a random email subject
src/email_client.rs:97
↓ 3 callersMethodclient
(self)
src/configuration.rs:63
↓ 3 callersMethodconnect_options
(&self)
src/configuration.rs:37
↓ 3 callersFunctioncreate_confirmed_subscriber
(app: &TestApp)
tests/api/newsletter.rs:42
↓ 3 callersMethodget_admin_dashboard
(&self)
tests/api/helpers.rs:89
↓ 3 callersMethodget_change_password_html
(&self)
tests/api/helpers.rs:109
↓ 3 callersFunctionget_connection_pool
(configuration: &DatabaseSettings)
src/startup.rs:61
↓ 3 callersFunctionget_subscriber
Compose multiple layers into a `tracing`'s subscriber. # Implementation Notes We are using `impl Subscriber` as return type to avoid having to spell
src/telemetry.rs:15
↓ 3 callersFunctioninit_subscriber
Register a subscriber as global default to process span data. It should only be called once!
src/telemetry.rs:35
↓ 3 callersMethodport
(&self)
src/startup.rs:52
↓ 2 callersMethodas_ref
(&self)
src/idempotency/key.rs:29
↓ 2 callersFunctioncreate_unconfirmed_subscriber
(app: &TestApp)
tests/api/newsletter.rs:9
↓ 2 callersMethodget_change_password
(&self)
tests/api/helpers.rs:101
↓ 2 callersFunctionget_configuration
()
src/configuration.rs:83
↓ 2 callersMethodget_publish_newsletter
(&self)
tests/api/helpers.rs:133
↓ 2 callersFunctionget_username
(user_id: Uuid, pool: &PgPool)
src/routes/admin/dashboard.rs:46
↓ 2 callersFunctionlogin_redirect
(e: LoginError)
src/routes/login/post.rs:55
↓ 2 callersMethodpost_logout
(&self)
tests/api/helpers.rs:113
↓ 2 callersMethodrun_until_stopped
(self)
src/startup.rs:56
↓ 2 callersMethodsource
(&self)
src/routes/subscriptions.rs:176
↓ 2 callersFunctionspawn_blocking_with_tracing
(f: F)
src/telemetry.rs:40
↓ 2 callersFunctionsuccess_message
()
src/routes/admin/newsletter/post.rs:19
↓ 2 callersMethodtimeout
(&self)
src/configuration.rs:78
↓ 2 callersFunctiontry_execute_task
( pool: &PgPool, email_client: &EmailClient, )
src/issue_delivery_worker.rs:41
↓ 2 callersFunctionvalidate_credentials
( credentials: Credentials, pool: &PgPool, )
src/authentication/password.rs:42
↓ 1 callersFunctioncompute_password_hash
(password: Secret<String>)
src/authentication/password.rs:116
↓ 1 callersFunctionconfigure_database
(config: &DatabaseSettings)
tests/api/helpers.rs:231
↓ 1 callersFunctionconfirm_subscriber
(pool: &PgPool, subscriber_id: Uuid)
src/routes/subscriptions_confirm.rs:52
↓ 1 callersFunctiondelete_task
( mut transaction: PgTransaction, issue_id: Uuid, email: &str, )
src/issue_delivery_worker.rs:116
↓ 1 callersFunctiondequeue_task
( pool: &PgPool, )
src/issue_delivery_worker.rs:89
↓ 1 callersFunctione500
Return an opaque 500 while preserving the error root's cause for logging.
src/utils.rs:5
↓ 1 callersFunctionenqueue_delivery_tasks
( transaction: &mut Transaction<'_, Postgres>, newsletter_issue_id: Uuid, )
src/routes/admin/newsletter/post.rs:99
↓ 1 callersFunctiongenerate_subscription_token
()
src/routes/subscriptions.rs:94
↓ 1 callersMethodget_admin_dashboard_html
(&self)
tests/api/helpers.rs:97
↓ 1 callersFunctionget_issue
(pool: &PgPool, issue_id: Uuid)
src/issue_delivery_worker.rs:144
↓ 1 callersFunctionget_saved_response
( pool: &PgPool, idempotency_key: &IdempotencyKey, user_id: Uuid, )
src/idempotency/persistence.rs:16
↓ 1 callersFunctionget_stored_credentials
( username: &str, pool: &PgPool, )
src/authentication/password.rs:22
↓ 1 callersFunctionget_subscriber_id_from_token
( pool: &PgPool, subscription_token: &str, )
src/routes/subscriptions_confirm.rs:63
↓ 1 callersFunctioninsert_newsletter_issue
( transaction: &mut Transaction<'_, Postgres>, title: &str, text_content: &str, html_content:
src/routes/admin/newsletter/post.rs:71
↓ 1 callersFunctioninsert_subscriber
( transaction: &mut Transaction<'_, Postgres>, new_subscriber: &NewSubscriber, )
src/routes/subscriptions.rs:133
↓ 1 callersMethodinsert_user_id
(&self, user_id: Uuid)
src/session_state.rs:17
↓ 1 callersMethodlog_out
(self)
src/session_state.rs:25
↓ 1 callersMethodrenew
(&self)
src/session_state.rs:13
↓ 1 callersFunctionrun
( listener: TcpListener, db_pool: PgPool, email_client: EmailClient, base_url: String, hma
src/startup.rs:67
↓ 1 callersFunctionrun_worker_until_stopped
(configuration: Settings)
src/issue_delivery_worker.rs:8
↓ 1 callersFunctionsave_response
( mut transaction: Transaction<'static, Postgres>, idempotency_key: &IdempotencyKey, user_id: Uuid
src/idempotency/persistence.rs:49
↓ 1 callersFunctionsend_confirmation_email
( email_client: &EmailClient, new_subscriber: NewSubscriber, base_url: &str, subscription_toke
src/routes/subscriptions.rs:106
↓ 1 callersMethodsender
(&self)
src/configuration.rs:74
↓ 1 callersMethodstore
(&self, pool: &PgPool)
tests/api/helpers.rs:281
↓ 1 callersFunctionstore_token
( transaction: &mut Transaction<'_, Postgres>, subscriber_id: Uuid, subscription_token: &str, )
src/routes/subscriptions.rs:156
↓ 1 callersFunctiontry_processing
( pool: &PgPool, idempotency_key: &IdempotencyKey, user_id: Uuid, )
src/idempotency/persistence.rs:99
↓ 1 callersFunctionverify_password_hash
( expected_password_hash: Secret<String>, password_candidate: Secret<String>, )
src/authentication/password.rs:76
↓ 1 callersFunctionworker_loop
(pool: PgPool, email_client: EmailClient)
src/issue_delivery_worker.rs:14
Functiona_256_grapheme_long_name_is_valid
()
src/domain/subscriber_name.rs:50
Functiona_name_longer_than_256_graphemes_is_rejected
()
src/domain/subscriber_name.rs:56
Functiona_valid_name_is_parsed_successfully
()
src/domain/subscriber_name.rs:82
Functionadmin_dashboard
( session: TypedSession, pool: web::Data<PgPool>, )
src/routes/admin/dashboard.rs:9
Functionan_error_flash_message_is_set_on_failure
()
tests/api/login.rs:4
Methodarbitrary
(g: &mut quickcheck::Gen)
src/domain/subscriber_email.rs:59
Methodas_ref
(&self)
src/domain/subscriber_email.rs:17
Methodas_ref
(&self)
src/domain/subscriber_name.rs:39
Functionchange_password
( form: web::Form<FormData>, pool: web::Data<PgPool>, user_id: web::ReqData<UserId>, )
src/routes/admin/password/post.rs:16
Functionchange_password
( user_id: uuid::Uuid, password: Secret<String>, pool: &PgPool, )
src/authentication/password.rs:93
Functionchange_password_form
( session: TypedSession, flash_messages: IncomingFlashMessages, )
src/routes/admin/password/get.rs:8
Functionchanging_password_works
()
tests/api/change_password.rs:99
Functionclicking_on_the_confirmation_link_confirms_a_subscriber
()
tests/api/subscriptions_confirm.rs:43
Functionconcurrent_form_submission_is_handled_gracefully
()
tests/api/newsletter.rs:197
Functionconfirm
( parameters: web::Query<Parameters>, pool: web::Data<PgPool>, )
src/routes/subscriptions_confirm.rs:37
Functionconfirmations_without_token_are_rejected_with_a_400
()
tests/api/subscriptions_confirm.rs:6
Functioncurrent_password_must_be_valid
()
tests/api/change_password.rs:68
Methodderef
(&self)
src/authentication/middleware.rs:23
Functione400
Return a 400 with the user-representation of the validation error as body. The error root cause is preserved for logging purposes.
src/utils.rs:14
Functionemail_missing_at_symbol_is_rejected
()
src/domain/subscriber_email.rs:44
Functionemail_missing_subject_is_rejected
()
src/domain/subscriber_email.rs:50
Functionempty_string_is_rejected
()
src/domain/subscriber_email.rs:38
Functionempty_string_is_rejected
()
src/domain/subscriber_name.rs:68
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/routes/subscriptions.rs:39
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/routes/subscriptions_confirm.rs:22
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/routes/login/post.rs:72
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/authentication/middleware.rs:15
next →1–100 of 150, ranked by callers