Skip to content

Commit b0920f2

Browse files
authored
Merge pull request #3 from XinitTeam/master
Readme: Added readme-en.md english translation
2 parents f37ddec + af10592 commit b0920f2

File tree

45 files changed

+1539
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1539
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ tmp/
4141

4242
# goreleaser artifacts
4343
dist/
44+
translate_all_readme.sh
45+
format_lines.py
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
English | [简体中文](readme.md)
2+
3+
# user:
4+
5+
- Account system, support various third-party login methods
6+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
English | [简体中文](readme.md)
2+
3+
# user:
4+
5+
- union
6+
- User Center:
7+
- Account system
8+
- Login authentication
9+
- User roles
10+
- User rights
11+
12+
13+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
English | [简体中文](readme.md)
2+
# std:
3+
4+
- Standard definition of the project itself:
5+
6+
- public error code
7+
- Common configuration file definition format
8+
- Public interface parameter convention specification
9+
10+
11+
12+
```bash
13+
14+
err code:
15+
16+
config fmt:
17+
18+
req/resp arg fmt:
19+
20+
21+
```
22+
23+
24+
25+
## Generate:
26+
27+
28+
```bash
29+
30+
31+
make proto
32+
33+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
English | [简体中文](readme.md)
2+
# api/basic:
3+
4+
- Basic service API definition
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
English | [简体中文](readme.md)
2+
# api:
3+
4+
- API for all services:
5+
- protobuf definition:
6+
7+
## Two management options:
8+
9+
- Centralized management of PROTO API definitions:
10+
- It is convenient for client to call
11+
- Decentralized management PROTO API definition:
12+
- Facilitate development by maintainers of a single service
13+
14+
## Compromise:
15+
16+
- Write a sync script.
17+
- Periodically and automatically synchronize the proto api definitions in each service to the api/ folder.
18+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
English | [简体中文](readme.md)
2+
# api/unit:
3+
4+
- Business Unit API Definition
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
English | [简体中文](readme.md)
2+
3+
# admin manager:
4+
5+
- union
6+
- Unified admin management background services:
7+
- Account system
8+
- Login authentication
9+
- User roles
10+
- User rights
11+
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
English | [简体中文](readme.md)
2+
3+
# event queue:
4+
5+
- Generic Queue Management: Incident Response
6+
7+
## Application scenarios:
8+
9+
- Some backend services: you don't need to open MQ in the service, you can call it through a simple http api
10+
- Front-end: Asynchronous capabilities directly through HTTP API.
11+
- Similar to graphQL, the DB capability is opened to the front end. Here, the MQ capability is opened to the front end.
12+
- Signature mechanism: Anti-attack
13+
- Messages in MQ, add verification, messages with invalid signatures, discard (prevent forgery)
14+
- Signature rules: api secret, timestamp, nonce, msg_uuid, data. Anti-replay attack (consumers need to cache msg_uuid, deduplication)
15+
- API authentication method:
16+
- http header: token authentication
17+
18+
- auth authentication:
19+
- User authentication: user auth
20+
- Service authentication: service auth
21+
- Permission Control:
22+
- User permission: user permission
23+
- Service permission: service permission
24+
25+
26+
## run:
27+
28+
- run server:
29+
30+
```bash
31+
32+
make run.auto.reload
33+
34+
35+
```
36+
37+
- http api test:
38+
39+
```bash
40+
41+
make curl.pub.msg
42+
43+
```
44+
45+
## API List:
46+
47+
- `app/basic/queue/internal/router/router.go`
48+
49+
- Queue write messages: http://localhost:8080/queue/publish/
50+
- POST
51+
- Makefile has curl example
52+
53+
54+
## Function:
55+
56+
### Queue management:
57+
58+
- [ ] queue creation
59+
- [ ] Queue auth-key generation/authentication
60+
- [ ] queue destroy
61+
62+
### Producer:
63+
64+
- [ ] Queue Write: HTTP API/ GRPC
65+
- [ ] Queue read: HTTP API polling / websocket listening
66+
- [ ] Pass both `task` and `task handler function` as parameters to the server.
67+
-
68+
69+
### Consumer: (worker)
70+
71+
- [ ] Queue Write: HTTP API/ GRPC
72+
- [ ] Queue read: HTTP API polling / websocket listening
73+
- [ ] task handler
74+
75+
### task handler function:
76+
77+
- Generic task handler method
78+
- Summarize some commonly used task processing methods:
79+
- Asynchronously record data to db, and return processing success
80+
- Asynchronous send mobile msg
81+
- Asynchronous data analysis: generate reports
82+
- Asynchronous...
83+
- Take standardized methods as parameters and provide them to the outside world
84+
- Similar to `AWS Lambda`: https://aws.amazon.com/cn/lambda/
85+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
English | [简体中文](readme.md)
2+
3+
4+
# app/basic:
5+
6+
- Basic services
7+
8+
9+
## illustrate:
10+
11+
- In general business scenarios, public basic services:
12+
- user: register/login/
13+
- auth:
14+
- permission:
15+
- role:
16+
- vip-account:
17+
- security:
18+
- push:
19+
20+
21+

0 commit comments

Comments
 (0)