v2: test env

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-11-26 11:41:10 +03:30
parent 22c5992046
commit 7b2eef8657
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
4 changed files with 23 additions and 24 deletions

View File

@ -11,23 +11,9 @@ jobs:
buf: buf:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
REPO: ${{ gitea.action_repository }} REPO: ${{ gitea.repository }}
steps: steps:
- run: | - run: |
echo "test" echo ${{ env.REPO }}
echo ${{ gitea.server_url }} echo $REPO
echo ${{ gitea.token }} echo ${{ github.repository }}
echo ${{ secrets.PROD_REG_TOKEN }}
echo ${{ gitea.ref_name }}
echo ${{ gitea.action_ref }}
echo ${{ gitea.action_path }}
echo ${{ env.REPO }} $REPO
echo ${{ gitea.base_ref }}
echo ${{ gitea.env }}
echo ${{ gitea.event }}
echo ${{ gitea.head_ref }}
echo ${{ gitea.job }}
echo ${{ gitea.run_attempt }}
echo ${{ gitea.triggering_actor }}
echo ${{ gitea.workflow_ref }}
echo ${{ gitea.workspace }}

View File

@ -26,7 +26,6 @@ message LogEvent {
optional uint64 id = 1; // Record Id of Log stored in db optional uint64 id = 1; // Record Id of Log stored in db
string content = 2; string content = 2;
string effective_user = 3; string effective_user = 3;
optional LogEvent prev_cause = 4;
optional LogSource source = 5; optional LogSource source = 5;
Importance importance = 6; Importance importance = 6;
Meta meta = 7; Meta meta = 7;
@ -38,9 +37,20 @@ message LogEventList {
/* /*
Internal Msg Internal Msg
*/ */
message SMSChangeLog {
uint32 when_ts = 1;
string what = 2;
}
message SMS { message SMS {
string recipient = 1; //recipient string recipient = 1; //recipient
string text = 2; string text = 2;
optional string sender = 3; optional string sender = 3;
Meta meta = 4; Meta meta = 4;
repeated SMSChangeLog change_log = 5;
}
message SMSList {
repeated SMS sms = 1;
} }

View File

@ -6,7 +6,7 @@ import "alert/v1/msg.proto";
import "base/v1/msg.proto"; import "base/v1/msg.proto";
service AlertSrv { service AlertSrv {
rpc Log(LogEvent) returns (base.v1.StatusRes) {} rpc Emit(LogEvent) returns (base.v1.StatusRes) {}
rpc LogHistory(base.v1.IdReq) returns(LogEventList) {} rpc Update(LogEvent) returns (base.v1.StatusRes) {}
rpc StatusChange(LogEvent) returns (base.v1.StatusRes) {} rpc Get() returns (base.v1.StatusRes) {}
} }

View File

@ -28,8 +28,11 @@ plugins:
out: stub/doc/md out: stub/doc/md
# # NOTE: Gateway # # NOTE: Gateway
# # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2 # # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
# - local: protoc-gen-grpc-gateway - local: protoc-gen-grpc-gateway
# out: stub/go out: stub/go
opt:
- standalone=true
- generate_unbound_methods=true
# # NOTE: SWAGGER json files # # NOTE: SWAGGER json files
# # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2 # # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2
# - local: protoc-gen-openapiv2 # - local: protoc-gen-openapiv2