-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add crash recovery and knex config for production
Signed-off-by: Yogesh01000100 <[email protected]>
- Loading branch information
1 parent
c21957b
commit e027214
Showing
25 changed files
with
963 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3.8' | ||
services: | ||
db: | ||
image: postgres:13 | ||
environment: | ||
POSTGRES_DB: ${DB_NAME} | ||
POSTGRES_USER: ${DB_USER} | ||
POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
POSTGRES_HOST: ${DB_HOST} | ||
PGPORT: ${DB_PORT} | ||
ports: | ||
- "${DB_PORT}:5432" | ||
volumes: | ||
- pgdata:/var/lib/postgresql/data | ||
|
||
volumes: | ||
pgdata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...tus-plugin-satp-hermes/src/main/typescript/core/recovery/crash-recovery-client-service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
RecoverMessage, | ||
RecoverUpdateMessage, | ||
RecoverSuccessMessage, | ||
RollbackMessage, | ||
} from "../../generated/proto/cacti/satp/v02/crash_recovery_pb"; | ||
import { SessionData } from "../../generated/proto/cacti/satp/v02/common/session_pb"; | ||
|
||
export class CrashRecoveryClientService { | ||
createRecoverMessage(sessionData: SessionData): RecoverMessage {} | ||
|
||
async sendRecoverMessage( | ||
message: RecoverMessage, | ||
): Promise<RecoverUpdateMessage> {} | ||
|
||
async sendRecoverUpdateMessage( | ||
message: RecoverUpdateMessage, | ||
): Promise<RecoverSuccessMessage> {} | ||
|
||
createRollbackMessage(sessionData: SessionData): RollbackMessage {} | ||
} |
Oops, something went wrong.