Skip to content
Snippets Groups Projects

Add basic application framework and example application to show interaction between events an NBI

Merged Ghost User requested to merge istaester/init-application-framework into develop
All threads resolved!
2 files
+ 12
11
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -52,7 +52,7 @@ func (a *Application) Run() {
}
func (a *Application) callback(event *event.Event) {
fmt.Printf("Event Callback: %+v", event)
fmt.Printf("Event Callback: %+v \n", event)
ctx := context.Background()
userService := rbac.NewUserServiceClient(a.grpcClientConn)
@@ -60,6 +60,7 @@ func (a *Application) callback(event *event.Event) {
request := &rbac.GetUserRequest{
Timestamp: time.Now().UnixNano(),
Name: event.ID.String(),
Uuid: event.EntityID.String(),
}
response, err := userService.GetUser(ctx, request)
@@ -69,7 +70,7 @@ func (a *Application) callback(event *event.Event) {
}
fmt.Printf("ID: %v, Name: %v \n", response.User.Id, response.User.Name)
// for key, elem := range resp.User.Roles {
// log.Infof("Role on PND: %v %v \n", key, elem)
// }
for key, elem := range response.User.Roles {
fmt.Printf("Role on PND: %v %v \n", key, elem)
}
}
Loading