The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

wire up the protofeed call

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 774fccbe 93f6421e

+1034 -202
+76
cmd/xesite/api.go
··· 2 2 3 3 import ( 4 4 "context" 5 + "encoding/json" 6 + "io/fs" 5 7 "os" 6 8 "os/exec" 7 9 "runtime" ··· 10 12 "github.com/twitchtv/twirp" 11 13 "google.golang.org/protobuf/types/known/emptypb" 12 14 "google.golang.org/protobuf/types/known/timestamppb" 15 + "xeiaso.net/v4/internal/jsonfeed" 13 16 "xeiaso.net/v4/internal/lume" 14 17 "xeiaso.net/v4/pb" 18 + "xeiaso.net/v4/pb/external/protofeed" 15 19 ) 16 20 17 21 var denoVersion string ··· 50 54 51 55 return result, nil 52 56 } 57 + 58 + type FeedServer struct { 59 + fs *lume.FS 60 + } 61 + 62 + func (f *FeedServer) Get(ctx context.Context, _ *emptypb.Empty) (*protofeed.Feed, error) { 63 + data, err := fs.ReadFile(f.fs, "blog.json") 64 + if err != nil { 65 + return nil, twirp.InternalErrorf("can't read blog.json: %w", err) 66 + } 67 + 68 + var feed jsonfeed.Feed 69 + 70 + if err := json.Unmarshal(data, &feed); err != nil { 71 + return nil, twirp.InternalErrorf("can't unmarshal blog.json: %w", err) 72 + } 73 + 74 + var result protofeed.Feed 75 + 76 + result.Title = feed.Title 77 + result.HomePageUrl = feed.HomePageURL 78 + result.FeedUrl = feed.FeedURL 79 + result.Description = feed.Description 80 + result.UserComment = feed.UserComment 81 + result.Icon = feed.Icon 82 + result.Favicon = feed.Favicon 83 + result.Expired = feed.Expired 84 + result.Language = feed.Language 85 + result.Items = make([]*protofeed.Item, len(feed.Items)) 86 + result.Authors = make([]*protofeed.Author, len(feed.Authors)) 87 + 88 + for i, item := range feed.Items { 89 + var atts []*protofeed.Attachment 90 + for _, att := range item.Attachments { 91 + atts = append(atts, &protofeed.Attachment{ 92 + Url: att.URL, 93 + MimeType: att.MIMEType, 94 + Title: att.Title, 95 + SizeInBytes: att.SizeInBytes, 96 + DurationInSeconds: att.DurationInSeconds, 97 + }) 98 + } 99 + 100 + var authors []*protofeed.Author 101 + for _, author := range item.Authors { 102 + authors = append(authors, &protofeed.Author{ 103 + Name: author.Name, 104 + Url: author.URL, 105 + Avatar: author.Avatar, 106 + }) 107 + } 108 + 109 + result.Items[i] = &protofeed.Item{ 110 + Id: item.ID, 111 + Url: item.URL, 112 + ExternalUrl: item.ExternalURL, 113 + Title: item.Title, 114 + ContentHtml: item.ContentHTML, 115 + ContentText: item.ContentText, 116 + Summary: item.Summary, 117 + Image: item.Image, 118 + BannerImage: item.BannerImage, 119 + DatePublished: timestamppb.New(item.DatePublished), 120 + DateModified: timestamppb.New(item.DateModified), 121 + Tags: item.Tags, 122 + Authors: authors, 123 + Attachments: atts, 124 + } 125 + } 126 + 127 + return &result, nil 128 + }
+4 -1
cmd/xesite/main.go
··· 11 11 "path/filepath" 12 12 13 13 "github.com/donatj/hmacsig" 14 + swaggerui "github.com/esceer/todo/swagger-ui" 14 15 "github.com/facebookgo/flagenv" 15 16 _ "github.com/joho/godotenv/autoload" 16 - "github.com/esceer/todo/swagger-ui" 17 17 "github.com/twitchtv/twirp" 18 18 "xeiaso.net/v4/internal" 19 19 "xeiaso.net/v4/internal/lume" ··· 86 86 87 87 ms := pb.NewMetaServer(&MetaServer{fs}, twirp.WithServerPathPrefix("/api")) 88 88 mux.Handle(ms.PathPrefix(), ms) 89 + 90 + fsrv := pb.NewFeedServer(&FeedServer{fs}, twirp.WithServerPathPrefix("/api")) 91 + mux.Handle(fsrv.PathPrefix(), fsrv) 89 92 90 93 mux.HandleFunc("/blog.atom", func(w http.ResponseWriter, r *http.Request) { 91 94 http.Redirect(w, r, "/blog.rss", http.StatusMovedPermanently)
+3
go.mod
··· 15 15 github.com/go-git/go-git/v5 v5.11.0 16 16 github.com/invopop/yaml v0.2.0 17 17 github.com/joho/godotenv v1.5.1 18 + github.com/stretchr/testify v1.8.4 18 19 github.com/twitchtv/twirp v8.1.3+incompatible 19 20 golang.org/x/oauth2 v0.17.0 20 21 google.golang.org/protobuf v1.32.0 ··· 30 31 github.com/ProtonMail/go-crypto v1.0.0 // indirect 31 32 github.com/cloudflare/circl v1.3.7 // indirect 32 33 github.com/cyphar/filepath-securejoin v0.2.4 // indirect 34 + github.com/davecgh/go-spew v1.1.1 // indirect 33 35 github.com/emirpasic/gods v1.18.1 // indirect 34 36 github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect 35 37 github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect ··· 46 48 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect 47 49 github.com/perimeterx/marshmallow v1.1.5 // indirect 48 50 github.com/pjbgf/sha1cd v0.3.0 // indirect 51 + github.com/pmezard/go-difflib v1.0.0 // indirect 49 52 github.com/sergi/go-diff v1.3.1 // indirect 50 53 github.com/skeema/knownhosts v1.2.1 // indirect 51 54 github.com/xanzy/ssh-agent v0.3.3 // indirect
+17
internal/jsonfeed/.gitignore
··· 1 + # ---> Go 2 + # Binaries for programs and plugins 3 + *.exe 4 + *.exe~ 5 + *.dll 6 + *.so 7 + *.dylib 8 + 9 + # Test binary, built with `go test -c` 10 + *.test 11 + 12 + # Output of the go coverage tool, specifically when used with LiteIDE 13 + *.out 14 + 15 + # Dependency directories (remove the comment below to include it) 16 + # vendor/ 17 +
+312
internal/jsonfeed/LICENSE
··· 1 + Mozilla Public License Version 2.0 2 + 3 + 1. Definitions 4 + 5 + 1.1. "Contributor" means each individual or legal entity that creates, contributes 6 + to the creation of, or owns Covered Software. 7 + 8 + 1.2. "Contributor Version" means the combination of the Contributions of others 9 + (if any) used by a Contributor and that particular Contributor's Contribution. 10 + 11 + 1.3. "Contribution" means Covered Software of a particular Contributor. 12 + 13 + 1.4. "Covered Software" means Source Code Form to which the initial Contributor 14 + has attached the notice in Exhibit A, the Executable Form of such Source Code 15 + Form, and Modifications of such Source Code Form, in each case including portions 16 + thereof. 17 + 18 + 1.5. "Incompatible With Secondary Licenses" means 19 + 20 + (a) that the initial Contributor has attached the notice described in Exhibit 21 + B to the Covered Software; or 22 + 23 + (b) that the Covered Software was made available under the terms of version 24 + 1.1 or earlier of the License, but not also under the terms of a Secondary 25 + License. 26 + 27 + 1.6. "Executable Form" means any form of the work other than Source Code Form. 28 + 29 + 1.7. "Larger Work" means a work that combines Covered Software with other 30 + material, in a separate file or files, that is not Covered Software. 31 + 32 + 1.8. "License" means this document. 33 + 34 + 1.9. "Licensable" means having the right to grant, to the maximum extent possible, 35 + whether at the time of the initial grant or subsequently, any and all of the 36 + rights conveyed by this License. 37 + 38 + 1.10. "Modifications" means any of the following: 39 + 40 + (a) any file in Source Code Form that results from an addition to, deletion 41 + from, or modification of the contents of Covered Software; or 42 + 43 + (b) any new file in Source Code Form that contains any Covered Software. 44 + 45 + 1.11. "Patent Claims" of a Contributor means any patent claim(s), including 46 + without limitation, method, process, and apparatus claims, in any patent Licensable 47 + by such Contributor that would be infringed, but for the grant of the License, 48 + by the making, using, selling, offering for sale, having made, import, or 49 + transfer of either its Contributions or its Contributor Version. 50 + 51 + 1.12. "Secondary License" means either the GNU General Public License, Version 52 + 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General 53 + Public License, Version 3.0, or any later versions of those licenses. 54 + 55 + 1.13. "Source Code Form" means the form of the work preferred for making modifications. 56 + 57 + 1.14. "You" (or "Your") means an individual or a legal entity exercising rights 58 + under this License. For legal entities, "You" includes any entity that controls, 59 + is controlled by, or is under common control with You. For purposes of this 60 + definition, "control" means (a) the power, direct or indirect, to cause the 61 + direction or management of such entity, whether by contract or otherwise, 62 + or (b) ownership of more than fifty percent (50%) of the outstanding shares 63 + or beneficial ownership of such entity. 64 + 65 + 2. License Grants and Conditions 66 + 67 + 2.1. Grants 68 + 69 + Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive 70 + license: 71 + 72 + (a) under intellectual property rights (other than patent or trademark) Licensable 73 + by such Contributor to use, reproduce, make available, modify, display, perform, 74 + distribute, and otherwise exploit its Contributions, either on an unmodified 75 + basis, with Modifications, or as part of a Larger Work; and 76 + 77 + (b) under Patent Claims of such Contributor to make, use, sell, offer for 78 + sale, have made, import, and otherwise transfer either its Contributions or 79 + its Contributor Version. 80 + 81 + 2.2. Effective Date 82 + 83 + The licenses granted in Section 2.1 with respect to any Contribution become 84 + effective for each Contribution on the date the Contributor first distributes 85 + such Contribution. 86 + 87 + 2.3. Limitations on Grant Scope 88 + 89 + The licenses granted in this Section 2 are the only rights granted under this 90 + License. No additional rights or licenses will be implied from the distribution 91 + or licensing of Covered Software under this License. Notwithstanding Section 92 + 2.1(b) above, no patent license is granted by a Contributor: 93 + 94 + (a) for any code that a Contributor has removed from Covered Software; or 95 + 96 + (b) for infringements caused by: (i) Your and any other third party's modifications 97 + of Covered Software, or (ii) the combination of its Contributions with other 98 + software (except as part of its Contributor Version); or 99 + 100 + (c) under Patent Claims infringed by Covered Software in the absence of its 101 + Contributions. 102 + 103 + This License does not grant any rights in the trademarks, service marks, or 104 + logos of any Contributor (except as may be necessary to comply with the notice 105 + requirements in Section 3.4). 106 + 107 + 2.4. Subsequent Licenses 108 + 109 + No Contributor makes additional grants as a result of Your choice to distribute 110 + the Covered Software under a subsequent version of this License (see Section 111 + 10.2) or under the terms of a Secondary License (if permitted under the terms 112 + of Section 3.3). 113 + 114 + 2.5. Representation 115 + 116 + Each Contributor represents that the Contributor believes its Contributions 117 + are its original creation(s) or it has sufficient rights to grant the rights 118 + to its Contributions conveyed by this License. 119 + 120 + 2.6. Fair Use 121 + 122 + This License is not intended to limit any rights You have under applicable 123 + copyright doctrines of fair use, fair dealing, or other equivalents. 124 + 125 + 2.7. Conditions 126 + 127 + Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in 128 + Section 2.1. 129 + 130 + 3. Responsibilities 131 + 132 + 3.1. Distribution of Source Form 133 + 134 + All distribution of Covered Software in Source Code Form, including any Modifications 135 + that You create or to which You contribute, must be under the terms of this 136 + License. You must inform recipients that the Source Code Form of the Covered 137 + Software is governed by the terms of this License, and how they can obtain 138 + a copy of this License. You may not attempt to alter or restrict the recipients' 139 + rights in the Source Code Form. 140 + 141 + 3.2. Distribution of Executable Form 142 + 143 + If You distribute Covered Software in Executable Form then: 144 + 145 + (a) such Covered Software must also be made available in Source Code Form, 146 + as described in Section 3.1, and You must inform recipients of the Executable 147 + Form how they can obtain a copy of such Source Code Form by reasonable means 148 + in a timely manner, at a charge no more than the cost of distribution to the 149 + recipient; and 150 + 151 + (b) You may distribute such Executable Form under the terms of this License, 152 + or sublicense it under different terms, provided that the license for the 153 + Executable Form does not attempt to limit or alter the recipients' rights 154 + in the Source Code Form under this License. 155 + 156 + 3.3. Distribution of a Larger Work 157 + 158 + You may create and distribute a Larger Work under terms of Your choice, provided 159 + that You also comply with the requirements of this License for the Covered 160 + Software. If the Larger Work is a combination of Covered Software with a work 161 + governed by one or more Secondary Licenses, and the Covered Software is not 162 + Incompatible With Secondary Licenses, this License permits You to additionally 163 + distribute such Covered Software under the terms of such Secondary License(s), 164 + so that the recipient of the Larger Work may, at their option, further distribute 165 + the Covered Software under the terms of either this License or such Secondary 166 + License(s). 167 + 168 + 3.4. Notices 169 + 170 + You may not remove or alter the substance of any license notices (including 171 + copyright notices, patent notices, disclaimers of warranty, or limitations 172 + of liability) contained within the Source Code Form of the Covered Software, 173 + except that You may alter any license notices to the extent required to remedy 174 + known factual inaccuracies. 175 + 176 + 3.5. Application of Additional Terms 177 + 178 + You may choose to offer, and to charge a fee for, warranty, support, indemnity 179 + or liability obligations to one or more recipients of Covered Software. However, 180 + You may do so only on Your own behalf, and not on behalf of any Contributor. 181 + You must make it absolutely clear that any such warranty, support, indemnity, 182 + or liability obligation is offered by You alone, and You hereby agree to indemnify 183 + every Contributor for any liability incurred by such Contributor as a result 184 + of warranty, support, indemnity or liability terms You offer. You may include 185 + additional disclaimers of warranty and limitations of liability specific to 186 + any jurisdiction. 187 + 188 + 4. Inability to Comply Due to Statute or Regulation 189 + 190 + If it is impossible for You to comply with any of the terms of this License 191 + with respect to some or all of the Covered Software due to statute, judicial 192 + order, or regulation then You must: (a) comply with the terms of this License 193 + to the maximum extent possible; and (b) describe the limitations and the code 194 + they affect. Such description must be placed in a text file included with 195 + all distributions of the Covered Software under this License. Except to the 196 + extent prohibited by statute or regulation, such description must be sufficiently 197 + detailed for a recipient of ordinary skill to be able to understand it. 198 + 199 + 5. Termination 200 + 201 + 5.1. The rights granted under this License will terminate automatically if 202 + You fail to comply with any of its terms. However, if You become compliant, 203 + then the rights granted under this License from a particular Contributor are 204 + reinstated (a) provisionally, unless and until such Contributor explicitly 205 + and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor 206 + fails to notify You of the non-compliance by some reasonable means prior to 207 + 60 days after You have come back into compliance. Moreover, Your grants from 208 + a particular Contributor are reinstated on an ongoing basis if such Contributor 209 + notifies You of the non-compliance by some reasonable means, this is the first 210 + time You have received notice of non-compliance with this License from such 211 + Contributor, and You become compliant prior to 30 days after Your receipt 212 + of the notice. 213 + 214 + 5.2. If You initiate litigation against any entity by asserting a patent infringement 215 + claim (excluding declaratory judgment actions, counter-claims, and cross-claims) 216 + alleging that a Contributor Version directly or indirectly infringes any patent, 217 + then the rights granted to You by any and all Contributors for the Covered 218 + Software under Section 2.1 of this License shall terminate. 219 + 220 + 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end 221 + user license agreements (excluding distributors and resellers) which have 222 + been validly granted by You or Your distributors under this License prior 223 + to termination shall survive termination. 224 + 225 + 6. Disclaimer of Warranty 226 + 227 + Covered Software is provided under this License on an "as is" basis, without 228 + warranty of any kind, either expressed, implied, or statutory, including, 229 + without limitation, warranties that the Covered Software is free of defects, 230 + merchantable, fit for a particular purpose or non-infringing. The entire risk 231 + as to the quality and performance of the Covered Software is with You. Should 232 + any Covered Software prove defective in any respect, You (not any Contributor) 233 + assume the cost of any necessary servicing, repair, or correction. This disclaimer 234 + of warranty constitutes an essential part of this License. No use of any Covered 235 + Software is authorized under this License except under this disclaimer. 236 + 237 + 7. Limitation of Liability 238 + 239 + Under no circumstances and under no legal theory, whether tort (including 240 + negligence), contract, or otherwise, shall any Contributor, or anyone who 241 + distributes Covered Software as permitted above, be liable to You for any 242 + direct, indirect, special, incidental, or consequential damages of any character 243 + including, without limitation, damages for lost profits, loss of goodwill, 244 + work stoppage, computer failure or malfunction, or any and all other commercial 245 + damages or losses, even if such party shall have been informed of the possibility 246 + of such damages. This limitation of liability shall not apply to liability 247 + for death or personal injury resulting from such party's negligence to the 248 + extent applicable law prohibits such limitation. Some jurisdictions do not 249 + allow the exclusion or limitation of incidental or consequential damages, 250 + so this exclusion and limitation may not apply to You. 251 + 252 + 8. Litigation 253 + 254 + Any litigation relating to this License may be brought only in the courts 255 + of a jurisdiction where the defendant maintains its principal place of business 256 + and such litigation shall be governed by laws of that jurisdiction, without 257 + reference to its conflict-of-law provisions. Nothing in this Section shall 258 + prevent a party's ability to bring cross-claims or counter-claims. 259 + 260 + 9. Miscellaneous 261 + 262 + This License represents the complete agreement concerning the subject matter 263 + hereof. If any provision of this License is held to be unenforceable, such 264 + provision shall be reformed only to the extent necessary to make it enforceable. 265 + Any law or regulation which provides that the language of a contract shall 266 + be construed against the drafter shall not be used to construe this License 267 + against a Contributor. 268 + 269 + 10. Versions of the License 270 + 271 + 10.1. New Versions 272 + 273 + Mozilla Foundation is the license steward. Except as provided in Section 10.3, 274 + no one other than the license steward has the right to modify or publish new 275 + versions of this License. Each version will be given a distinguishing version 276 + number. 277 + 278 + 10.2. Effect of New Versions 279 + 280 + You may distribute the Covered Software under the terms of the version of 281 + the License under which You originally received the Covered Software, or under 282 + the terms of any subsequent version published by the license steward. 283 + 284 + 10.3. Modified Versions 285 + 286 + If you create software not governed by this License, and you want to create 287 + a new license for such software, you may create and use a modified version 288 + of this License if you rename the license and remove any references to the 289 + name of the license steward (except to note that such modified license differs 290 + from this License). 291 + 292 + 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses 293 + 294 + If You choose to distribute Source Code Form that is Incompatible With Secondary 295 + Licenses under the terms of this version of the License, the notice described 296 + in Exhibit B of this License must be attached. Exhibit A - Source Code Form 297 + License Notice 298 + 299 + This Source Code Form is subject to the terms of the Mozilla Public License, 300 + v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain 301 + one at http://mozilla.org/MPL/2.0/. 302 + 303 + If it is not possible or desirable to put the notice in a particular file, 304 + then You may include the notice in a location (such as a LICENSE file in a 305 + relevant directory) where a recipient would be likely to look for such a notice. 306 + 307 + You may add additional accurate notices of copyright ownership. 308 + 309 + Exhibit B - "Incompatible With Secondary Licenses" Notice 310 + 311 + This Source Code Form is "Incompatible With Secondary Licenses", as defined 312 + by the Mozilla Public License, v. 2.0.
+6
internal/jsonfeed/README.md
··· 1 + # jsonfeed 2 + 3 + [![Go Report Card](https://goreportcard.com/badge/christine.website/jsonfeed)](https://goreportcard.com/report/christine.website/jsonfeed) 4 + [![Build Status](https://drone.tulpa.dev/api/badges/Xe/jsonfeed/status.svg)](https://drone.tulpa.dev/Xe/jsonfeed) 5 + 6 + JSONFeed support for Go
+77
internal/jsonfeed/jsonfeed.go
··· 1 + // This Source Code Form is subject to the terms of the Mozilla Public 2 + // License, v. 2.0. If a copy of the MPL was not distributed with this 3 + // file, You can obtain one at http://mozilla.org/MPL/2.0/ 4 + 5 + package jsonfeed 6 + 7 + import ( 8 + "encoding/json" 9 + "io" 10 + "time" 11 + ) 12 + 13 + const CurrentVersion = "https://jsonfeed.org/version/1" 14 + 15 + type Item struct { 16 + ID string `json:"id"` 17 + URL string `json:"url"` 18 + ExternalURL string `json:"external_url"` 19 + Title string `json:"title"` 20 + ContentHTML string `json:"content_html"` 21 + ContentText string `json:"content_text"` 22 + Summary string `json:"summary"` 23 + Image string `json:"image"` 24 + BannerImage string `json:"banner_image"` 25 + DatePublished time.Time `json:"date_published"` 26 + DateModified time.Time `json:"date_modified"` 27 + Author Author `json:"author"` 28 + Authors []Author `json:"authors"` 29 + Tags []string `json:"tags"` 30 + Attachments []Attachment `json:"attachments"` 31 + } 32 + 33 + type Author struct { 34 + Name string `json:"name"` 35 + URL string `json:"url"` 36 + Avatar string `json:"avatar"` 37 + } 38 + 39 + type Hub struct { 40 + Type string `json:"type"` 41 + URL string `json:"url"` 42 + } 43 + 44 + type Attachment struct { 45 + URL string `json:"url"` 46 + MIMEType string `json:"mime_type"` 47 + Title string `json:"title"` 48 + SizeInBytes int32 `json:"size_in_bytes"` 49 + DurationInSeconds int32 `json:"duration_in_seconds"` 50 + } 51 + 52 + type Feed struct { 53 + Version string `json:"version"` 54 + Title string `json:"title"` 55 + HomePageURL string `json:"home_page_url"` 56 + FeedURL string `json:"feed_url"` 57 + Description string `json:"description"` 58 + UserComment string `json:"user_comment"` 59 + NextURL string `json:"next_url"` 60 + Icon string `json:"icon"` 61 + Favicon string `json:"favicon"` 62 + Author Author `json:"author"` 63 + Authors []Author `json:"authors"` 64 + Language string `json:"language"` 65 + Expired bool `json:"expired"` 66 + Hubs []Hub `json:"hubs"` 67 + Items []Item `json:"items"` 68 + } 69 + 70 + func Parse(r io.Reader) (Feed, error) { 71 + var feed Feed 72 + decoder := json.NewDecoder(r) 73 + if err := decoder.Decode(&feed); err != nil { 74 + return Feed{}, err 75 + } 76 + return feed, nil 77 + }
+42
internal/jsonfeed/jsonfeed_test.go
··· 1 + // This Source Code Form is subject to the terms of the Mozilla Public 2 + // License, v. 2.0. If a copy of the MPL was not distributed with this 3 + // file, You can obtain one at http://mozilla.org/MPL/2.0/ 4 + 5 + package jsonfeed 6 + 7 + import ( 8 + "os" 9 + "testing" 10 + "time" 11 + 12 + "github.com/stretchr/testify/assert" 13 + ) 14 + 15 + func TestParseSimple(t *testing.T) { 16 + r, err := os.Open("testdata/feed.json") 17 + assert.NoError(t, err, "Could not open testdata/feed.json") 18 + 19 + feed, err := Parse(r) 20 + assert.NoError(t, err, "Could not parse testdata/feed.json") 21 + 22 + assert.Equal(t, "https://jsonfeed.org/version/1", feed.Version) 23 + assert.Equal(t, "JSON Feed", feed.Title) 24 + assert.Equal(t, "JSON Feed is a ...", feed.Description) 25 + assert.Equal(t, "https://jsonfeed.org/", feed.HomePageURL) 26 + assert.Equal(t, "https://jsonfeed.org/feed.json", feed.FeedURL) 27 + assert.Equal(t, "This feed allows ...", feed.UserComment) 28 + assert.Equal(t, "https://jsonfeed.org/graphics/icon.png", feed.Favicon) 29 + assert.Equal(t, "Brent Simmons and Manton Reece", feed.Author.Name) 30 + 31 + assert.Equal(t, 1, len(feed.Items)) 32 + 33 + assert.Equal(t, "https://jsonfeed.org/2017/05/17/announcing_json_feed", feed.Items[0].ID) 34 + assert.Equal(t, "https://jsonfeed.org/2017/05/17/announcing_json_feed", feed.Items[0].URL) 35 + assert.Equal(t, "Announcing JSON Feed", feed.Items[0].Title) 36 + assert.Equal(t, "<p>We ...", feed.Items[0].ContentHTML) 37 + 38 + datePublished, err := time.Parse("2006-01-02T15:04:05-07:00", "2017-05-17T08:02:12-07:00") 39 + assert.NoError(t, err, "Could not parse timestamp") 40 + 41 + assert.Equal(t, datePublished, feed.Items[0].DatePublished) 42 + }
+21
internal/jsonfeed/testdata/feed.json
··· 1 + { 2 + "version": "https://jsonfeed.org/version/1", 3 + "title": "JSON Feed", 4 + "description": "JSON Feed is a ...", 5 + "home_page_url": "https://jsonfeed.org/", 6 + "feed_url": "https://jsonfeed.org/feed.json", 7 + "user_comment": "This feed allows ...", 8 + "favicon": "https://jsonfeed.org/graphics/icon.png", 9 + "author": { 10 + "name": "Brent Simmons and Manton Reece" 11 + }, 12 + "items": [ 13 + { 14 + "id": "https://jsonfeed.org/2017/05/17/announcing_json_feed", 15 + "url": "https://jsonfeed.org/2017/05/17/announcing_json_feed", 16 + "title": "Announcing JSON Feed", 17 + "content_html": "<p>We ...", 18 + "date_published": "2017-05-17T08:02:12-07:00" 19 + } 20 + ] 21 + }
+1 -1
lume/_config.ts
··· 4 4 import nunjucks from "lume/plugins/nunjucks.ts"; 5 5 import date from "lume/plugins/date.ts"; 6 6 import esbuild from "lume/plugins/esbuild.ts"; 7 - import feed from "lume/plugins/feed.ts"; 8 7 import mdx from "lume/plugins/mdx.ts"; 9 8 import tailwindcss from "lume/plugins/tailwindcss.ts"; 10 9 import postcss from "lume/plugins/postcss.ts"; ··· 12 11 import readInfo from "lume/plugins/reading_info.ts"; 13 12 14 13 import annotateYear from "./plugins/annotate_year.ts"; 14 + import feed from "./plugins/feed.ts"; 15 15 16 16 //import pagefind from "lume/plugins/pagefind.ts"; 17 17 //import _ from "npm:@pagefind/linux-x64";
+279
lume/plugins/feed.ts
··· 1 + import { getExtension } from "lume/core/utils/path.ts"; 2 + import { merge } from "lume/core/utils/object.ts"; 3 + import { getCurrentVersion } from "lume/core/utils/lume_version.ts"; 4 + import { getDataValue } from "lume/core/utils/data_values.ts"; 5 + import { $XML, stringify } from "lume/deps/xml.ts"; 6 + import { Page } from "lume/core/file.ts"; 7 + 8 + import type Site from "lume/core/site.ts"; 9 + import type { Data } from "lume/core/file.ts"; 10 + 11 + export interface Options { 12 + /** The output filenames */ 13 + output?: string | string[]; 14 + 15 + /** The query to search the pages */ 16 + query?: string; 17 + 18 + /** The sort order */ 19 + sort?: string; 20 + 21 + /** The maximum number of items */ 22 + limit?: number; 23 + 24 + /** The feed info */ 25 + info?: FeedInfoOptions; 26 + 27 + /** The feed items configuration */ 28 + items?: FeedItemOptions; 29 + } 30 + 31 + export interface FeedInfoOptions { 32 + /** The feed title */ 33 + title?: string; 34 + 35 + /** The feed subtitle */ 36 + subtitle?: string; 37 + 38 + /** 39 + * The feed published date 40 + * @default `new Date()` 41 + */ 42 + published?: Date; 43 + 44 + /** The feed description */ 45 + description?: string; 46 + 47 + /** The feed language */ 48 + lang?: string; 49 + 50 + /** The feed generator. Set `true` to generate automatically */ 51 + generator?: string | boolean; 52 + } 53 + 54 + export interface FeedItemOptions { 55 + /** The item title */ 56 + title?: string | ((data: Data) => string | undefined); 57 + 58 + /** The item description */ 59 + description?: string | ((data: Data) => string | undefined); 60 + 61 + /** The item published date */ 62 + published?: string | ((data: Data) => Date | undefined); 63 + 64 + /** The item updated date */ 65 + updated?: string | ((data: Data) => Date | undefined); 66 + 67 + /** The item content */ 68 + content?: string | ((data: Data) => string | undefined); 69 + 70 + /** The item language */ 71 + lang?: string | ((data: Data) => string | undefined); 72 + } 73 + 74 + export const defaults: Options = { 75 + /** The output filenames */ 76 + output: "/feed.rss", 77 + 78 + /** The query to search the pages */ 79 + query: "", 80 + 81 + /** The sort order */ 82 + sort: "date=desc", 83 + 84 + /** The maximum number of items */ 85 + limit: 10, 86 + 87 + /** The feed info */ 88 + info: { 89 + title: "My RSS Feed", 90 + published: new Date(), 91 + description: "", 92 + lang: "en", 93 + generator: true, 94 + }, 95 + items: { 96 + title: "=title", 97 + description: "=description", 98 + published: "=date", 99 + content: "=children", 100 + lang: "=lang", 101 + }, 102 + }; 103 + 104 + export interface FeedData { 105 + title: string; 106 + url: string; 107 + description: string; 108 + published: Date; 109 + lang: string; 110 + generator?: string; 111 + items: FeedItem[]; 112 + } 113 + 114 + export interface FeedItem { 115 + title: string; 116 + url: string; 117 + description: string; 118 + published: Date; 119 + updated?: Date; 120 + content: string; 121 + lang: string; 122 + } 123 + 124 + const defaultGenerator = `Lume ${getCurrentVersion()}`; 125 + 126 + export default function (userOptions?: Options) { 127 + const options = merge(defaults, userOptions); 128 + 129 + return (site: Site) => { 130 + site.addEventListener("beforeSave", () => { 131 + const output = Array.isArray(options.output) 132 + ? options.output 133 + : [options.output]; 134 + 135 + const pages = site.search.pages( 136 + options.query, 137 + options.sort, 138 + options.limit, 139 + ) as Data[]; 140 + 141 + const { info, items } = options; 142 + const rootData = site.source.data.get("/") || {}; 143 + 144 + const feed: FeedData = { 145 + title: getDataValue(rootData, info.title), 146 + description: getDataValue(rootData, info.description), 147 + published: getDataValue(rootData, info.published), 148 + lang: getDataValue(rootData, info.lang), 149 + url: site.url("", true), 150 + generator: info.generator === true 151 + ? defaultGenerator 152 + : info.generator || undefined, 153 + items: pages.map((data): FeedItem => { 154 + const content = getDataValue(data, items.content)?.toString(); 155 + const pageUrl = site.url(data.url, true); 156 + const fixedContent = fixUrls(new URL(pageUrl), content || ""); 157 + 158 + return { 159 + title: getDataValue(data, items.title), 160 + url: site.url(data.url, true), 161 + description: getDataValue(data, items.description), 162 + published: getDataValue(data, items.published), 163 + updated: getDataValue(data, items.updated), 164 + content: fixedContent, 165 + lang: getDataValue(data, items.lang), 166 + }; 167 + }), 168 + }; 169 + 170 + for (const filename of output) { 171 + const format = getExtension(filename).slice(1); 172 + const file = site.url(filename, true); 173 + 174 + switch (format) { 175 + case "rss": 176 + case "feed": 177 + case "xml": 178 + site.pages.push( 179 + Page.create({ url: filename, content: generateRss(feed, file) }), 180 + ); 181 + break; 182 + 183 + case "json": 184 + site.pages.push( 185 + Page.create({ url: filename, content: generateJson(feed, file) }), 186 + ); 187 + break; 188 + 189 + default: 190 + throw new Error(`Invalid Feed format "${format}"`); 191 + } 192 + } 193 + }); 194 + }; 195 + } 196 + 197 + function fixUrls(base: URL, html: string): string { 198 + return html.replaceAll( 199 + /\s(href|src)="([^"]+)"/g, 200 + (_match, attr, value) => ` ${attr}="${new URL(value, base).href}"`, 201 + ); 202 + } 203 + 204 + function generateRss(data: FeedData, file: string): string { 205 + const feed = { 206 + [$XML]: { cdata: [["rss", "channel", "item", "content:encoded"]] }, 207 + xml: { 208 + "@version": "1.0", 209 + "@encoding": "UTF-8", 210 + }, 211 + rss: { 212 + "@xmlns:content": "http://purl.org/rss/1.0/modules/content/", 213 + "@xmlns:wfw": "http://wellformedweb.org/CommentAPI/", 214 + "@xmlns:dc": "http://purl.org/dc/elements/1.1/", 215 + "@xmlns:atom": "http://www.w3.org/2005/Atom", 216 + "@xmlns:sy": "http://purl.org/rss/1.0/modules/syndication/", 217 + "@xmlns:slash": "http://purl.org/rss/1.0/modules/slash/", 218 + "@version": "2.0", 219 + channel: clean({ 220 + title: data.title, 221 + link: data.url, 222 + "atom:link": { 223 + "@href": file, 224 + "@rel": "self", 225 + "@type": "application/rss+xml", 226 + }, 227 + description: data.description, 228 + lastBuildDate: data.published.toUTCString(), 229 + language: data.lang, 230 + generator: data.generator, 231 + item: data.items.map((item) => 232 + clean({ 233 + title: item.title, 234 + link: item.url, 235 + guid: { 236 + "@isPermaLink": false, 237 + "#text": item.url, 238 + }, 239 + description: item.description, 240 + "content:encoded": item.content, 241 + pubDate: item.published.toUTCString(), 242 + "atom:updated": item.updated?.toISOString(), 243 + }) 244 + ), 245 + }), 246 + }, 247 + }; 248 + 249 + return stringify(feed); 250 + } 251 + 252 + function generateJson(data: FeedData, file: string): string { 253 + const feed = clean({ 254 + version: "https://jsonfeed.org/version/1", 255 + title: data.title, 256 + home_page_url: data.url, 257 + feed_url: file, 258 + description: data.description, 259 + items: data.items.map((item) => 260 + clean({ 261 + id: item.url, 262 + url: item.url, 263 + title: item.title, 264 + content_html: item.content, 265 + date_published: item.published.toISOString(), 266 + date_modified: item.updated?.toISOString(), 267 + }) 268 + ), 269 + }); 270 + 271 + return JSON.stringify(feed); 272 + } 273 + 274 + /** Remove undefined values of an object */ 275 + function clean(obj: Record<string, unknown>) { 276 + return Object.fromEntries( 277 + Object.entries(obj).filter(([, value]) => value !== undefined), 278 + ); 279 + }
+4 -4
pb/external/protofeed.proto
··· 1 1 syntax = "proto3"; 2 - package xeiaso.net.protofeed; 2 + package protofeed; 3 3 option go_package = "xeiaso.net/v4/pb/external/protofeed"; 4 4 5 5 import "google/protobuf/timestamp.proto"; ··· 140 140 // item. Attachments are files that are associated with an item. The value of 141 141 // the attachments field is an array of objects, each of which has a url 142 142 // field, and other fields as specified in the attachment object definition. 143 - repeated Attachement attachments = 15; 143 + repeated Attachment attachments = 15; 144 144 } 145 145 146 - // Attachement is an object representing a file associated with an item. 147 - message Attachement { 146 + // Attachment is an object representing a file associated with an item. 147 + message Attachment { 148 148 // (required, string) specifies the location of the attachment. 149 149 string url = 1; 150 150 // (required, string) specifies the type of the attachment, such as
+103 -107
pb/external/protofeed/protofeed.pb.go
··· 331 331 // item. Attachments are files that are associated with an item. The value of 332 332 // the attachments field is an array of objects, each of which has a url 333 333 // field, and other fields as specified in the attachment object definition. 334 - Attachments []*Attachement `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"` 334 + Attachments []*Attachment `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"` 335 335 } 336 336 337 337 func (x *Item) Reset() { ··· 464 464 return "" 465 465 } 466 466 467 - func (x *Item) GetAttachments() []*Attachement { 467 + func (x *Item) GetAttachments() []*Attachment { 468 468 if x != nil { 469 469 return x.Attachments 470 470 } 471 471 return nil 472 472 } 473 473 474 - // Attachement is an object representing a file associated with an item. 475 - type Attachement struct { 474 + // Attachment is an object representing a file associated with an item. 475 + type Attachment struct { 476 476 state protoimpl.MessageState 477 477 sizeCache protoimpl.SizeCache 478 478 unknownFields protoimpl.UnknownFields ··· 491 491 DurationInSeconds int32 `protobuf:"varint,5,opt,name=duration_in_seconds,json=durationInSeconds,proto3" json:"duration_in_seconds,omitempty"` 492 492 } 493 493 494 - func (x *Attachement) Reset() { 495 - *x = Attachement{} 494 + func (x *Attachment) Reset() { 495 + *x = Attachment{} 496 496 if protoimpl.UnsafeEnabled { 497 497 mi := &file_protofeed_proto_msgTypes[3] 498 498 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ··· 500 500 } 501 501 } 502 502 503 - func (x *Attachement) String() string { 503 + func (x *Attachment) String() string { 504 504 return protoimpl.X.MessageStringOf(x) 505 505 } 506 506 507 - func (*Attachement) ProtoMessage() {} 507 + func (*Attachment) ProtoMessage() {} 508 508 509 - func (x *Attachement) ProtoReflect() protoreflect.Message { 509 + func (x *Attachment) ProtoReflect() protoreflect.Message { 510 510 mi := &file_protofeed_proto_msgTypes[3] 511 511 if protoimpl.UnsafeEnabled && x != nil { 512 512 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ··· 518 518 return mi.MessageOf(x) 519 519 } 520 520 521 - // Deprecated: Use Attachement.ProtoReflect.Descriptor instead. 522 - func (*Attachement) Descriptor() ([]byte, []int) { 521 + // Deprecated: Use Attachment.ProtoReflect.Descriptor instead. 522 + func (*Attachment) Descriptor() ([]byte, []int) { 523 523 return file_protofeed_proto_rawDescGZIP(), []int{3} 524 524 } 525 525 526 - func (x *Attachement) GetUrl() string { 526 + func (x *Attachment) GetUrl() string { 527 527 if x != nil { 528 528 return x.Url 529 529 } 530 530 return "" 531 531 } 532 532 533 - func (x *Attachement) GetMimeType() string { 533 + func (x *Attachment) GetMimeType() string { 534 534 if x != nil { 535 535 return x.MimeType 536 536 } 537 537 return "" 538 538 } 539 539 540 - func (x *Attachement) GetTitle() string { 540 + func (x *Attachment) GetTitle() string { 541 541 if x != nil { 542 542 return x.Title 543 543 } 544 544 return "" 545 545 } 546 546 547 - func (x *Attachement) GetSizeInBytes() int32 { 547 + func (x *Attachment) GetSizeInBytes() int32 { 548 548 if x != nil { 549 549 return x.SizeInBytes 550 550 } 551 551 return 0 552 552 } 553 553 554 - func (x *Attachement) GetDurationInSeconds() int32 { 554 + func (x *Attachment) GetDurationInSeconds() int32 { 555 555 if x != nil { 556 556 return x.DurationInSeconds 557 557 } ··· 562 562 563 563 var file_protofeed_proto_rawDesc = []byte{ 564 564 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 565 - 0x6f, 0x12, 0x14, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 566 - 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 567 - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 568 - 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xee, 0x02, 0x0a, 0x04, 0x46, 0x65, 0x65, 569 - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 570 - 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x6d, 0x65, 0x5f, 571 - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 572 - 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x66, 573 - 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 574 - 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 575 - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 576 - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 577 - 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 578 - 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69, 579 - 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 580 - 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 581 - 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74, 582 - 0x68, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69, 583 - 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 584 - 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 585 - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 586 - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 587 - 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 588 - 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 589 - 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 590 - 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x49, 0x74, 591 - 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x41, 0x75, 0x74, 592 - 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 593 - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 594 - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 595 - 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 596 - 0x72, 0x22, 0xab, 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 597 - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 598 - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 599 - 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 600 - 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 601 - 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 602 - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 603 - 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 604 - 0x74, 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 605 - 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 606 - 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 607 - 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 608 - 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 609 - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 610 - 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 611 - 0x09, 0x52, 0x0b, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x41, 612 - 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 613 - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 614 - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 615 - 0x6d, 0x70, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 616 - 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 617 - 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 618 - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 619 - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 620 - 0x65, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0c, 0x20, 621 - 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 622 - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 623 - 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 624 - 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 625 - 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 626 - 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x61, 0x74, 627 - 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 628 - 0x21, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 629 - 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x6d, 0x65, 630 - 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 631 - 0xa6, 0x01, 0x0a, 0x0b, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 632 - 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 633 - 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 634 - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 635 - 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 636 - 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 637 - 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x69, 0x7a, 638 - 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x75, 0x72, 0x61, 639 - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 640 - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 641 - 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x25, 0x5a, 0x23, 0x78, 0x65, 0x69, 0x61, 642 - 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x74, 643 - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x62, 644 - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 565 + 0x6f, 0x12, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x1a, 0x1f, 0x67, 0x6f, 566 + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 567 + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x02, 568 + 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 569 + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 570 + 0x68, 0x6f, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 571 + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 572 + 0x12, 0x19, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 573 + 0x28, 0x09, 0x52, 0x07, 0x66, 0x65, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 574 + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 575 + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 576 + 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 577 + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 578 + 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 579 + 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x18, 580 + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x2b, 581 + 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 582 + 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 583 + 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 584 + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 585 + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 586 + 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 587 + 0x64, 0x12, 0x25, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 588 + 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x49, 0x74, 0x65, 589 + 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x41, 0x75, 0x74, 0x68, 590 + 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 591 + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 592 + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 593 + 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 594 + 0x22, 0x94, 0x04, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 595 + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 596 + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x65, 597 + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 598 + 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x14, 599 + 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 600 + 0x69, 0x74, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 601 + 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 602 + 0x65, 0x6e, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 603 + 0x6e, 0x74, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 604 + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x74, 0x6d, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 605 + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 606 + 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 607 + 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x61, 608 + 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 609 + 0x52, 0x0b, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x41, 0x0a, 610 + 0x0e, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 611 + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 612 + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 613 + 0x70, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 614 + 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 615 + 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 616 + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 617 + 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 618 + 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x18, 0x0c, 0x20, 0x03, 619 + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x41, 620 + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x12, 0x12, 621 + 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 622 + 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0e, 623 + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x37, 624 + 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0f, 0x20, 625 + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 626 + 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 627 + 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 628 + 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 629 + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 630 + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 631 + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 632 + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 633 + 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 634 + 0x28, 0x05, 0x52, 0x0b, 0x73, 0x69, 0x7a, 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 635 + 0x2e, 0x0a, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, 636 + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x64, 0x75, 637 + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 638 + 0x25, 0x5a, 0x23, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 639 + 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 640 + 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 645 641 } 646 642 647 643 var ( ··· 658 654 659 655 var file_protofeed_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 660 656 var file_protofeed_proto_goTypes = []interface{}{ 661 - (*Feed)(nil), // 0: xeiaso.net.protofeed.Feed 662 - (*Author)(nil), // 1: xeiaso.net.protofeed.Author 663 - (*Item)(nil), // 2: xeiaso.net.protofeed.Item 664 - (*Attachement)(nil), // 3: xeiaso.net.protofeed.Attachement 657 + (*Feed)(nil), // 0: protofeed.Feed 658 + (*Author)(nil), // 1: protofeed.Author 659 + (*Item)(nil), // 2: protofeed.Item 660 + (*Attachment)(nil), // 3: protofeed.Attachment 665 661 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp 666 662 } 667 663 var file_protofeed_proto_depIdxs = []int32{ 668 - 1, // 0: xeiaso.net.protofeed.Feed.authors:type_name -> xeiaso.net.protofeed.Author 669 - 2, // 1: xeiaso.net.protofeed.Feed.items:type_name -> xeiaso.net.protofeed.Item 670 - 4, // 2: xeiaso.net.protofeed.Item.date_published:type_name -> google.protobuf.Timestamp 671 - 4, // 3: xeiaso.net.protofeed.Item.date_modified:type_name -> google.protobuf.Timestamp 672 - 1, // 4: xeiaso.net.protofeed.Item.authors:type_name -> xeiaso.net.protofeed.Author 673 - 3, // 5: xeiaso.net.protofeed.Item.attachments:type_name -> xeiaso.net.protofeed.Attachement 664 + 1, // 0: protofeed.Feed.authors:type_name -> protofeed.Author 665 + 2, // 1: protofeed.Feed.items:type_name -> protofeed.Item 666 + 4, // 2: protofeed.Item.date_published:type_name -> google.protobuf.Timestamp 667 + 4, // 3: protofeed.Item.date_modified:type_name -> google.protobuf.Timestamp 668 + 1, // 4: protofeed.Item.authors:type_name -> protofeed.Author 669 + 3, // 5: protofeed.Item.attachments:type_name -> protofeed.Attachment 674 670 6, // [6:6] is the sub-list for method output_type 675 671 6, // [6:6] is the sub-list for method input_type 676 672 6, // [6:6] is the sub-list for extension type_name ··· 721 717 } 722 718 } 723 719 file_protofeed_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 724 - switch v := v.(*Attachement); i { 720 + switch v := v.(*Attachment); i { 725 721 case 0: 726 722 return &v.state 727 723 case 1:
+37 -37
pb/openapi.json
··· 1 1 { 2 2 "components": { 3 3 "schemas": { 4 - "xeiaso.net.BuildInfo": { 5 - "description": "BuildInfo contains metadata about a build of the site.", 6 - "properties": { 7 - "build_time": { 8 - "description": "When the site was last rebuilt", 9 - "format": "date-time", 10 - "type": "string" 11 - }, 12 - "commit": { 13 - "description": "The commit of Xe/site that was built", 14 - "type": "string" 15 - }, 16 - "deno_version": { 17 - "description": "The version of Deno used to build the site", 18 - "type": "string" 19 - }, 20 - "go_version": { 21 - "description": "The version of Go running on the server", 22 - "type": "string" 23 - }, 24 - "xesite_version": { 25 - "description": "The version of the xesite binary", 26 - "type": "string" 27 - } 28 - }, 29 - "type": "object" 30 - }, 31 - "xeiaso.net.protofeed.Attachement": { 32 - "description": "Attachement is an object representing a file associated with an item.", 4 + "protofeed.Attachment": { 5 + "description": "Attachment is an object representing a file associated with an item.", 33 6 "properties": { 34 7 "duration_in_seconds": { 35 8 "description": "(optional, number) specifies how long it takes to listen to or watch, when\nplayed at normal speed.", ··· 56 29 }, 57 30 "type": "object" 58 31 }, 59 - "xeiaso.net.protofeed.Author": { 32 + "protofeed.Author": { 60 33 "description": "Author is an object representing the author of the feed or item.", 61 34 "properties": { 62 35 "avatar": { ··· 74 47 }, 75 48 "type": "object" 76 49 }, 77 - "xeiaso.net.protofeed.Feed": { 50 + "protofeed.Feed": { 78 51 "description": "Feed is the root of a Proto Feed document. A feed must at least contain a\ntitle and items.", 79 52 "properties": { 80 53 "authors": { 81 54 "description": "(optional, array of objects) specifies the feed authors.", 82 55 "items": { 83 - "$ref": "#/components/schemas/xeiaso.net.protofeed.Author" 56 + "$ref": "#/components/schemas/protofeed.Author" 84 57 }, 85 58 "type": "array" 86 59 }, ··· 111 84 "items": { 112 85 "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.", 113 86 "items": { 114 - "$ref": "#/components/schemas/xeiaso.net.protofeed.Item" 87 + "$ref": "#/components/schemas/protofeed.Item" 115 88 }, 116 89 "type": "array" 117 90 }, ··· 130 103 }, 131 104 "type": "object" 132 105 }, 133 - "xeiaso.net.protofeed.Item": { 106 + "protofeed.Item": { 134 107 "description": "Item is an object representing a single story, blog post, article,\nphotograph, video, or other thing within a feed.", 135 108 "properties": { 136 109 "attachments": { 137 110 "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.", 138 111 "items": { 139 - "$ref": "#/components/schemas/xeiaso.net.protofeed.Attachement" 112 + "$ref": "#/components/schemas/protofeed.Attachment" 140 113 }, 141 114 "type": "array" 142 115 }, 143 116 "authors": { 144 117 "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.", 145 118 "items": { 146 - "$ref": "#/components/schemas/xeiaso.net.protofeed.Author" 119 + "$ref": "#/components/schemas/protofeed.Author" 147 120 }, 148 121 "type": "array" 149 122 }, ··· 207 180 } 208 181 }, 209 182 "type": "object" 183 + }, 184 + "xeiaso.net.BuildInfo": { 185 + "description": "BuildInfo contains metadata about a build of the site.", 186 + "properties": { 187 + "build_time": { 188 + "description": "When the site was last rebuilt", 189 + "format": "date-time", 190 + "type": "string" 191 + }, 192 + "commit": { 193 + "description": "The commit of Xe/site that was built", 194 + "type": "string" 195 + }, 196 + "deno_version": { 197 + "description": "The version of Deno used to build the site", 198 + "type": "string" 199 + }, 200 + "go_version": { 201 + "description": "The version of Go running on the server", 202 + "type": "string" 203 + }, 204 + "xesite_version": { 205 + "description": "The version of the xesite binary", 206 + "type": "string" 207 + } 208 + }, 209 + "type": "object" 210 210 } 211 211 } 212 212 }, ··· 229 229 "content": { 230 230 "application/json": { 231 231 "schema": { 232 - "$ref": "#/components/schemas/xeiaso.net.protofeed.Feed" 232 + "$ref": "#/components/schemas/protofeed.Feed" 233 233 } 234 234 } 235 235 },
+7 -7
pb/xesite.pb.go
··· 135 135 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 136 136 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 137 137 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x32, 138 - 0x41, 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x16, 138 + 0x36, 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x16, 139 139 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 140 - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 141 - 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x46, 0x65, 142 - 0x65, 0x64, 0x42, 0x12, 0x5a, 0x10, 0x78, 0x65, 0x69, 0x61, 0x73, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 143 - 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 140 + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x65, 141 + 0x65, 0x64, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x42, 0x12, 0x5a, 0x10, 0x78, 0x65, 0x69, 0x61, 0x73, 142 + 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 143 + 0x74, 0x6f, 0x33, 144 144 } 145 145 146 146 var ( ··· 160 160 (*BuildInfo)(nil), // 0: xeiaso.net.BuildInfo 161 161 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp 162 162 (*emptypb.Empty)(nil), // 2: google.protobuf.Empty 163 - (*protofeed.Feed)(nil), // 3: xeiaso.net.protofeed.Feed 163 + (*protofeed.Feed)(nil), // 3: protofeed.Feed 164 164 } 165 165 var file_xesite_proto_depIdxs = []int32{ 166 166 1, // 0: xeiaso.net.BuildInfo.build_time:type_name -> google.protobuf.Timestamp 167 167 2, // 1: xeiaso.net.Meta.Metadata:input_type -> google.protobuf.Empty 168 168 2, // 2: xeiaso.net.Feed.Get:input_type -> google.protobuf.Empty 169 169 0, // 3: xeiaso.net.Meta.Metadata:output_type -> xeiaso.net.BuildInfo 170 - 3, // 4: xeiaso.net.Feed.Get:output_type -> xeiaso.net.protofeed.Feed 170 + 3, // 4: xeiaso.net.Feed.Get:output_type -> protofeed.Feed 171 171 3, // [3:5] is the sub-list for method output_type 172 172 1, // [1:3] is the sub-list for method input_type 173 173 1, // [1:1] is the sub-list for extension type_name
+1 -1
pb/xesite.proto
··· 31 31 // Feed lets users fetch the current feed of posts. 32 32 service Feed { 33 33 // Get fetches the current feed of posts. 34 - rpc Get(google.protobuf.Empty) returns (xeiaso.net.protofeed.Feed); 34 + rpc Get(google.protobuf.Empty) returns (protofeed.Feed); 35 35 }
+44 -44
pb/xesite.twirp.go
··· 17 17 import ctxsetters "github.com/twitchtv/twirp/ctxsetters" 18 18 19 19 import google_protobuf "google.golang.org/protobuf/types/known/emptypb" 20 - import xeiaso_net_protofeed "xeiaso.net/v4/pb/external/protofeed" 20 + import protofeed "xeiaso.net/v4/pb/external/protofeed" 21 21 22 22 import bytes "bytes" 23 23 import errors "errors" ··· 534 534 // Feed lets users fetch the current feed of posts. 535 535 type Feed interface { 536 536 // Get fetches the current feed of posts. 537 - Get(context.Context, *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) 537 + Get(context.Context, *google_protobuf.Empty) (*protofeed.Feed, error) 538 538 } 539 539 540 540 // ==================== ··· 583 583 } 584 584 } 585 585 586 - func (c *feedProtobufClient) Get(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 586 + func (c *feedProtobufClient) Get(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) { 587 587 ctx = ctxsetters.WithPackageName(ctx, "xeiaso.net") 588 588 ctx = ctxsetters.WithServiceName(ctx, "Feed") 589 589 ctx = ctxsetters.WithMethodName(ctx, "Get") 590 590 caller := c.callGet 591 591 if c.interceptor != nil { 592 - caller = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 592 + caller = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) { 593 593 resp, err := c.interceptor( 594 594 func(ctx context.Context, req interface{}) (interface{}, error) { 595 595 typedReq, ok := req.(*google_protobuf.Empty) ··· 600 600 }, 601 601 )(ctx, req) 602 602 if resp != nil { 603 - typedResp, ok := resp.(*xeiaso_net_protofeed.Feed) 603 + typedResp, ok := resp.(*protofeed.Feed) 604 604 if !ok { 605 - return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor") 605 + return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor") 606 606 } 607 607 return typedResp, err 608 608 } ··· 612 612 return caller(ctx, in) 613 613 } 614 614 615 - func (c *feedProtobufClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 616 - out := new(xeiaso_net_protofeed.Feed) 615 + func (c *feedProtobufClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) { 616 + out := new(protofeed.Feed) 617 617 ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[0], in, out) 618 618 if err != nil { 619 619 twerr, ok := err.(twirp.Error) ··· 675 675 } 676 676 } 677 677 678 - func (c *feedJSONClient) Get(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 678 + func (c *feedJSONClient) Get(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) { 679 679 ctx = ctxsetters.WithPackageName(ctx, "xeiaso.net") 680 680 ctx = ctxsetters.WithServiceName(ctx, "Feed") 681 681 ctx = ctxsetters.WithMethodName(ctx, "Get") 682 682 caller := c.callGet 683 683 if c.interceptor != nil { 684 - caller = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 684 + caller = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) { 685 685 resp, err := c.interceptor( 686 686 func(ctx context.Context, req interface{}) (interface{}, error) { 687 687 typedReq, ok := req.(*google_protobuf.Empty) ··· 692 692 }, 693 693 )(ctx, req) 694 694 if resp != nil { 695 - typedResp, ok := resp.(*xeiaso_net_protofeed.Feed) 695 + typedResp, ok := resp.(*protofeed.Feed) 696 696 if !ok { 697 - return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor") 697 + return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor") 698 698 } 699 699 return typedResp, err 700 700 } ··· 704 704 return caller(ctx, in) 705 705 } 706 706 707 - func (c *feedJSONClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 708 - out := new(xeiaso_net_protofeed.Feed) 707 + func (c *feedJSONClient) callGet(ctx context.Context, in *google_protobuf.Empty) (*protofeed.Feed, error) { 708 + out := new(protofeed.Feed) 709 709 ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[0], in, out) 710 710 if err != nil { 711 711 twerr, ok := err.(twirp.Error) ··· 870 870 871 871 handler := s.Feed.Get 872 872 if s.interceptor != nil { 873 - handler = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 873 + handler = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) { 874 874 resp, err := s.interceptor( 875 875 func(ctx context.Context, req interface{}) (interface{}, error) { 876 876 typedReq, ok := req.(*google_protobuf.Empty) ··· 881 881 }, 882 882 )(ctx, req) 883 883 if resp != nil { 884 - typedResp, ok := resp.(*xeiaso_net_protofeed.Feed) 884 + typedResp, ok := resp.(*protofeed.Feed) 885 885 if !ok { 886 - return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor") 886 + return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor") 887 887 } 888 888 return typedResp, err 889 889 } ··· 892 892 } 893 893 894 894 // Call service method 895 - var respContent *xeiaso_net_protofeed.Feed 895 + var respContent *protofeed.Feed 896 896 func() { 897 897 defer ensurePanicResponses(ctx, resp, s.hooks) 898 898 respContent, err = handler(ctx, reqContent) ··· 903 903 return 904 904 } 905 905 if respContent == nil { 906 - s.writeError(ctx, resp, twirp.InternalError("received a nil *xeiaso_net_protofeed.Feed and nil error while calling Get. nil responses are not supported")) 906 + s.writeError(ctx, resp, twirp.InternalError("received a nil *protofeed.Feed and nil error while calling Get. nil responses are not supported")) 907 907 return 908 908 } 909 909 ··· 951 951 952 952 handler := s.Feed.Get 953 953 if s.interceptor != nil { 954 - handler = func(ctx context.Context, req *google_protobuf.Empty) (*xeiaso_net_protofeed.Feed, error) { 954 + handler = func(ctx context.Context, req *google_protobuf.Empty) (*protofeed.Feed, error) { 955 955 resp, err := s.interceptor( 956 956 func(ctx context.Context, req interface{}) (interface{}, error) { 957 957 typedReq, ok := req.(*google_protobuf.Empty) ··· 962 962 }, 963 963 )(ctx, req) 964 964 if resp != nil { 965 - typedResp, ok := resp.(*xeiaso_net_protofeed.Feed) 965 + typedResp, ok := resp.(*protofeed.Feed) 966 966 if !ok { 967 - return nil, twirp.InternalError("failed type assertion resp.(*xeiaso_net_protofeed.Feed) when calling interceptor") 967 + return nil, twirp.InternalError("failed type assertion resp.(*protofeed.Feed) when calling interceptor") 968 968 } 969 969 return typedResp, err 970 970 } ··· 973 973 } 974 974 975 975 // Call service method 976 - var respContent *xeiaso_net_protofeed.Feed 976 + var respContent *protofeed.Feed 977 977 func() { 978 978 defer ensurePanicResponses(ctx, resp, s.hooks) 979 979 respContent, err = handler(ctx, reqContent) ··· 984 984 return 985 985 } 986 986 if respContent == nil { 987 - s.writeError(ctx, resp, twirp.InternalError("received a nil *xeiaso_net_protofeed.Feed and nil error while calling Get. nil responses are not supported")) 987 + s.writeError(ctx, resp, twirp.InternalError("received a nil *protofeed.Feed and nil error while calling Get. nil responses are not supported")) 988 988 return 989 989 } 990 990 ··· 1589 1589 } 1590 1590 1591 1591 var twirpFileDescriptor0 = []byte{ 1592 - // 289 bytes of a gzipped FileDescriptorProto 1593 - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0xc3, 0x40, 1594 - 0x10, 0x85, 0x89, 0xad, 0xc5, 0x4c, 0xab, 0xc8, 0x82, 0x25, 0x44, 0xc4, 0x2a, 0x08, 0x3d, 0x6d, 1595 - 0xa0, 0x7a, 0xe9, 0xd1, 0x82, 0x8a, 0x07, 0x2f, 0x45, 0x3c, 0x78, 0x29, 0x1b, 0x33, 0x09, 0x0b, 1596 - 0xc9, 0x6e, 0x48, 0xa6, 0x25, 0xfe, 0x42, 0xff, 0x96, 0xec, 0x6e, 0xd2, 0x88, 0xe2, 0x29, 0xcc, 1597 - 0xbc, 0x6f, 0xde, 0xcb, 0x3e, 0x98, 0x34, 0x58, 0x4b, 0x42, 0x5e, 0x56, 0x9a, 0x34, 0x83, 0x06, 1598 - 0xa5, 0xa8, 0x35, 0x57, 0x48, 0xe1, 0x79, 0xa6, 0x75, 0x96, 0x63, 0x64, 0x95, 0x78, 0x9b, 0x46, 1599 - 0x58, 0x94, 0xf4, 0xe9, 0xc0, 0xf0, 0xf2, 0xb7, 0x48, 0xb2, 0xc0, 0x9a, 0x44, 0x51, 0xb6, 0x40, 1600 - 0x80, 0x0d, 0x61, 0xa5, 0x44, 0xee, 0x90, 0x14, 0x31, 0x71, 0xca, 0xf5, 0x97, 0x07, 0xfe, 0x6a, 1601 - 0x2b, 0xf3, 0xe4, 0x59, 0xa5, 0x9a, 0x4d, 0x61, 0xf4, 0xa1, 0x8b, 0x42, 0x52, 0xe0, 0xcd, 0xbc, 1602 - 0xb9, 0xbf, 0x6e, 0x27, 0xb6, 0x04, 0x88, 0x0d, 0xb4, 0x31, 0xc6, 0xc1, 0xc1, 0xcc, 0x9b, 0x8f, 1603 - 0x17, 0x21, 0x77, 0xa9, 0xbc, 0x4b, 0xe5, 0xaf, 0x5d, 0xea, 0xda, 0xb7, 0xb4, 0x99, 0xd9, 0x05, 1604 - 0x40, 0xa6, 0x37, 0x3b, 0xac, 0x6a, 0xa9, 0x55, 0x30, 0xb0, 0xb6, 0x7e, 0xa6, 0xdf, 0xdc, 0x82, 1605 - 0x5d, 0xc1, 0x24, 0x41, 0xd5, 0x03, 0x43, 0x0b, 0x8c, 0xcd, 0xae, 0x43, 0x6e, 0xe0, 0xc4, 0xd5, 1606 - 0xb2, 0x87, 0x0e, 0x2d, 0x74, 0xec, 0xb6, 0x2d, 0xb6, 0xb8, 0x87, 0xe1, 0x0b, 0x92, 0x60, 0x4b, 1607 - 0x38, 0x32, 0xdf, 0x44, 0x90, 0x60, 0xd3, 0x3f, 0xff, 0xf8, 0x60, 0x6a, 0x0b, 0xcf, 0x78, 0x5f, 1608 - 0x2d, 0xdf, 0x3f, 0xdf, 0x58, 0x3c, 0x22, 0x26, 0x6c, 0x09, 0x83, 0x27, 0xa4, 0x7f, 0xaf, 0xc3, 1609 - 0x9f, 0xd7, 0x7d, 0xa1, 0xe6, 0x74, 0xc5, 0xde, 0x4f, 0x7b, 0x31, 0xda, 0xdd, 0x45, 0x65, 0x1c, 1610 - 0x8f, 0x2c, 0x73, 0xfb, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x72, 0xb8, 0xce, 0x88, 0xde, 0x01, 0x00, 1611 - 0x00, 1592 + // 291 bytes of a gzipped FileDescriptorProto 1593 + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xd0, 0x4d, 0x4b, 0xf3, 0x40, 1594 + 0x10, 0x07, 0x70, 0xf2, 0x34, 0x4f, 0x31, 0xd3, 0xfa, 0xc2, 0x82, 0x25, 0x44, 0xc4, 0x2a, 0x08, 1595 + 0x3d, 0x6d, 0x20, 0x8a, 0xd0, 0xa3, 0x05, 0x15, 0x0f, 0x5e, 0x8a, 0x78, 0xf0, 0x52, 0x36, 0x66, 1596 + 0x12, 0x16, 0x92, 0x6c, 0x48, 0xa6, 0x25, 0x7e, 0x42, 0xbf, 0x96, 0xec, 0x6e, 0xd2, 0x80, 0xe2, 1597 + 0x29, 0xcc, 0xcc, 0x2f, 0x33, 0xc9, 0x1f, 0xa6, 0x2d, 0x36, 0x92, 0x90, 0x57, 0xb5, 0x22, 0xc5, 1598 + 0xa0, 0x45, 0x29, 0x1a, 0xc5, 0x4b, 0xa4, 0xe0, 0x2c, 0x53, 0x2a, 0xcb, 0x31, 0x34, 0x93, 0x78, 1599 + 0x9b, 0x86, 0x58, 0x54, 0xf4, 0x69, 0x61, 0x70, 0xf1, 0x73, 0x48, 0xb2, 0xc0, 0x86, 0x44, 0x51, 1600 + 0x75, 0xc0, 0xc7, 0x96, 0xb0, 0x2e, 0x45, 0x6e, 0x49, 0x8a, 0x98, 0xd8, 0xc9, 0xd5, 0x97, 0x03, 1601 + 0xde, 0x6a, 0x2b, 0xf3, 0xe4, 0xb9, 0x4c, 0x15, 0x9b, 0xc1, 0xf8, 0x43, 0x15, 0x85, 0x24, 0xdf, 1602 + 0x99, 0x3b, 0x0b, 0x6f, 0xdd, 0x55, 0x6c, 0x09, 0x10, 0x6b, 0xb4, 0xd1, 0x8b, 0xfd, 0x7f, 0x73, 1603 + 0x67, 0x31, 0x89, 0x02, 0x6e, 0xaf, 0xf2, 0xfe, 0x2a, 0x7f, 0xed, 0xaf, 0xae, 0x3d, 0xa3, 0x75, 1604 + 0xcd, 0xce, 0x01, 0x32, 0xb5, 0xd9, 0x61, 0xdd, 0x48, 0x55, 0xfa, 0x23, 0xb3, 0xd6, 0xcb, 0xd4, 1605 + 0x9b, 0x6d, 0xb0, 0x4b, 0x98, 0x26, 0x58, 0x0e, 0xc0, 0x35, 0x60, 0xa2, 0x7b, 0x3d, 0xb9, 0x86, 1606 + 0x23, 0x1b, 0xcb, 0x1e, 0xfd, 0x37, 0xe8, 0xd0, 0x76, 0x3b, 0x16, 0xdd, 0x83, 0xfb, 0x82, 0x24, 1607 + 0xd8, 0x12, 0x0e, 0xf4, 0x33, 0x11, 0x24, 0xd8, 0xec, 0xd7, 0x37, 0x3e, 0xe8, 0xd8, 0x82, 0x53, 1608 + 0x3e, 0x44, 0xcb, 0xf7, 0xbf, 0x1f, 0xdd, 0x81, 0xfb, 0x88, 0x98, 0x30, 0x0e, 0xa3, 0x27, 0xa4, 1609 + 0x3f, 0xdf, 0x3e, 0xe6, 0x43, 0x8a, 0xda, 0xaf, 0xd8, 0xfb, 0xc9, 0xb0, 0x2f, 0xdc, 0xdd, 0x86, 1610 + 0x55, 0x1c, 0x8f, 0x8d, 0xb9, 0xf9, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x20, 0xf7, 0x0a, 0x20, 0xd3, 1611 + 0x01, 0x00, 0x00, 1612 1612 }