Changeset View
Changeset View
Standalone View
Standalone View
services/identity/src/main.rs
use std::time::Duration; | use std::time::Duration; | ||||
use clap::{Parser, Subcommand}; | use clap::{Parser, Subcommand}; | ||||
use database::DatabaseClient; | use database::DatabaseClient; | ||||
use moka::future::Cache; | use moka::future::Cache; | ||||
use tonic::transport::Server; | use tonic::transport::Server; | ||||
use tracing_subscriber::FmtSubscriber; | use tracing_subscriber::FmtSubscriber; | ||||
mod client_service; | mod client_service; | ||||
mod config; | mod config; | ||||
pub mod constants; | pub mod constants; | ||||
mod database; | mod database; | ||||
mod id; | mod id; | ||||
mod interceptor; | mod interceptor; | ||||
mod keygen; | mod keygen; | ||||
mod nonce; | mod nonce; | ||||
mod siwe; | |||||
mod token; | mod token; | ||||
use config::load_config; | use config::load_config; | ||||
use constants::{IDENTITY_SERVICE_SOCKET_ADDR, SECRETS_DIRECTORY}; | use constants::{IDENTITY_SERVICE_SOCKET_ADDR, SECRETS_DIRECTORY}; | ||||
use keygen::generate_and_persist_keypair; | use keygen::generate_and_persist_keypair; | ||||
use tracing::info; | use tracing::info; | ||||
use client_service::{ClientService, IdentityClientServiceServer}; | use client_service::{ClientService, IdentityClientServiceServer}; | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |