feat:#36 updated feed service with more protobuf endpoints

This commit is contained in:
Elmar Kresse
2024-06-18 23:46:23 +02:00
parent 4792b07e8c
commit acc048a80a
10 changed files with 197 additions and 69 deletions

View File

@@ -31,3 +31,13 @@ func eventsToProto(events model.Events) []*pb.Event {
}
return protoEvents
}
func feedToProto(feed *model.Feed) *pb.Feed {
return &pb.Feed{
Id: feed.Id,
Created: feed.Created.String(),
Updated: feed.Updated.String(),
Retrieved: feed.Retrieved.String(),
Modules: feed.Modules,
}
}