Skip to content

Commit

Permalink
update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brian030128 committed Jun 16, 2024
1 parent 438d7c5 commit 762d94b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
Binary file modified README.md
Binary file not shown.
1 change: 0 additions & 1 deletion protobuf/friend.go

This file was deleted.

18 changes: 18 additions & 0 deletions protobuf/user.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = "github.com/SpeedReach/monify";


message UEmpty {}

service UserService {
rpc UpdateUserName (UpdateUserNameRequest) returns (UEmpty) {}

}



message UpdateUserNameRequest {
string name = 1;
}


1 change: 1 addition & 0 deletions services/notification/firebase.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package notification
7 changes: 7 additions & 0 deletions services/notification/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package notification

import (
"context"
"encoding/json"
"fmt"
"monify/lib/group_bill"
)

func Start(config Config) {
Expand All @@ -16,6 +18,11 @@ func Start(config Config) {
if err != nil {
panic(err)
}
modification := group_bill.GroupBillModification{}
err = json.Unmarshal(m.Value, &modification)
if err != nil {
panic(err)
}

fmt.Printf("message at topic/partition/offset %v/%v/%v: %s = %s\n",
m.Topic, m.Partition, m.Offset, string(m.Key), string(m.Value))
Expand Down

0 comments on commit 762d94b

Please sign in to comment.