blob: aea867cc5de285acb17a6bd952a4e7f26e12be2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
syntax = "proto3";
package xeiaso.net;
option go_package = "xeiaso.net/v4/pb";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "external/mi.proto"; // unused in this file
import "external/protofeed.proto";
// Meta lets users fetch site metadata.
service Meta {
// Metadata fetches the build metadata of the version of xesite that is
// currently running.
rpc Metadata(google.protobuf.Empty) returns (BuildInfo);
}
// BuildInfo contains metadata about a build of the site.
message BuildInfo {
// The commit of Xe/site that was built
string commit = 1;
// When the site was last rebuilt
google.protobuf.Timestamp build_time = 2;
// The version of Go running on the server
string go_version = 3;
// The version of Deno used to build the site
string deno_version = 4;
// The version of the xesite binary
string xesite_version = 5;
}
// Feed lets users fetch the current feed of posts.
service Feed {
// Get fetches the current feed of posts.
rpc Get(google.protobuf.Empty) returns (protofeed.Feed);
}
|