aboutsummaryrefslogtreecommitdiff
path: root/pb/external
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-24 19:07:14 -0400
committerXe Iaso <me@xeiaso.net>2024-05-24 19:07:14 -0400
commit547402bebe0b17837cfdfd2ccb9cef1e9236516c (patch)
tree17a39988c9df0d2134d5dac279b220afc584d3c3 /pb/external
parent6c74ae14408597753c23b6bb0601a17bdfe9b9bc (diff)
downloadxesite-547402bebe0b17837cfdfd2ccb9cef1e9236516c.tar.xz
xesite-547402bebe0b17837cfdfd2ccb9cef1e9236516c.zip
fix events API
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'pb/external')
-rw-r--r--pb/external/mi.proto7
-rw-r--r--pb/external/mi/mi.pb.go25
-rw-r--r--pb/external/mimi/announce/mimi-announce.pb.go2
-rw-r--r--pb/external/protofeed/protofeed.pb.go2
4 files changed, 25 insertions, 11 deletions
diff --git a/pb/external/mi.proto b/pb/external/mi.proto
index 937a15c..b4bd844 100644
--- a/pb/external/mi.proto
+++ b/pb/external/mi.proto
@@ -4,6 +4,7 @@ syntax = "proto3";
package within.website.x.mi;
option go_package = "xeiaso.net/v4/pb/external/mi";
+import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
// Event is a single event that Xe will be attending.
@@ -28,4 +29,10 @@ message Event {
message EventFeed {
// The events in the feed
repeated Event events = 1;
+}
+
+// Events lets users fetch the current feed of events that Xe will be attending.
+service Events {
+ // Get fetches the current feed of upcoming events.
+ rpc Get(google.protobuf.Empty) returns (EventFeed);
} \ No newline at end of file
diff --git a/pb/external/mi/mi.pb.go b/pb/external/mi/mi.pb.go
index 8d425d3..15e0b44 100644
--- a/pb/external/mi/mi.pb.go
+++ b/pb/external/mi/mi.pb.go
@@ -2,7 +2,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.32.0
+// protoc-gen-go v1.34.1
// protoc v5.26.1
// source: mi.proto
@@ -11,7 +11,7 @@ package mi
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- _ "google.golang.org/protobuf/types/known/emptypb"
+ emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
@@ -203,10 +203,14 @@ var file_mi_proto_rawDesc = []byte{
0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x65, 0x76,
0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x74,
0x68, 0x69, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x2e, 0x78, 0x2e, 0x6d, 0x69,
- 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x1e,
- 0x5a, 0x1c, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f,
- 0x70, 0x62, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6d, 0x69, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x32, 0x47,
+ 0x0a, 0x06, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12,
+ 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e,
+ 0x2e, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x2e, 0x78, 0x2e, 0x6d, 0x69, 0x2e, 0x45, 0x76,
+ 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x64, 0x42, 0x1e, 0x5a, 0x1c, 0x78, 0x65, 0x69, 0x61, 0x73,
+ 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x74, 0x65,
+ 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6d, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -226,13 +230,16 @@ var file_mi_proto_goTypes = []interface{}{
(*Event)(nil), // 0: within.website.x.mi.Event
(*EventFeed)(nil), // 1: within.website.x.mi.EventFeed
(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
+ (*emptypb.Empty)(nil), // 3: google.protobuf.Empty
}
var file_mi_proto_depIdxs = []int32{
2, // 0: within.website.x.mi.Event.start_date:type_name -> google.protobuf.Timestamp
2, // 1: within.website.x.mi.Event.end_date:type_name -> google.protobuf.Timestamp
0, // 2: within.website.x.mi.EventFeed.events:type_name -> within.website.x.mi.Event
- 3, // [3:3] is the sub-list for method output_type
- 3, // [3:3] is the sub-list for method input_type
+ 3, // 3: within.website.x.mi.Events.Get:input_type -> google.protobuf.Empty
+ 1, // 4: within.website.x.mi.Events.Get:output_type -> within.website.x.mi.EventFeed
+ 4, // [4:5] is the sub-list for method output_type
+ 3, // [3:4] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
@@ -277,7 +284,7 @@ func file_mi_proto_init() {
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
- NumServices: 0,
+ NumServices: 1,
},
GoTypes: file_mi_proto_goTypes,
DependencyIndexes: file_mi_proto_depIdxs,
diff --git a/pb/external/mimi/announce/mimi-announce.pb.go b/pb/external/mimi/announce/mimi-announce.pb.go
index 5faa967..2eb35e2 100644
--- a/pb/external/mimi/announce/mimi-announce.pb.go
+++ b/pb/external/mimi/announce/mimi-announce.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.32.0
+// protoc-gen-go v1.34.1
// protoc v5.26.1
// source: mimi-announce.proto
diff --git a/pb/external/protofeed/protofeed.pb.go b/pb/external/protofeed/protofeed.pb.go
index 11c27cc..8ac14ec 100644
--- a/pb/external/protofeed/protofeed.pb.go
+++ b/pb/external/protofeed/protofeed.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.32.0
+// protoc-gen-go v1.34.1
// protoc v5.26.1
// source: protofeed.proto