aboutsummaryrefslogtreecommitdiff
path: root/pb
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-02-24 16:07:38 -0500
committerXe Iaso <me@xeiaso.net>2024-02-24 16:07:38 -0500
commit774fccbe94f9a252c72d5394e5cbd027aaaebf64 (patch)
treef665950a197fe4cad115b9f07557acfa887e486a /pb
parent93f6421e1d4e9ce9a4bcf1a55815fed3e2cee962 (diff)
downloadxesite-774fccbe94f9a252c72d5394e5cbd027aaaebf64.tar.xz
xesite-774fccbe94f9a252c72d5394e5cbd027aaaebf64.zip
wire up the protofeed call
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'pb')
-rw-r--r--pb/external/protofeed.proto8
-rw-r--r--pb/external/protofeed/protofeed.pb.go210
-rw-r--r--pb/openapi.json74
-rw-r--r--pb/xesite.pb.go14
-rw-r--r--pb/xesite.proto2
-rw-r--r--pb/xesite.twirp.go88
6 files changed, 196 insertions, 200 deletions
diff --git a/pb/external/protofeed.proto b/pb/external/protofeed.proto
index 2d87bb9..f9262a6 100644
--- a/pb/external/protofeed.proto
+++ b/pb/external/protofeed.proto
@@ -1,5 +1,5 @@
syntax = "proto3";
-package xeiaso.net.protofeed;
+package protofeed;
option go_package = "xeiaso.net/v4/pb/external/protofeed";
import "google/protobuf/timestamp.proto";
@@ -140,11 +140,11 @@ message Item {
// item. Attachments are files that are associated with an item. The value of
// the attachments field is an array of objects, each of which has a url
// field, and other fields as specified in the attachment object definition.
- repeated Attachement attachments = 15;
+ repeated Attachment attachments = 15;
}
-// Attachement is an object representing a file associated with an item.
-message Attachement {
+// Attachment is an object representing a file associated with an item.
+message Attachment {
// (required, string) specifies the location of the attachment.
string url = 1;
// (required, string) specifies the type of the attachment, such as
diff --git a/pb/external/protofeed/protofeed.pb.go b/pb/external/protofeed/protofeed.pb.go
index bd0696f..f76ec27 100644
--- a/pb/external/protofeed/protofeed.pb.go
+++ b/pb/external/protofeed/protofeed.pb.go
@@ -331,7 +331,7 @@ type Item struct {
// item. Attachments are files that are associated with an item. The value of
// the attachments field is an array of objects, each of which has a url
// field, and other fields as specified in the attachment object definition.
- Attachments []*Attachement `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"`
+ Attachments []*Attachment `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"`
}
func (x *Item) Reset() {
@@ -464,15 +464,15 @@ func (x *Item) GetLanguage() string {
return ""
}
-func (x *Item) GetAttachments() []*Attachement {
+func (x *Item) GetAttachments() []*Attachment {
if x != nil {
return x.Attachments
}
return nil
}
-// Attachement is an object representing a file associated with an item.
-type Attachement struct {
+// Attachment is an object representing a file associated with an item.
+type Attachment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -491,8 +491,8 @@ type Attachement struct {
DurationInSeconds int32 `protobuf:"varint,5,opt,name=duration_in_seconds,json=durationInSeconds,proto3" json:"duration_in_seconds,omitempty"`
}
-func (x *Attachement) Reset() {
- *x = Attachement{}
+func (x *Attachment) Reset() {
+ *x = Attachment{}
if protoimpl.UnsafeEnabled {
mi := &file_protofeed_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -500,13 +500,13 @@ func (x *Attachement) Reset() {
}
}
-func (x *Attachement) String() string {
+func (x *Attachment) String() string {
return protoimpl.X.MessageStringOf(x)
}
-func (*Attachement) ProtoMessage() {}
+func (*Attachment) ProtoMessage() {}
-func (x *Attachement) ProtoReflect() protoreflect.Message {
+func (x *Attachment) ProtoReflect() protoreflect.Message {
mi := &file_protofeed_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -518,40 +518,40 @@ func (x *Attachement) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
-// Deprecated: Use Attachement.ProtoReflect.Descriptor instead.
-func (*Attachement) Descriptor() ([]byte, []int) {
+// Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
+func (*Attachment) Descriptor() ([]byte, []int) {
return file_protofeed_proto_rawDescGZIP(), []int{3}
}
-func (x *Attachement) GetUrl() string {
+func (x *Attachment) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
-func (x *Attachement) GetMimeType() string {
+func (x *Attachment) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
-func (x *Attachement) GetTitle() string {
+func (x *Attachment) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
-func (x *Attachement) GetSizeInBytes() int32 {
+func (x *Attachment) GetSizeInBytes() int32 {
if x != nil {
return x.SizeInBytes
}
return 0
}
-func (x *Attachement) GetDurationInSeconds() int32 {
+func (x *Attachment) GetDurationInSeconds() int32 {
if x != nil {
return x.DurationInSeconds
}
@@ -562,86 +562,82 @@ var File_protofeed_proto protoreflect.FileDescriptor
var file_protofeed_proto_rawDesc = []byte{
0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x12, 0x14, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
- 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xee, 0x02, 0x0a, 0x04, 0x46, 0x65, 0x65,
- 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x6d, 0x65, 0x5f,
- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
- 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x66,
- 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66,
- 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73,
- 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72,
- 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
- 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69,
- 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12,
- 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74,
- 0x68, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69,
- 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65,
- 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
- 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a,
- 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
- 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
- 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e,
- 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x49, 0x74,
- 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x41, 0x75, 0x74,
- 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61,
- 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61,
- 0x72, 0x22, 0xab, 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
- 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c,
- 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12,
- 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
- 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e,
- 0x74, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74,
- 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
- 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73,
- 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,
- 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62,
- 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0b, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x41,
- 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64,
- 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
- 0x6d, 0x70, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65,
- 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69,
- 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
- 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69,
- 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0c, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f,
- 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61,
- 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a,
- 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x61, 0x74,
- 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x21, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x6d, 0x65,
- 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22,
- 0xa6, 0x01, 0x0a, 0x0b, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12,
- 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
- 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
- 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
- 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6e, 0x5f,
- 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x69, 0x7a,
- 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x75, 0x72, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
- 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x25, 0x5a, 0x23, 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, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6f, 0x12, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x1a, 0x1f, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69,
+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x02,
+ 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d,
+ 0x68, 0x6f, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c,
+ 0x12, 0x19, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64,
+ 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a,
+ 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+ 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18,
+ 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x2b,
+ 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c,
+ 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c,
+ 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72,
+ 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,
+ 0x64, 0x12, 0x25, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x49, 0x74, 0x65,
+ 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x41, 0x75, 0x74, 0x68,
+ 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74,
+ 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
+ 0x22, 0x94, 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x65,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x14,
+ 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
+ 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
+ 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65,
+ 0x6e, 0x74, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
+ 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75,
+ 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d,
+ 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x61,
+ 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0b, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x41, 0x0a,
+ 0x0e, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18,
+ 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
+ 0x70, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64,
+ 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
+ 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
+ 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
+ 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0c, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41,
+ 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x12,
+ 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61,
+ 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0e,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x37,
+ 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20,
+ 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e,
+ 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61,
+ 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61,
+ 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65,
+ 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d,
+ 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73,
+ 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x0b, 0x73, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12,
+ 0x2e, 0x0a, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73,
+ 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75,
+ 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42,
+ 0x25, 0x5a, 0x23, 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, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -658,19 +654,19 @@ func file_protofeed_proto_rawDescGZIP() []byte {
var file_protofeed_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_protofeed_proto_goTypes = []interface{}{
- (*Feed)(nil), // 0: xeiaso.net.protofeed.Feed
- (*Author)(nil), // 1: xeiaso.net.protofeed.Author
- (*Item)(nil), // 2: xeiaso.net.protofeed.Item
- (*Attachement)(nil), // 3: xeiaso.net.protofeed.Attachement
+ (*Feed)(nil), // 0: protofeed.Feed
+ (*Author)(nil), // 1: protofeed.Author
+ (*Item)(nil), // 2: protofeed.Item
+ (*Attachment)(nil), // 3: protofeed.Attachment
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_protofeed_proto_depIdxs = []int32{
- 1, // 0: xeiaso.net.protofeed.Feed.authors:type_name -> xeiaso.net.protofeed.Author
- 2, // 1: xeiaso.net.protofeed.Feed.items:type_name -> xeiaso.net.protofeed.Item
- 4, // 2: xeiaso.net.protofeed.Item.date_published:type_name -> google.protobuf.Timestamp
- 4, // 3: xeiaso.net.protofeed.Item.date_modified:type_name -> google.protobuf.Timestamp
- 1, // 4: xeiaso.net.protofeed.Item.authors:type_name -> xeiaso.net.protofeed.Author
- 3, // 5: xeiaso.net.protofeed.Item.attachments:type_name -> xeiaso.net.protofeed.Attachement
+ 1, // 0: protofeed.Feed.authors:type_name -> protofeed.Author
+ 2, // 1: protofeed.Feed.items:type_name -> protofeed.Item
+ 4, // 2: protofeed.Item.date_published:type_name -> google.protobuf.Timestamp
+ 4, // 3: protofeed.Item.date_modified:type_name -> google.protobuf.Timestamp
+ 1, // 4: protofeed.Item.authors:type_name -> protofeed.Author
+ 3, // 5: protofeed.Item.attachments:type_name -> protofeed.Attachment
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
@@ -721,7 +717,7 @@ func file_protofeed_proto_init() {
}
}
file_protofeed_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Attachement); i {
+ switch v := v.(*Attachment); i {
case 0:
return &v.state
case 1:
diff --git a/pb/openapi.json b/pb/openapi.json
index f9b05f5..c85f242 100644
--- a/pb/openapi.json
+++ b/pb/openapi.json
@@ -1,35 +1,8 @@
{
"components": {
"schemas": {
- "xeiaso.net.BuildInfo": {
- "description": "BuildInfo contains metadata about a build of the site.",
- "properties": {
- "build_time": {
- "description": "When the site was last rebuilt",
- "format": "date-time",
- "type": "string"
- },
- "commit": {
- "description": "The commit of Xe/site that was built",
- "type": "string"
- },
- "deno_version": {
- "description": "The version of Deno used to build the site",
- "type": "string"
- },
- "go_version": {
- "description": "The version of Go running on the server",
- "type": "string"
- },
- "xesite_version": {
- "description": "The version of the xesite binary",
- "type": "string"
- }
- },
- "type": "object"
- },
- "xeiaso.net.protofeed.Attachement": {
- "description": "Attachement is an object representing a file associated with an item.",
+ "protofeed.Attachment": {
+ "description": "Attachment is an object representing a file associated with an item.",
"properties": {
"duration_in_seconds": {
"description": "(optional, number) specifies how long it takes to listen to or watch, when\nplayed at normal speed.",
@@ -56,7 +29,7 @@
},
"type": "object"
},
- "xeiaso.net.protofeed.Author": {
+ "protofeed.Author": {
"description": "Author is an object representing the author of the feed or item.",
"properties": {
"avatar": {
@@ -74,13 +47,13 @@
},
"type": "object"
},
- "xeiaso.net.protofeed.Feed": {
+ "protofeed.Feed": {
"description": "Feed is the root of a Proto Feed document. A feed must at least contain a\ntitle and items.",
"properties": {
"authors": {
"description": "(optional, array of objects) specifies the feed authors.",
"items": {
- "$ref": "#/components/schemas/xeiaso.net.protofeed.Author"
+ "$ref": "#/components/schemas/protofeed.Author"
},
"type": "array"
},
@@ -111,7 +84,7 @@
"items": {
"description": "(required, array of objects) contains the items in the feed. This is the\nmost important element of the feed after the version field. Each item is a\nstory, blog post, article, photograph, video, or other thing. For example,\nif a feed contains a long article, a podcast episode, and a photo, those\nthree items would be included in items.",
"items": {
- "$ref": "#/components/schemas/xeiaso.net.protofeed.Item"
+ "$ref": "#/components/schemas/protofeed.Item"
},
"type": "array"
},
@@ -130,20 +103,20 @@
},
"type": "object"
},
- "xeiaso.net.protofeed.Item": {
+ "protofeed.Item": {
"description": "Item is an object representing a single story, blog post, article,\nphotograph, video, or other thing within a feed.",
"properties": {
"attachments": {
"description": "(optional, array of objects) specifies the attachments associated with the\nitem. Attachments are files that are associated with an item. The value of\nthe attachments field is an array of objects, each of which has a url\nfield, and other fields as specified in the attachment object definition.",
"items": {
- "$ref": "#/components/schemas/xeiaso.net.protofeed.Attachement"
+ "$ref": "#/components/schemas/protofeed.Attachment"
},
"type": "array"
},
"authors": {
"description": "(optional, array of objects) has the same structure as the top-level\nauthors. If not specified in an item, then the top-level authors, if\npresent, are the authors of the item.",
"items": {
- "$ref": "#/components/schemas/xeiaso.net.protofeed.Author"
+ "$ref": "#/components/schemas/protofeed.Author"
},
"type": "array"
},
@@ -207,6 +180,33 @@
}
},
"type": "object"
+ },
+ "xeiaso.net.BuildInfo": {
+ "description": "BuildInfo contains metadata about a build of the site.",
+ "properties": {
+ "build_time": {
+ "description": "When the site was last rebuilt",
+ "format": "date-time",
+ "type": "string"
+ },
+ "commit": {
+ "description": "The commit of Xe/site that was built",
+ "type": "string"
+ },
+ "deno_version": {
+ "description": "The version of Deno used to build the site",
+ "type": "string"
+ },
+ "go_version": {
+ "description": "The version of Go running on the server",
+ "type": "string"
+ },
+ "xesite_version": {
+ "description": "The version of the xesite binary",
+ "type": "string"
+ }
+ },
+ "type": "object"
}
}
},
@@ -229,7 +229,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/xeiaso.net.protofeed.Feed"
+ "$ref": "#/components/schemas/protofeed.Feed"
}
}
},
diff --git a/pb/xesite.pb.go b/pb/xesite.pb.go
index 04fa4f1..8988282 100644
--- a/pb/xesite.pb.go
+++ b/pb/xesite.pb.go
@@ -135,12 +135,12 @@ var file_xesite_proto_rawDesc = []byte{
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, 0x15, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73,
0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x32,
- 0x41, 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x16,
+ 0x36, 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x2e, 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, 0x1a, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e,
- 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x46, 0x65,
- 0x65, 0x64, 0x42, 0x12, 0x5a, 0x10, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74,
- 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65,
+ 0x65, 0x64, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x42, 0x12, 0x5a, 0x10, 0x78, 0x65, 0x69, 0x61, 0x73,
+ 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
}
var (
@@ -160,14 +160,14 @@ var file_xesite_proto_goTypes = []interface{}{
(*BuildInfo)(nil), // 0: xeiaso.net.BuildInfo
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
(*emptypb.Empty)(nil), // 2: google.protobuf.Empty
- (*protofeed.Feed)(nil), // 3: xeiaso.net.protofeed.Feed
+ (*protofeed.Feed)(nil), // 3: protofeed.Feed
}
var file_xesite_proto_depIdxs = []int32{
1, // 0: xeiaso.net.BuildInfo.build_time:type_name -> google.protobuf.Timestamp
2, // 1: xeiaso.net.Meta.Metadata:input_type -> google.protobuf.Empty
2, // 2: xeiaso.net.Feed.Get:input_type -> google.protobuf.Empty
0, // 3: xeiaso.net.Meta.Metadata:output_type -> xeiaso.net.BuildInfo
- 3, // 4: xeiaso.net.Feed.Get:output_type -> xeiaso.net.protofeed.Feed
+ 3, // 4: xeiaso.net.Feed.Get:output_type -> protofeed.Feed
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
diff --git a/pb/xesite.proto b/pb/xesite.proto
index 08f089a..db008f6 100644
--- a/pb/xesite.proto
+++ b/pb/xesite.proto
@@ -31,5 +31,5 @@ message BuildInfo {
// Feed lets users fetch the current feed of posts.
service Feed {
// Get fetches the current feed of posts.
- rpc Get(google.protobuf.Empty) returns (xeiaso.net.protofeed.Feed);
+ rpc Get(google.protobuf.Empty) returns (protofeed.Feed);
} \ No newline at end of file
diff --git a/pb/xesite.twirp.go b/pb/xesite.twirp.go
index 855a59b..3bed17e 100644
--- a/pb/xesite.twirp.go
+++ b/pb/xesite.twirp.go
@@ -17,7 +17,7 @@ import twirp "github.com/twitchtv/twirp"
import ctxsetters "github.com/twitchtv/twirp/ctxsetters"
import google_protobuf "google.golang.org/protobuf/types/known/emptypb"
-import xeiaso_net_protofeed "xeiaso.net/v4/pb/external/protofeed"
+import protofeed "xeiaso.net/v4/pb/external/protofeed"
import bytes "bytes"
import errors "errors"
@@ -534,7 +534,7 @@ func (s *metaServer) PathPrefix() string {
// Feed lets users fetch the current feed of posts.
type Feed interface {
// Get fetches the current feed of posts.
- Get(context.Context, *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error)
+ Get(context.Context, *google_protobuf.Empty) (*protofeed.Feed, error)
}
// ====================
@@ -583,13 +583,13 @@ func NewFeedProtobufClient(baseURL string, client HTTPClient, opts ...twirp.Clie
}
}
-func (c *feedProtobufClient) Get(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
+func (c *feedProtobufClient) Get(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) {
ctx = ctxsetters.WithPackageName(ctx, "xeiaso.net")
ctx = ctxsetters.WithServiceName(ctx, "Feed")
ctx = ctxsetters.WithMethodName(ctx, "Get")
caller := c.callGet
if c.interceptor != nil {
- caller = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
+ caller = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) {
resp, err := c.interceptor(
func(ctx context.Context, req interface{}) (interface{}, error) {
typedReq, ok := req.(*google_protobuf.Empty)
@@ -600,9 +600,9 @@ func (c *feedProtobufClient) Get(ctx context.Context, in *google_protobuf.Empty)
},
)(ctx, req)
if resp != nil {
- typedResp, ok := resp.(*xeiaso_net_protofeed.Feed)
+ typedResp, ok := resp.(*protofeed.Feed)
if !ok {
- return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor")
+ return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor")
}
return typedResp, err
}
@@ -612,8 +612,8 @@ func (c *feedProtobufClient) Get(ctx context.Context, in *google_protobuf.Empty)
return caller(ctx, in)
}
-func (c *feedProtobufClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
- out := new(xeiaso_net_protofeed.Feed)
+func (c *feedProtobufClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) {
+ out := new(protofeed.Feed)
ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[0], in, out)
if err != nil {
twerr, ok := err.(twirp.Error)
@@ -675,13 +675,13 @@ func NewFeedJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOp
}
}
-func (c *feedJSONClient) Get(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
+func (c *feedJSONClient) Get(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) {
ctx = ctxsetters.WithPackageName(ctx, "xeiaso.net")
ctx = ctxsetters.WithServiceName(ctx, "Feed")
ctx = ctxsetters.WithMethodName(ctx, "Get")
caller := c.callGet
if c.interceptor != nil {
- caller = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
+ caller = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) {
resp, err := c.interceptor(
func(ctx context.Context, req interface{}) (interface{}, error) {
typedReq, ok := req.(*google_protobuf.Empty)
@@ -692,9 +692,9 @@ func (c *feedJSONClient) Get(ctx context.Context, in *google_protobuf.Empty) (*x
},
)(ctx, req)
if resp != nil {
- typedResp, ok := resp.(*xeiaso_net_protofeed.Feed)
+ typedResp, ok := resp.(*protofeed.Feed)
if !ok {
- return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor")
+ return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor")
}
return typedResp, err
}
@@ -704,8 +704,8 @@ func (c *feedJSONClient) Get(ctx context.Context, in *google_protobuf.Empty) (*x
return caller(ctx, in)
}
-func (c *feedJSONClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
- out := new(xeiaso_net_protofeed.Feed)
+func (c *feedJSONClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) {
+ out := new(protofeed.Feed)
ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[0], in, out)
if err != nil {
twerr, ok := err.(twirp.Error)
@@ -870,7 +870,7 @@ func (s *feedServer) serveGetJSON(ctx context.Context, resp http.ResponseWriter,
handler := s.Feed.Get
if s.interceptor != nil {
- handler = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
+ handler = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) {
resp, err := s.interceptor(
func(ctx context.Context, req interface{}) (interface{}, error) {
typedReq, ok := req.(*google_protobuf.Empty)
@@ -881,9 +881,9 @@ func (s *feedServer) serveGetJSON(ctx context.Context, resp http.ResponseWriter,
},
)(ctx, req)
if resp != nil {
- typedResp, ok := resp.(*xeiaso_net_protofeed.Feed)
+ typedResp, ok := resp.(*protofeed.Feed)
if !ok {
- return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor")
+ return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor")
}
return typedResp, err
}
@@ -892,7 +892,7 @@ func (s *feedServer) serveGetJSON(ctx context.Context, resp http.ResponseWriter,
}
// Call service method
- var respContent *xeiaso_net_protofeed.Feed
+ var respContent *protofeed.Feed
func() {
defer ensurePanicResponses(ctx, resp, s.hooks)
respContent, err = handler(ctx, reqContent)
@@ -903,7 +903,7 @@ func (s *feedServer) serveGetJSON(ctx context.Context, resp http.ResponseWriter,
return
}
if respContent == nil {
- s.writeError(ctx, resp, twirp.InternalError("received a nil *xeiaso_net_protofeed.Feed and nil error while calling Get. nil responses are not supported"))
+ s.writeError(ctx, resp, twirp.InternalError("received a nil *protofeed.Feed and nil error while calling Get. nil responses are not supported"))
return
}
@@ -951,7 +951,7 @@ func (s *feedServer) serveGetProtobuf(ctx context.Context, resp http.ResponseWri
handler := s.Feed.Get
if s.interceptor != nil {
- handler = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) {
+ handler = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) {
resp, err := s.interceptor(
func(ctx context.Context, req interface{}) (interface{}, error) {
typedReq, ok := req.(*google_protobuf.Empty)
@@ -962,9 +962,9 @@ func (s *feedServer) serveGetProtobuf(ctx context.Context, resp http.ResponseWri
},
)(ctx, req)
if resp != nil {
- typedResp, ok := resp.(*xeiaso_net_protofeed.Feed)
+ typedResp, ok := resp.(*protofeed.Feed)
if !ok {
- return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor")
+ return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor")
}
return typedResp, err
}
@@ -973,7 +973,7 @@ func (s *feedServer) serveGetProtobuf(ctx context.Context, resp http.ResponseWri
}
// Call service method
- var respContent *xeiaso_net_protofeed.Feed
+ var respContent *protofeed.Feed
func() {
defer ensurePanicResponses(ctx, resp, s.hooks)
respContent, err = handler(ctx, reqContent)
@@ -984,7 +984,7 @@ func (s *feedServer) serveGetProtobuf(ctx context.Context, resp http.ResponseWri
return
}
if respContent == nil {
- s.writeError(ctx, resp, twirp.InternalError("received a nil *xeiaso_net_protofeed.Feed and nil error while calling Get. nil responses are not supported"))
+ s.writeError(ctx, resp, twirp.InternalError("received a nil *protofeed.Feed and nil error while calling Get. nil responses are not supported"))
return
}
@@ -1589,24 +1589,24 @@ func callClientError(ctx context.Context, h *twirp.ClientHooks, err twirp.Error)