Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: refactor getDictionary to use func in argument #10

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

hblab-annq
Copy link
Collaborator

@hblab-annq hblab-annq commented Sep 6, 2022

add fn models.Fn to api getDictionary

Single Sign-On (SSO) verification flow

sequenceDiagram
    participant User
    participant IdentityProvider
    participant ServiceProvider
    User->>+ServiceProvider: Access Request
    ServiceProvider->>+IdentityProvider: SSO Request
    IdentityProvider-->>-ServiceProvider: SSO Response
    ServiceProvider->>+IdentityProvider: Assertion Request
    IdentityProvider-->>-ServiceProvider: Assertion Response
    ServiceProvider->>+User: Access Granted

Single Sign-On (SSO) verification flow in microservice architecture

sequenceDiagram
    participant User
    participant SSOProxy
    participant AuthService
    participant ResourceService
    User->>+SSOProxy: Access Request
    SSOProxy->>+AuthService: Authentication Request
    AuthService-->>-SSOProxy: Authentication Response
    SSOProxy->>+ResourceService: Authorization Request
    ResourceService-->>-SSOProxy: Authorization Response
    SSOProxy-->>-User: Access Response

Database design

classDiagram
    class Product {
        - id: int
        - name: string
        - price: float
    }
    class Order {
        - id: int
        - date: date
        - total: float
    }
    class OrderItem {
        - id: int
        - quantity: int
        - price: float
    }
    class User {
        - id: int
        - name: string
        - email: string
        - password: string
    }
    Product "1" -- "*" OrderItem
    Order "1" -- "*" OrderItem
    User "1" -- "*" Order

infra design

graph TD
    subgraph VPC
        A[Public Subnet]
        B[Private Subnet]
        C[Database Subnet]
    end
    subgraph Internet
        D[Internet Gateway]
        E[NAT Gateway]
    end
    subgraph Elastic Load Balancer
        F[Elastic Load Balancer]
    end
    subgraph EC2 Instances
        G[Web Server 1]
        H[Web Server 2]
        I[App Server 1]
        J[App Server 2]
        K[Database Server]
    end
    subgraph S3
        L[S3 Bucket]
    end
    subgraph RDS
        M[RDS Database]
    end
    subgraph ElastiCache
        N[ElastiCache Cluster]
    end
    D --> A
    A --> F
    F --> B
    F --> C
    B --> E
    E --> D
    B --> G
    B --> H
    B --> I
    B --> J
    C --> K
    K --> M
    I --> N
    J --> N
    N --> L
sequenceDiagram
    participant Client
    participant KiddiHub
    participant LogServer

    Client->>KiddiHub: Initiate guest creation request
    KiddiHub->>LogServer: Request token
    LogServer-->>KiddiHub: Return token
    KiddiHub->>Client: Send token in response
    Client->>LogServer: Send logs using token

@hblab-annq hblab-annq added the wip label Sep 6, 2022
@hblab-annq hblab-annq self-assigned this Sep 6, 2022
@coveralls
Copy link

coveralls commented Sep 6, 2022

Pull Request Test Coverage Report for Build 3181398828

  • 59 of 69 (85.51%) changed or added relevant lines in 4 files are covered.
  • 15 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+6.6%) to 51.212%

Changes Missing Coverage Covered Lines Changed/Added Lines %
controller/dictionary.go 31 33 93.94%
usecase/dictionary.go 14 16 87.5%
services/translate.go 0 6 0.0%
Files with Coverage Reduction New Missed Lines %
services/translate.go 7 58.59%
services/dictionary.go 8 65.17%
Totals Coverage Status
Change from base Build 2999515280: 6.6%
Covered Lines: 317
Relevant Lines: 619

💛 - Coveralls

@hblab-annq hblab-annq force-pushed the refactor/refactor_getDictionary branch from 6e42f10 to 994f5ad Compare September 6, 2022 10:47
@hblab-annq hblab-annq removed the wip label Sep 6, 2022
models/dictionary.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants