From f68795e82649f43be7287433db376f2b77ef55ea Mon Sep 17 00:00:00 2001 From: Wibowo Arindrarto Date: Wed, 27 Dec 2023 05:59:01 +0100 Subject: [PATCH] chore: Rename project to 'neon' --- CHANGELOG.adoc | 4 +- Dockerfile | 16 +- Makefile | 12 +- README.md | 8 +- api/api.go | 2 +- api/{lens.pb.go => neon.pb.go} | 568 +++++++++--------- api/{lens.proto => neon.proto} | 8 +- api/{lens_grpc.pb.go => neon_grpc.pb.go} | 280 ++++----- cmd/cmd.go | 4 +- cmd/cmd_linux.go | 2 +- cmd/cmd_nonlinux.go | 2 +- cmd/cmd_test.go | 4 +- cmd/feed.go | 2 +- cmd/feed_add.go | 2 +- cmd/feed_export.go | 4 +- cmd/feed_import.go | 2 +- cmd/feed_list.go | 2 +- cmd/feed_list_entries.go | 2 +- cmd/feed_pull.go | 2 +- cmd/feed_show_entry.go | 2 +- cmd/reader.go | 4 +- cmd/root.go | 2 +- cmd/server.go | 4 +- cmd/server_show_proto.go | 2 +- cmd/version.go | 2 +- go.mod | 2 +- internal/database/add_feed.go | 2 +- internal/database/database.go | 4 +- internal/database/delete_feeds.go | 2 +- internal/database/edit_entries.go | 2 +- internal/database/edit_entries_test.go | 2 +- internal/database/edit_feeds.go | 2 +- internal/database/edit_feeds_test.go | 2 +- internal/database/export_subscription.go | 2 +- internal/database/get_entry.go | 2 +- internal/database/get_global_stats.go | 2 +- internal/database/import_subscription.go | 2 +- internal/database/import_subscription_test.go | 2 +- internal/database/list_entries.go | 2 +- internal/database/list_feeds.go | 2 +- internal/database/pull_feeds.go | 2 +- internal/database/pull_feeds_test.go | 2 +- internal/database/record.go | 2 +- internal/internal.go | 12 +- internal/model.go | 6 +- internal/opml/opml.go | 2 +- internal/opml/opml_test.go | 8 +- internal/reader/client_mock_test.go | 368 ++++++------ internal/reader/feeds_pane.go | 2 +- internal/reader/reader.go | 18 +- internal/reader/reader_test.go | 4 +- internal/reader/status_bar.go | 2 +- internal/server/error.go | 2 +- internal/server/pb.go | 4 +- internal/server/server.go | 10 +- internal/server/server_test.go | 12 +- internal/server/service.go | 8 +- internal/server/service_test.go | 14 +- internal/server/store_mock_test.go | 2 +- main.go | 4 +- 60 files changed, 729 insertions(+), 729 deletions(-) rename api/{lens.pb.go => neon.pb.go} (82%) rename api/{lens.proto => neon.proto} (97%) rename api/{lens_grpc.pb.go => neon_grpc.pb.go} (64%) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index efccc9c..0441c58 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,8 +1,8 @@ = Changelog -:repo_url: https://github.com/bow/lens +:repo_url: https://github.com/bow/neon -This is a changelog for the `lens` project. +This is a changelog for the `neon` project. All notable changes to this project will be documented in this file. The format is based on https://keepachangelog.com/en/1.0.0/[Keep a Changelog] and this diff --git a/Dockerfile b/Dockerfile index 63d89ad..4cba16c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # Copyright (c) 2022 Wibowo Arindrarto # SPDX-License-Identifier: BSD-3-Clause # -# This file is part of lens . +# This file is part of neon . FROM golang:1.21-alpine AS builder @@ -22,19 +22,19 @@ FROM golang:1.21-alpine ARG REVISION ARG BUILD_TIME -LABEL org.opencontainers.image.title="lens" \ - org.opencontainers.image.url="https://ghcr.io/bow/lens" \ - org.opencontainers.image.source="https://github.com/bow/lens" \ +LABEL org.opencontainers.image.title="neon" \ + org.opencontainers.image.url="https://ghcr.io/bow/neon" \ + org.opencontainers.image.source="https://github.com/bow/neon" \ org.opencontainers.image.authors="Wibowo Arindrarto " \ org.opencontainers.image.revision="${REVISION}" \ org.opencontainers.image.created="${BUILD_TIME}" \ org.opencontainers.image.licenses="BSD-3-Clause" -COPY --from=builder /src/bin/lens /bin/lens +COPY --from=builder /src/bin/neon /bin/neon RUN mkdir -p /var/data/ -ENV LENS_SERVE_ADDR=tcp://0.0.0.0:7000 \ - LENS_SERVE_DB_PATH=/var/data/lens.db +ENV NEON_SERVE_ADDR=tcp://0.0.0.0:7000 \ + NEON_SERVE_DB_PATH=/var/data/neon.db WORKDIR /runtime -ENTRYPOINT ["lens"] +ENTRYPOINT ["neon"] diff --git a/Makefile b/Makefile index c292d2c..bb851c7 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # Copyright (c) 2022 Wibowo Arindrarto # SPDX-License-Identifier: BSD-3-Clause # -# This file is part of lens . +# This file is part of neon . # Cross-platform adjustments. SYS := $(shell uname 2> /dev/null) @@ -19,7 +19,7 @@ else $(error error: unsupported development platform) endif -APP_NAME := lens +APP_NAME := neon GO_VERSION := $(shell (head -n 3 go.mod | $(SED_EXE) 's/^go//g' | tail -n 1)) REPO_NAME := $(shell (head -n 1 go.mod | $(SED_EXE) 's/^module //g')) @@ -147,16 +147,16 @@ internal/database/parser_mock_test.go: internal/parser.go internal/server/store_mock_test.go: internal/store.go mockgen -source=$< -package=server FeedStore > $@ -internal/reader/client_mock_test.go: api/lens_grpc.pb.go - mockgen -source=$< -package=reader LensClient > $@ +internal/reader/client_mock_test.go: api/neon_grpc.pb.go + mockgen -source=$< -package=reader NeonClient > $@ .PHONY: protos protos: $(PROTO_FILES) ## Generate code from protobuf. @protoc \ -I=$(PROTO_DIR) \ - --go_opt=Mlens.proto="$(REPO_NAME)/api;api" \ - --go-grpc_opt=Mlens.proto="$(REPO_NAME)/api;api" \ + --go_opt=Mneon.proto="$(REPO_NAME)/api;api" \ + --go-grpc_opt=Mneon.proto="$(REPO_NAME)/api;api" \ --go_out=$(PROTO_DIR) --go_opt=paths=source_relative \ --go-grpc_out=$(PROTO_DIR) --go-grpc_opt=paths=source_relative \ $(PROTO_FILES) diff --git a/README.md b/README.md index b905522..eecddc2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# `lens` +# `neon` -[![ci](https://github.com/bow/lens/actions/workflows/ci.yml/badge.svg)](https://github.com/bow/lens/actions?query=branch%3Amaster) -[![cogerage](https://api.codeclimate.com/v1/badges/7ee8245b58f68014d987/test_coverage)](https://codeclimate.com/github/bow/lens/test_coverage) +[![ci](https://github.com/bow/neon/actions/workflows/ci.yml/badge.svg)](https://github.com/bow/neon/actions?query=branch%3Amaster) +[![coverage](https://api.codeclimate.com/v1/badges/7ee8245b58f68014d987/test_coverage)](https://codeclimate.com/github/bow/neon/test_coverage) -`lens` is a feed reader suite. +`neon` is a feed reader suite. diff --git a/api/api.go b/api/api.go index 1c7f94d..c45bc66 100644 --- a/api/api.go +++ b/api/api.go @@ -8,7 +8,7 @@ import ( _ "embed" ) -//go:embed lens.proto +//go:embed neon.proto var proto []byte // Proto() returns the proto file that describes the server interface. diff --git a/api/lens.pb.go b/api/neon.pb.go similarity index 82% rename from api/lens.pb.go rename to api/neon.pb.go index 474ef21..372a2cc 100644 --- a/api/lens.pb.go +++ b/api/neon.pb.go @@ -1,4 +1,4 @@ -// Protobuf interface of the lens service. +// Protobuf interface of the neon service. // // Copyright (c) 2022 Wibowo Arindrarto // SPDX-License-Identifier: BSD-3-Clause @@ -7,7 +7,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc v4.24.3 -// source: lens.proto +// source: neon.proto package api @@ -47,7 +47,7 @@ type Feed struct { func (x *Feed) Reset() { *x = Feed{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[0] + mi := &file_neon_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -60,7 +60,7 @@ func (x *Feed) String() string { func (*Feed) ProtoMessage() {} func (x *Feed) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[0] + mi := &file_neon_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -73,7 +73,7 @@ func (x *Feed) ProtoReflect() protoreflect.Message { // Deprecated: Use Feed.ProtoReflect.Descriptor instead. func (*Feed) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{0} + return file_neon_proto_rawDescGZIP(), []int{0} } func (x *Feed) GetId() uint32 { @@ -174,7 +174,7 @@ type Entry struct { func (x *Entry) Reset() { *x = Entry{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[1] + mi := &file_neon_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -187,7 +187,7 @@ func (x *Entry) String() string { func (*Entry) ProtoMessage() {} func (x *Entry) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[1] + mi := &file_neon_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -200,7 +200,7 @@ func (x *Entry) ProtoReflect() protoreflect.Message { // Deprecated: Use Entry.ProtoReflect.Descriptor instead. func (*Entry) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{1} + return file_neon_proto_rawDescGZIP(), []int{1} } func (x *Entry) GetId() uint32 { @@ -295,7 +295,7 @@ type AddFeedRequest struct { func (x *AddFeedRequest) Reset() { *x = AddFeedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[2] + mi := &file_neon_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -308,7 +308,7 @@ func (x *AddFeedRequest) String() string { func (*AddFeedRequest) ProtoMessage() {} func (x *AddFeedRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[2] + mi := &file_neon_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -321,7 +321,7 @@ func (x *AddFeedRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddFeedRequest.ProtoReflect.Descriptor instead. func (*AddFeedRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{2} + return file_neon_proto_rawDescGZIP(), []int{2} } func (x *AddFeedRequest) GetUrl() string { @@ -371,7 +371,7 @@ type AddFeedResponse struct { func (x *AddFeedResponse) Reset() { *x = AddFeedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[3] + mi := &file_neon_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -384,7 +384,7 @@ func (x *AddFeedResponse) String() string { func (*AddFeedResponse) ProtoMessage() {} func (x *AddFeedResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[3] + mi := &file_neon_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -397,7 +397,7 @@ func (x *AddFeedResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddFeedResponse.ProtoReflect.Descriptor instead. func (*AddFeedResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{3} + return file_neon_proto_rawDescGZIP(), []int{3} } func (x *AddFeedResponse) GetFeed() *Feed { @@ -425,7 +425,7 @@ type EditFeedsRequest struct { func (x *EditFeedsRequest) Reset() { *x = EditFeedsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[4] + mi := &file_neon_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -438,7 +438,7 @@ func (x *EditFeedsRequest) String() string { func (*EditFeedsRequest) ProtoMessage() {} func (x *EditFeedsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[4] + mi := &file_neon_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -451,7 +451,7 @@ func (x *EditFeedsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EditFeedsRequest.ProtoReflect.Descriptor instead. func (*EditFeedsRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{4} + return file_neon_proto_rawDescGZIP(), []int{4} } func (x *EditFeedsRequest) GetOps() []*EditFeedsRequest_Op { @@ -472,7 +472,7 @@ type EditFeedsResponse struct { func (x *EditFeedsResponse) Reset() { *x = EditFeedsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[5] + mi := &file_neon_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -485,7 +485,7 @@ func (x *EditFeedsResponse) String() string { func (*EditFeedsResponse) ProtoMessage() {} func (x *EditFeedsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[5] + mi := &file_neon_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -498,7 +498,7 @@ func (x *EditFeedsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EditFeedsResponse.ProtoReflect.Descriptor instead. func (*EditFeedsResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{5} + return file_neon_proto_rawDescGZIP(), []int{5} } func (x *EditFeedsResponse) GetFeeds() []*Feed { @@ -517,7 +517,7 @@ type ListFeedsRequest struct { func (x *ListFeedsRequest) Reset() { *x = ListFeedsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[6] + mi := &file_neon_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -530,7 +530,7 @@ func (x *ListFeedsRequest) String() string { func (*ListFeedsRequest) ProtoMessage() {} func (x *ListFeedsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[6] + mi := &file_neon_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -543,7 +543,7 @@ func (x *ListFeedsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListFeedsRequest.ProtoReflect.Descriptor instead. func (*ListFeedsRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{6} + return file_neon_proto_rawDescGZIP(), []int{6} } type ListFeedsResponse struct { @@ -557,7 +557,7 @@ type ListFeedsResponse struct { func (x *ListFeedsResponse) Reset() { *x = ListFeedsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[7] + mi := &file_neon_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -570,7 +570,7 @@ func (x *ListFeedsResponse) String() string { func (*ListFeedsResponse) ProtoMessage() {} func (x *ListFeedsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[7] + mi := &file_neon_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -583,7 +583,7 @@ func (x *ListFeedsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListFeedsResponse.ProtoReflect.Descriptor instead. func (*ListFeedsResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{7} + return file_neon_proto_rawDescGZIP(), []int{7} } func (x *ListFeedsResponse) GetFeeds() []*Feed { @@ -604,7 +604,7 @@ type PullFeedsRequest struct { func (x *PullFeedsRequest) Reset() { *x = PullFeedsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[8] + mi := &file_neon_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -617,7 +617,7 @@ func (x *PullFeedsRequest) String() string { func (*PullFeedsRequest) ProtoMessage() {} func (x *PullFeedsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[8] + mi := &file_neon_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -630,7 +630,7 @@ func (x *PullFeedsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PullFeedsRequest.ProtoReflect.Descriptor instead. func (*PullFeedsRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{8} + return file_neon_proto_rawDescGZIP(), []int{8} } func (x *PullFeedsRequest) GetFeedIds() []uint32 { @@ -653,7 +653,7 @@ type PullFeedsResponse struct { func (x *PullFeedsResponse) Reset() { *x = PullFeedsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[9] + mi := &file_neon_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -666,7 +666,7 @@ func (x *PullFeedsResponse) String() string { func (*PullFeedsResponse) ProtoMessage() {} func (x *PullFeedsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[9] + mi := &file_neon_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -679,7 +679,7 @@ func (x *PullFeedsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PullFeedsResponse.ProtoReflect.Descriptor instead. func (*PullFeedsResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{9} + return file_neon_proto_rawDescGZIP(), []int{9} } func (x *PullFeedsResponse) GetUrl() string { @@ -714,7 +714,7 @@ type DeleteFeedsRequest struct { func (x *DeleteFeedsRequest) Reset() { *x = DeleteFeedsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[10] + mi := &file_neon_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -727,7 +727,7 @@ func (x *DeleteFeedsRequest) String() string { func (*DeleteFeedsRequest) ProtoMessage() {} func (x *DeleteFeedsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[10] + mi := &file_neon_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -740,7 +740,7 @@ func (x *DeleteFeedsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteFeedsRequest.ProtoReflect.Descriptor instead. func (*DeleteFeedsRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{10} + return file_neon_proto_rawDescGZIP(), []int{10} } func (x *DeleteFeedsRequest) GetFeedIds() []uint32 { @@ -759,7 +759,7 @@ type DeleteFeedsResponse struct { func (x *DeleteFeedsResponse) Reset() { *x = DeleteFeedsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[11] + mi := &file_neon_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -772,7 +772,7 @@ func (x *DeleteFeedsResponse) String() string { func (*DeleteFeedsResponse) ProtoMessage() {} func (x *DeleteFeedsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[11] + mi := &file_neon_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -785,7 +785,7 @@ func (x *DeleteFeedsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteFeedsResponse.ProtoReflect.Descriptor instead. func (*DeleteFeedsResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{11} + return file_neon_proto_rawDescGZIP(), []int{11} } type ListEntriesRequest struct { @@ -800,7 +800,7 @@ type ListEntriesRequest struct { func (x *ListEntriesRequest) Reset() { *x = ListEntriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[12] + mi := &file_neon_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -813,7 +813,7 @@ func (x *ListEntriesRequest) String() string { func (*ListEntriesRequest) ProtoMessage() {} func (x *ListEntriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[12] + mi := &file_neon_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -826,7 +826,7 @@ func (x *ListEntriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEntriesRequest.ProtoReflect.Descriptor instead. func (*ListEntriesRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{12} + return file_neon_proto_rawDescGZIP(), []int{12} } func (x *ListEntriesRequest) GetFeedIds() []uint32 { @@ -854,7 +854,7 @@ type ListEntriesResponse struct { func (x *ListEntriesResponse) Reset() { *x = ListEntriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[13] + mi := &file_neon_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -867,7 +867,7 @@ func (x *ListEntriesResponse) String() string { func (*ListEntriesResponse) ProtoMessage() {} func (x *ListEntriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[13] + mi := &file_neon_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -880,7 +880,7 @@ func (x *ListEntriesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEntriesResponse.ProtoReflect.Descriptor instead. func (*ListEntriesResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{13} + return file_neon_proto_rawDescGZIP(), []int{13} } func (x *ListEntriesResponse) GetEntries() []*Entry { @@ -901,7 +901,7 @@ type EditEntriesRequest struct { func (x *EditEntriesRequest) Reset() { *x = EditEntriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[14] + mi := &file_neon_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -914,7 +914,7 @@ func (x *EditEntriesRequest) String() string { func (*EditEntriesRequest) ProtoMessage() {} func (x *EditEntriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[14] + mi := &file_neon_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -927,7 +927,7 @@ func (x *EditEntriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EditEntriesRequest.ProtoReflect.Descriptor instead. func (*EditEntriesRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{14} + return file_neon_proto_rawDescGZIP(), []int{14} } func (x *EditEntriesRequest) GetOps() []*EditEntriesRequest_Op { @@ -948,7 +948,7 @@ type EditEntriesResponse struct { func (x *EditEntriesResponse) Reset() { *x = EditEntriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[15] + mi := &file_neon_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -961,7 +961,7 @@ func (x *EditEntriesResponse) String() string { func (*EditEntriesResponse) ProtoMessage() {} func (x *EditEntriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[15] + mi := &file_neon_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -974,7 +974,7 @@ func (x *EditEntriesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EditEntriesResponse.ProtoReflect.Descriptor instead. func (*EditEntriesResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{15} + return file_neon_proto_rawDescGZIP(), []int{15} } func (x *EditEntriesResponse) GetEntries() []*Entry { @@ -995,7 +995,7 @@ type GetEntryRequest struct { func (x *GetEntryRequest) Reset() { *x = GetEntryRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[16] + mi := &file_neon_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1008,7 +1008,7 @@ func (x *GetEntryRequest) String() string { func (*GetEntryRequest) ProtoMessage() {} func (x *GetEntryRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[16] + mi := &file_neon_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1021,7 +1021,7 @@ func (x *GetEntryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetEntryRequest.ProtoReflect.Descriptor instead. func (*GetEntryRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{16} + return file_neon_proto_rawDescGZIP(), []int{16} } func (x *GetEntryRequest) GetId() uint32 { @@ -1042,7 +1042,7 @@ type GetEntryResponse struct { func (x *GetEntryResponse) Reset() { *x = GetEntryResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[17] + mi := &file_neon_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1055,7 +1055,7 @@ func (x *GetEntryResponse) String() string { func (*GetEntryResponse) ProtoMessage() {} func (x *GetEntryResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[17] + mi := &file_neon_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1068,7 +1068,7 @@ func (x *GetEntryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetEntryResponse.ProtoReflect.Descriptor instead. func (*GetEntryResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{17} + return file_neon_proto_rawDescGZIP(), []int{17} } func (x *GetEntryResponse) GetEntry() *Entry { @@ -1089,7 +1089,7 @@ type ExportOPMLRequest struct { func (x *ExportOPMLRequest) Reset() { *x = ExportOPMLRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[18] + mi := &file_neon_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1102,7 +1102,7 @@ func (x *ExportOPMLRequest) String() string { func (*ExportOPMLRequest) ProtoMessage() {} func (x *ExportOPMLRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[18] + mi := &file_neon_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1115,7 +1115,7 @@ func (x *ExportOPMLRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExportOPMLRequest.ProtoReflect.Descriptor instead. func (*ExportOPMLRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{18} + return file_neon_proto_rawDescGZIP(), []int{18} } func (x *ExportOPMLRequest) GetTitle() string { @@ -1136,7 +1136,7 @@ type ExportOPMLResponse struct { func (x *ExportOPMLResponse) Reset() { *x = ExportOPMLResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[19] + mi := &file_neon_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1149,7 +1149,7 @@ func (x *ExportOPMLResponse) String() string { func (*ExportOPMLResponse) ProtoMessage() {} func (x *ExportOPMLResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[19] + mi := &file_neon_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1162,7 +1162,7 @@ func (x *ExportOPMLResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ExportOPMLResponse.ProtoReflect.Descriptor instead. func (*ExportOPMLResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{19} + return file_neon_proto_rawDescGZIP(), []int{19} } func (x *ExportOPMLResponse) GetPayload() []byte { @@ -1183,7 +1183,7 @@ type ImportOPMLRequest struct { func (x *ImportOPMLRequest) Reset() { *x = ImportOPMLRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[20] + mi := &file_neon_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1196,7 +1196,7 @@ func (x *ImportOPMLRequest) String() string { func (*ImportOPMLRequest) ProtoMessage() {} func (x *ImportOPMLRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[20] + mi := &file_neon_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1209,7 +1209,7 @@ func (x *ImportOPMLRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ImportOPMLRequest.ProtoReflect.Descriptor instead. func (*ImportOPMLRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{20} + return file_neon_proto_rawDescGZIP(), []int{20} } func (x *ImportOPMLRequest) GetPayload() []byte { @@ -1231,7 +1231,7 @@ type ImportOPMLResponse struct { func (x *ImportOPMLResponse) Reset() { *x = ImportOPMLResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[21] + mi := &file_neon_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1244,7 +1244,7 @@ func (x *ImportOPMLResponse) String() string { func (*ImportOPMLResponse) ProtoMessage() {} func (x *ImportOPMLResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[21] + mi := &file_neon_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1257,7 +1257,7 @@ func (x *ImportOPMLResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ImportOPMLResponse.ProtoReflect.Descriptor instead. func (*ImportOPMLResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{21} + return file_neon_proto_rawDescGZIP(), []int{21} } func (x *ImportOPMLResponse) GetNumProcessed() uint32 { @@ -1283,7 +1283,7 @@ type GetStatsRequest struct { func (x *GetStatsRequest) Reset() { *x = GetStatsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[22] + mi := &file_neon_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1296,7 +1296,7 @@ func (x *GetStatsRequest) String() string { func (*GetStatsRequest) ProtoMessage() {} func (x *GetStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[22] + mi := &file_neon_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1309,7 +1309,7 @@ func (x *GetStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead. func (*GetStatsRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{22} + return file_neon_proto_rawDescGZIP(), []int{22} } type GetStatsResponse struct { @@ -1323,7 +1323,7 @@ type GetStatsResponse struct { func (x *GetStatsResponse) Reset() { *x = GetStatsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[23] + mi := &file_neon_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1336,7 +1336,7 @@ func (x *GetStatsResponse) String() string { func (*GetStatsResponse) ProtoMessage() {} func (x *GetStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[23] + mi := &file_neon_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1349,7 +1349,7 @@ func (x *GetStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead. func (*GetStatsResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{23} + return file_neon_proto_rawDescGZIP(), []int{23} } func (x *GetStatsResponse) GetGlobal() *GetStatsResponse_Stats { @@ -1368,7 +1368,7 @@ type GetInfoRequest struct { func (x *GetInfoRequest) Reset() { *x = GetInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[24] + mi := &file_neon_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1381,7 +1381,7 @@ func (x *GetInfoRequest) String() string { func (*GetInfoRequest) ProtoMessage() {} func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[24] + mi := &file_neon_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1394,7 +1394,7 @@ func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead. func (*GetInfoRequest) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{24} + return file_neon_proto_rawDescGZIP(), []int{24} } type GetInfoResponse struct { @@ -1411,7 +1411,7 @@ type GetInfoResponse struct { func (x *GetInfoResponse) Reset() { *x = GetInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[25] + mi := &file_neon_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1424,7 +1424,7 @@ func (x *GetInfoResponse) String() string { func (*GetInfoResponse) ProtoMessage() {} func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[25] + mi := &file_neon_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1437,7 +1437,7 @@ func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead. func (*GetInfoResponse) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{25} + return file_neon_proto_rawDescGZIP(), []int{25} } func (x *GetInfoResponse) GetName() string { @@ -1480,7 +1480,7 @@ type EditFeedsRequest_Op struct { func (x *EditFeedsRequest_Op) Reset() { *x = EditFeedsRequest_Op{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[26] + mi := &file_neon_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1493,7 +1493,7 @@ func (x *EditFeedsRequest_Op) String() string { func (*EditFeedsRequest_Op) ProtoMessage() {} func (x *EditFeedsRequest_Op) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[26] + mi := &file_neon_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1506,7 +1506,7 @@ func (x *EditFeedsRequest_Op) ProtoReflect() protoreflect.Message { // Deprecated: Use EditFeedsRequest_Op.ProtoReflect.Descriptor instead. func (*EditFeedsRequest_Op) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{4, 0} + return file_neon_proto_rawDescGZIP(), []int{4, 0} } func (x *EditFeedsRequest_Op) GetId() uint32 { @@ -1540,7 +1540,7 @@ type EditFeedsRequest_Op_Fields struct { func (x *EditFeedsRequest_Op_Fields) Reset() { *x = EditFeedsRequest_Op_Fields{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[27] + mi := &file_neon_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1553,7 +1553,7 @@ func (x *EditFeedsRequest_Op_Fields) String() string { func (*EditFeedsRequest_Op_Fields) ProtoMessage() {} func (x *EditFeedsRequest_Op_Fields) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[27] + mi := &file_neon_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1566,7 +1566,7 @@ func (x *EditFeedsRequest_Op_Fields) ProtoReflect() protoreflect.Message { // Deprecated: Use EditFeedsRequest_Op_Fields.ProtoReflect.Descriptor instead. func (*EditFeedsRequest_Op_Fields) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{4, 0, 0} + return file_neon_proto_rawDescGZIP(), []int{4, 0, 0} } func (x *EditFeedsRequest_Op_Fields) GetTitle() string { @@ -1609,7 +1609,7 @@ type EditEntriesRequest_Op struct { func (x *EditEntriesRequest_Op) Reset() { *x = EditEntriesRequest_Op{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[28] + mi := &file_neon_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1622,7 +1622,7 @@ func (x *EditEntriesRequest_Op) String() string { func (*EditEntriesRequest_Op) ProtoMessage() {} func (x *EditEntriesRequest_Op) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[28] + mi := &file_neon_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1635,7 +1635,7 @@ func (x *EditEntriesRequest_Op) ProtoReflect() protoreflect.Message { // Deprecated: Use EditEntriesRequest_Op.ProtoReflect.Descriptor instead. func (*EditEntriesRequest_Op) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{14, 0} + return file_neon_proto_rawDescGZIP(), []int{14, 0} } func (x *EditEntriesRequest_Op) GetId() uint32 { @@ -1664,7 +1664,7 @@ type EditEntriesRequest_Op_Fields struct { func (x *EditEntriesRequest_Op_Fields) Reset() { *x = EditEntriesRequest_Op_Fields{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[29] + mi := &file_neon_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1677,7 +1677,7 @@ func (x *EditEntriesRequest_Op_Fields) String() string { func (*EditEntriesRequest_Op_Fields) ProtoMessage() {} func (x *EditEntriesRequest_Op_Fields) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[29] + mi := &file_neon_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1690,7 +1690,7 @@ func (x *EditEntriesRequest_Op_Fields) ProtoReflect() protoreflect.Message { // Deprecated: Use EditEntriesRequest_Op_Fields.ProtoReflect.Descriptor instead. func (*EditEntriesRequest_Op_Fields) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{14, 0, 0} + return file_neon_proto_rawDescGZIP(), []int{14, 0, 0} } func (x *EditEntriesRequest_Op_Fields) GetIsRead() bool { @@ -1723,7 +1723,7 @@ type GetStatsResponse_Stats struct { func (x *GetStatsResponse_Stats) Reset() { *x = GetStatsResponse_Stats{} if protoimpl.UnsafeEnabled { - mi := &file_lens_proto_msgTypes[30] + mi := &file_neon_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1736,7 +1736,7 @@ func (x *GetStatsResponse_Stats) String() string { func (*GetStatsResponse_Stats) ProtoMessage() {} func (x *GetStatsResponse_Stats) ProtoReflect() protoreflect.Message { - mi := &file_lens_proto_msgTypes[30] + mi := &file_neon_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1749,7 +1749,7 @@ func (x *GetStatsResponse_Stats) ProtoReflect() protoreflect.Message { // Deprecated: Use GetStatsResponse_Stats.ProtoReflect.Descriptor instead. func (*GetStatsResponse_Stats) Descriptor() ([]byte, []int) { - return file_lens_proto_rawDescGZIP(), []int{23, 0} + return file_neon_proto_rawDescGZIP(), []int{23, 0} } func (x *GetStatsResponse_Stats) GetNumFeeds() uint32 { @@ -1794,11 +1794,11 @@ func (x *GetStatsResponse_Stats) GetMostRecentUpdateTime() *timestamppb.Timestam return nil } -var File_lens_proto protoreflect.FileDescriptor +var File_neon_proto protoreflect.FileDescriptor -var file_lens_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x65, - 0x6e, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, +var file_neon_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6e, 0x65, + 0x6f, 0x6e, 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, 0xd0, 0x03, 0x0a, 0x04, 0x46, 0x65, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, @@ -1825,7 +1825,7 @@ var file_lens_proto_rawDesc = []byte{ 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x0f, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, @@ -1869,16 +1869,16 @@ var file_lens_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x22, 0x4c, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x66, 0x65, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x52, 0x04, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x52, 0x04, 0x66, 0x65, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x64, 0x64, 0x65, 0x64, 0x22, 0xbe, 0x02, 0x0a, 0x10, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x03, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, + 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x52, 0x03, 0x6f, 0x70, 0x73, 0x1a, 0xfc, 0x01, 0x0a, 0x02, 0x4f, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, + 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0xab, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x19, 0x0a, @@ -1894,19 +1894,19 @@ var file_lens_proto_rawDesc = []byte{ 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x22, 0x35, 0x0a, 0x11, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x66, 0x65, 0x65, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x65, 0x64, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x52, 0x05, 0x66, 0x65, 0x65, 0x64, 0x73, 0x22, 0x12, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x35, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x66, 0x65, 0x65, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0a, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x52, 0x05, 0x66, 0x65, 0x65, + 0x0a, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x52, 0x05, 0x66, 0x65, 0x65, 0x64, 0x73, 0x22, 0x2d, 0x0a, 0x10, 0x50, 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x66, 0x65, 0x65, 0x64, 0x49, 0x64, 0x73, 0x22, 0x78, 0x0a, 0x11, 0x50, 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x65, 0x65, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x46, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x46, 0x65, 0x65, 0x64, 0x48, 0x00, 0x52, 0x04, 0x66, 0x65, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x65, 0x65, @@ -1924,16 +1924,16 @@ var file_lens_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x5f, 0x69, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x64, 0x22, 0x3c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x86, 0x02, 0x0a, 0x12, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x03, 0x6f, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x52, 0x03, 0x6f, 0x70, 0x73, 0x1a, 0xc0, 0x01, 0x0a, 0x02, 0x4f, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x65, - 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6e, 0x65, + 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x6e, 0x0a, 0x06, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, @@ -1945,13 +1945,13 @@ var file_lens_proto_rawDesc = []byte{ 0x6b, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x64, 0x22, 0x3c, 0x0a, 0x13, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, + 0x0b, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x35, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, - 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6c, 0x65, - 0x6e, 0x73, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, + 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6e, 0x65, + 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x38, 0x0a, 0x11, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, @@ -1971,7 +1971,7 @@ var file_lens_proto_rawDesc = []byte{ 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xbb, 0x03, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, + 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x48, 0x00, 0x52, 0x06, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0xe0, 0x02, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x73, @@ -2005,152 +2005,152 @@ var file_lens_proto_rawDesc = []byte{ 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x32, 0x8e, 0x06, 0x0a, 0x04, 0x4c, 0x65, 0x6e, - 0x73, 0x12, 0x38, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x12, 0x14, 0x2e, 0x6c, - 0x65, 0x6e, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, + 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x32, 0x8e, 0x06, 0x0a, 0x04, 0x4e, 0x65, 0x6f, + 0x6e, 0x12, 0x38, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x12, 0x14, 0x2e, 0x6e, + 0x65, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x09, 0x45, - 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, + 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x17, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, + 0x1a, 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x09, 0x4c, - 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, + 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x17, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, + 0x1a, 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x09, 0x50, - 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, + 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x17, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, + 0x1a, 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x44, 0x0a, - 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x18, 0x2e, 0x6c, - 0x65, 0x6e, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x44, 0x65, + 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x18, 0x2e, 0x6e, + 0x65, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x12, 0x18, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, - 0x65, 0x6e, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x12, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, + 0x65, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, 0x45, 0x64, 0x69, - 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x18, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, + 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, + 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x3b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x15, 0x2e, 0x6c, 0x65, - 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, + 0x3b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x15, 0x2e, 0x6e, 0x65, + 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0a, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x12, 0x17, 0x2e, 0x6c, 0x65, 0x6e, - 0x73, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x12, 0x17, 0x2e, 0x6e, 0x65, 0x6f, + 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x12, 0x17, 0x2e, - 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x49, 0x6d, + 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x50, 0x4d, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x15, - 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, + 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x38, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x2e, 0x6c, 0x65, 0x6e, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x15, 0x2e, 0x6c, 0x65, 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x38, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x2e, 0x6e, 0x65, 0x6f, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x15, 0x2e, 0x6e, 0x65, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x19, 0x5a, 0x17, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x77, 0x2f, 0x6c, 0x65, 0x6e, 0x73, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x77, 0x2f, 0x6e, 0x65, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_lens_proto_rawDescOnce sync.Once - file_lens_proto_rawDescData = file_lens_proto_rawDesc + file_neon_proto_rawDescOnce sync.Once + file_neon_proto_rawDescData = file_neon_proto_rawDesc ) -func file_lens_proto_rawDescGZIP() []byte { - file_lens_proto_rawDescOnce.Do(func() { - file_lens_proto_rawDescData = protoimpl.X.CompressGZIP(file_lens_proto_rawDescData) +func file_neon_proto_rawDescGZIP() []byte { + file_neon_proto_rawDescOnce.Do(func() { + file_neon_proto_rawDescData = protoimpl.X.CompressGZIP(file_neon_proto_rawDescData) }) - return file_lens_proto_rawDescData -} - -var file_lens_proto_msgTypes = make([]protoimpl.MessageInfo, 31) -var file_lens_proto_goTypes = []interface{}{ - (*Feed)(nil), // 0: lens.Feed - (*Entry)(nil), // 1: lens.Entry - (*AddFeedRequest)(nil), // 2: lens.AddFeedRequest - (*AddFeedResponse)(nil), // 3: lens.AddFeedResponse - (*EditFeedsRequest)(nil), // 4: lens.EditFeedsRequest - (*EditFeedsResponse)(nil), // 5: lens.EditFeedsResponse - (*ListFeedsRequest)(nil), // 6: lens.ListFeedsRequest - (*ListFeedsResponse)(nil), // 7: lens.ListFeedsResponse - (*PullFeedsRequest)(nil), // 8: lens.PullFeedsRequest - (*PullFeedsResponse)(nil), // 9: lens.PullFeedsResponse - (*DeleteFeedsRequest)(nil), // 10: lens.DeleteFeedsRequest - (*DeleteFeedsResponse)(nil), // 11: lens.DeleteFeedsResponse - (*ListEntriesRequest)(nil), // 12: lens.ListEntriesRequest - (*ListEntriesResponse)(nil), // 13: lens.ListEntriesResponse - (*EditEntriesRequest)(nil), // 14: lens.EditEntriesRequest - (*EditEntriesResponse)(nil), // 15: lens.EditEntriesResponse - (*GetEntryRequest)(nil), // 16: lens.GetEntryRequest - (*GetEntryResponse)(nil), // 17: lens.GetEntryResponse - (*ExportOPMLRequest)(nil), // 18: lens.ExportOPMLRequest - (*ExportOPMLResponse)(nil), // 19: lens.ExportOPMLResponse - (*ImportOPMLRequest)(nil), // 20: lens.ImportOPMLRequest - (*ImportOPMLResponse)(nil), // 21: lens.ImportOPMLResponse - (*GetStatsRequest)(nil), // 22: lens.GetStatsRequest - (*GetStatsResponse)(nil), // 23: lens.GetStatsResponse - (*GetInfoRequest)(nil), // 24: lens.GetInfoRequest - (*GetInfoResponse)(nil), // 25: lens.GetInfoResponse - (*EditFeedsRequest_Op)(nil), // 26: lens.EditFeedsRequest.Op - (*EditFeedsRequest_Op_Fields)(nil), // 27: lens.EditFeedsRequest.Op.Fields - (*EditEntriesRequest_Op)(nil), // 28: lens.EditEntriesRequest.Op - (*EditEntriesRequest_Op_Fields)(nil), // 29: lens.EditEntriesRequest.Op.Fields - (*GetStatsResponse_Stats)(nil), // 30: lens.GetStatsResponse.Stats + return file_neon_proto_rawDescData +} + +var file_neon_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_neon_proto_goTypes = []interface{}{ + (*Feed)(nil), // 0: neon.Feed + (*Entry)(nil), // 1: neon.Entry + (*AddFeedRequest)(nil), // 2: neon.AddFeedRequest + (*AddFeedResponse)(nil), // 3: neon.AddFeedResponse + (*EditFeedsRequest)(nil), // 4: neon.EditFeedsRequest + (*EditFeedsResponse)(nil), // 5: neon.EditFeedsResponse + (*ListFeedsRequest)(nil), // 6: neon.ListFeedsRequest + (*ListFeedsResponse)(nil), // 7: neon.ListFeedsResponse + (*PullFeedsRequest)(nil), // 8: neon.PullFeedsRequest + (*PullFeedsResponse)(nil), // 9: neon.PullFeedsResponse + (*DeleteFeedsRequest)(nil), // 10: neon.DeleteFeedsRequest + (*DeleteFeedsResponse)(nil), // 11: neon.DeleteFeedsResponse + (*ListEntriesRequest)(nil), // 12: neon.ListEntriesRequest + (*ListEntriesResponse)(nil), // 13: neon.ListEntriesResponse + (*EditEntriesRequest)(nil), // 14: neon.EditEntriesRequest + (*EditEntriesResponse)(nil), // 15: neon.EditEntriesResponse + (*GetEntryRequest)(nil), // 16: neon.GetEntryRequest + (*GetEntryResponse)(nil), // 17: neon.GetEntryResponse + (*ExportOPMLRequest)(nil), // 18: neon.ExportOPMLRequest + (*ExportOPMLResponse)(nil), // 19: neon.ExportOPMLResponse + (*ImportOPMLRequest)(nil), // 20: neon.ImportOPMLRequest + (*ImportOPMLResponse)(nil), // 21: neon.ImportOPMLResponse + (*GetStatsRequest)(nil), // 22: neon.GetStatsRequest + (*GetStatsResponse)(nil), // 23: neon.GetStatsResponse + (*GetInfoRequest)(nil), // 24: neon.GetInfoRequest + (*GetInfoResponse)(nil), // 25: neon.GetInfoResponse + (*EditFeedsRequest_Op)(nil), // 26: neon.EditFeedsRequest.Op + (*EditFeedsRequest_Op_Fields)(nil), // 27: neon.EditFeedsRequest.Op.Fields + (*EditEntriesRequest_Op)(nil), // 28: neon.EditEntriesRequest.Op + (*EditEntriesRequest_Op_Fields)(nil), // 29: neon.EditEntriesRequest.Op.Fields + (*GetStatsResponse_Stats)(nil), // 30: neon.GetStatsResponse.Stats (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp } -var file_lens_proto_depIdxs = []int32{ - 31, // 0: lens.Feed.update_time:type_name -> google.protobuf.Timestamp - 31, // 1: lens.Feed.sub_time:type_name -> google.protobuf.Timestamp - 31, // 2: lens.Feed.last_pull_time:type_name -> google.protobuf.Timestamp - 1, // 3: lens.Feed.entries:type_name -> lens.Entry - 31, // 4: lens.Entry.update_time:type_name -> google.protobuf.Timestamp - 31, // 5: lens.Entry.pub_time:type_name -> google.protobuf.Timestamp - 0, // 6: lens.AddFeedResponse.feed:type_name -> lens.Feed - 26, // 7: lens.EditFeedsRequest.ops:type_name -> lens.EditFeedsRequest.Op - 0, // 8: lens.EditFeedsResponse.feeds:type_name -> lens.Feed - 0, // 9: lens.ListFeedsResponse.feeds:type_name -> lens.Feed - 0, // 10: lens.PullFeedsResponse.feed:type_name -> lens.Feed - 1, // 11: lens.ListEntriesResponse.entries:type_name -> lens.Entry - 28, // 12: lens.EditEntriesRequest.ops:type_name -> lens.EditEntriesRequest.Op - 1, // 13: lens.EditEntriesResponse.entries:type_name -> lens.Entry - 1, // 14: lens.GetEntryResponse.entry:type_name -> lens.Entry - 30, // 15: lens.GetStatsResponse.global:type_name -> lens.GetStatsResponse.Stats - 27, // 16: lens.EditFeedsRequest.Op.fields:type_name -> lens.EditFeedsRequest.Op.Fields - 29, // 17: lens.EditEntriesRequest.Op.fields:type_name -> lens.EditEntriesRequest.Op.Fields - 31, // 18: lens.GetStatsResponse.Stats.last_pull_time:type_name -> google.protobuf.Timestamp - 31, // 19: lens.GetStatsResponse.Stats.most_recent_update_time:type_name -> google.protobuf.Timestamp - 2, // 20: lens.Lens.AddFeed:input_type -> lens.AddFeedRequest - 4, // 21: lens.Lens.EditFeeds:input_type -> lens.EditFeedsRequest - 6, // 22: lens.Lens.ListFeeds:input_type -> lens.ListFeedsRequest - 8, // 23: lens.Lens.PullFeeds:input_type -> lens.PullFeedsRequest - 10, // 24: lens.Lens.DeleteFeeds:input_type -> lens.DeleteFeedsRequest - 12, // 25: lens.Lens.ListEntries:input_type -> lens.ListEntriesRequest - 14, // 26: lens.Lens.EditEntries:input_type -> lens.EditEntriesRequest - 16, // 27: lens.Lens.GetEntry:input_type -> lens.GetEntryRequest - 18, // 28: lens.Lens.ExportOPML:input_type -> lens.ExportOPMLRequest - 20, // 29: lens.Lens.ImportOPML:input_type -> lens.ImportOPMLRequest - 22, // 30: lens.Lens.GetStats:input_type -> lens.GetStatsRequest - 24, // 31: lens.Lens.GetInfo:input_type -> lens.GetInfoRequest - 3, // 32: lens.Lens.AddFeed:output_type -> lens.AddFeedResponse - 5, // 33: lens.Lens.EditFeeds:output_type -> lens.EditFeedsResponse - 7, // 34: lens.Lens.ListFeeds:output_type -> lens.ListFeedsResponse - 9, // 35: lens.Lens.PullFeeds:output_type -> lens.PullFeedsResponse - 11, // 36: lens.Lens.DeleteFeeds:output_type -> lens.DeleteFeedsResponse - 13, // 37: lens.Lens.ListEntries:output_type -> lens.ListEntriesResponse - 15, // 38: lens.Lens.EditEntries:output_type -> lens.EditEntriesResponse - 17, // 39: lens.Lens.GetEntry:output_type -> lens.GetEntryResponse - 19, // 40: lens.Lens.ExportOPML:output_type -> lens.ExportOPMLResponse - 21, // 41: lens.Lens.ImportOPML:output_type -> lens.ImportOPMLResponse - 23, // 42: lens.Lens.GetStats:output_type -> lens.GetStatsResponse - 25, // 43: lens.Lens.GetInfo:output_type -> lens.GetInfoResponse +var file_neon_proto_depIdxs = []int32{ + 31, // 0: neon.Feed.update_time:type_name -> google.protobuf.Timestamp + 31, // 1: neon.Feed.sub_time:type_name -> google.protobuf.Timestamp + 31, // 2: neon.Feed.last_pull_time:type_name -> google.protobuf.Timestamp + 1, // 3: neon.Feed.entries:type_name -> neon.Entry + 31, // 4: neon.Entry.update_time:type_name -> google.protobuf.Timestamp + 31, // 5: neon.Entry.pub_time:type_name -> google.protobuf.Timestamp + 0, // 6: neon.AddFeedResponse.feed:type_name -> neon.Feed + 26, // 7: neon.EditFeedsRequest.ops:type_name -> neon.EditFeedsRequest.Op + 0, // 8: neon.EditFeedsResponse.feeds:type_name -> neon.Feed + 0, // 9: neon.ListFeedsResponse.feeds:type_name -> neon.Feed + 0, // 10: neon.PullFeedsResponse.feed:type_name -> neon.Feed + 1, // 11: neon.ListEntriesResponse.entries:type_name -> neon.Entry + 28, // 12: neon.EditEntriesRequest.ops:type_name -> neon.EditEntriesRequest.Op + 1, // 13: neon.EditEntriesResponse.entries:type_name -> neon.Entry + 1, // 14: neon.GetEntryResponse.entry:type_name -> neon.Entry + 30, // 15: neon.GetStatsResponse.global:type_name -> neon.GetStatsResponse.Stats + 27, // 16: neon.EditFeedsRequest.Op.fields:type_name -> neon.EditFeedsRequest.Op.Fields + 29, // 17: neon.EditEntriesRequest.Op.fields:type_name -> neon.EditEntriesRequest.Op.Fields + 31, // 18: neon.GetStatsResponse.Stats.last_pull_time:type_name -> google.protobuf.Timestamp + 31, // 19: neon.GetStatsResponse.Stats.most_recent_update_time:type_name -> google.protobuf.Timestamp + 2, // 20: neon.Neon.AddFeed:input_type -> neon.AddFeedRequest + 4, // 21: neon.Neon.EditFeeds:input_type -> neon.EditFeedsRequest + 6, // 22: neon.Neon.ListFeeds:input_type -> neon.ListFeedsRequest + 8, // 23: neon.Neon.PullFeeds:input_type -> neon.PullFeedsRequest + 10, // 24: neon.Neon.DeleteFeeds:input_type -> neon.DeleteFeedsRequest + 12, // 25: neon.Neon.ListEntries:input_type -> neon.ListEntriesRequest + 14, // 26: neon.Neon.EditEntries:input_type -> neon.EditEntriesRequest + 16, // 27: neon.Neon.GetEntry:input_type -> neon.GetEntryRequest + 18, // 28: neon.Neon.ExportOPML:input_type -> neon.ExportOPMLRequest + 20, // 29: neon.Neon.ImportOPML:input_type -> neon.ImportOPMLRequest + 22, // 30: neon.Neon.GetStats:input_type -> neon.GetStatsRequest + 24, // 31: neon.Neon.GetInfo:input_type -> neon.GetInfoRequest + 3, // 32: neon.Neon.AddFeed:output_type -> neon.AddFeedResponse + 5, // 33: neon.Neon.EditFeeds:output_type -> neon.EditFeedsResponse + 7, // 34: neon.Neon.ListFeeds:output_type -> neon.ListFeedsResponse + 9, // 35: neon.Neon.PullFeeds:output_type -> neon.PullFeedsResponse + 11, // 36: neon.Neon.DeleteFeeds:output_type -> neon.DeleteFeedsResponse + 13, // 37: neon.Neon.ListEntries:output_type -> neon.ListEntriesResponse + 15, // 38: neon.Neon.EditEntries:output_type -> neon.EditEntriesResponse + 17, // 39: neon.Neon.GetEntry:output_type -> neon.GetEntryResponse + 19, // 40: neon.Neon.ExportOPML:output_type -> neon.ExportOPMLResponse + 21, // 41: neon.Neon.ImportOPML:output_type -> neon.ImportOPMLResponse + 23, // 42: neon.Neon.GetStats:output_type -> neon.GetStatsResponse + 25, // 43: neon.Neon.GetInfo:output_type -> neon.GetInfoResponse 32, // [32:44] is the sub-list for method output_type 20, // [20:32] is the sub-list for method input_type 20, // [20:20] is the sub-list for extension type_name @@ -2158,13 +2158,13 @@ var file_lens_proto_depIdxs = []int32{ 0, // [0:20] is the sub-list for field type_name } -func init() { file_lens_proto_init() } -func file_lens_proto_init() { - if File_lens_proto != nil { +func init() { file_neon_proto_init() } +func file_neon_proto_init() { + if File_neon_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_lens_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Feed); i { case 0: return &v.state @@ -2176,7 +2176,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Entry); i { case 0: return &v.state @@ -2188,7 +2188,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddFeedRequest); i { case 0: return &v.state @@ -2200,7 +2200,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddFeedResponse); i { case 0: return &v.state @@ -2212,7 +2212,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditFeedsRequest); i { case 0: return &v.state @@ -2224,7 +2224,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditFeedsResponse); i { case 0: return &v.state @@ -2236,7 +2236,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListFeedsRequest); i { case 0: return &v.state @@ -2248,7 +2248,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListFeedsResponse); i { case 0: return &v.state @@ -2260,7 +2260,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PullFeedsRequest); i { case 0: return &v.state @@ -2272,7 +2272,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PullFeedsResponse); i { case 0: return &v.state @@ -2284,7 +2284,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteFeedsRequest); i { case 0: return &v.state @@ -2296,7 +2296,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteFeedsResponse); i { case 0: return &v.state @@ -2308,7 +2308,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListEntriesRequest); i { case 0: return &v.state @@ -2320,7 +2320,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListEntriesResponse); i { case 0: return &v.state @@ -2332,7 +2332,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditEntriesRequest); i { case 0: return &v.state @@ -2344,7 +2344,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditEntriesResponse); i { case 0: return &v.state @@ -2356,7 +2356,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetEntryRequest); i { case 0: return &v.state @@ -2368,7 +2368,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetEntryResponse); i { case 0: return &v.state @@ -2380,7 +2380,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExportOPMLRequest); i { case 0: return &v.state @@ -2392,7 +2392,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExportOPMLResponse); i { case 0: return &v.state @@ -2404,7 +2404,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ImportOPMLRequest); i { case 0: return &v.state @@ -2416,7 +2416,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ImportOPMLResponse); i { case 0: return &v.state @@ -2428,7 +2428,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetStatsRequest); i { case 0: return &v.state @@ -2440,7 +2440,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetStatsResponse); i { case 0: return &v.state @@ -2452,7 +2452,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetInfoRequest); i { case 0: return &v.state @@ -2464,7 +2464,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetInfoResponse); i { case 0: return &v.state @@ -2476,7 +2476,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditFeedsRequest_Op); i { case 0: return &v.state @@ -2488,7 +2488,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditFeedsRequest_Op_Fields); i { case 0: return &v.state @@ -2500,7 +2500,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditEntriesRequest_Op); i { case 0: return &v.state @@ -2512,7 +2512,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EditEntriesRequest_Op_Fields); i { case 0: return &v.state @@ -2524,7 +2524,7 @@ func file_lens_proto_init() { return nil } } - file_lens_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_neon_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetStatsResponse_Stats); i { case 0: return &v.state @@ -2537,32 +2537,32 @@ func file_lens_proto_init() { } } } - file_lens_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[9].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[12].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[18].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[23].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[27].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[29].OneofWrappers = []interface{}{} - file_lens_proto_msgTypes[30].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[12].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[18].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[23].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[27].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[29].OneofWrappers = []interface{}{} + file_neon_proto_msgTypes[30].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_lens_proto_rawDesc, + RawDescriptor: file_neon_proto_rawDesc, NumEnums: 0, NumMessages: 31, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_lens_proto_goTypes, - DependencyIndexes: file_lens_proto_depIdxs, - MessageInfos: file_lens_proto_msgTypes, + GoTypes: file_neon_proto_goTypes, + DependencyIndexes: file_neon_proto_depIdxs, + MessageInfos: file_neon_proto_msgTypes, }.Build() - File_lens_proto = out.File - file_lens_proto_rawDesc = nil - file_lens_proto_goTypes = nil - file_lens_proto_depIdxs = nil + File_neon_proto = out.File + file_neon_proto_rawDesc = nil + file_neon_proto_goTypes = nil + file_neon_proto_depIdxs = nil } diff --git a/api/lens.proto b/api/neon.proto similarity index 97% rename from api/lens.proto rename to api/neon.proto index ec0a30d..10ac391 100644 --- a/api/lens.proto +++ b/api/neon.proto @@ -1,17 +1,17 @@ -// Protobuf interface of the lens service. +// Protobuf interface of the neon service. // // Copyright (c) 2022 Wibowo Arindrarto // SPDX-License-Identifier: BSD-3-Clause syntax = "proto3"; -package lens; +package neon; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/bow/lens/api"; +option go_package = "github.com/bow/neon/api"; -service Lens { +service Neon { // AddFeeds adds a new feed source. rpc AddFeed (AddFeedRequest) returns (AddFeedResponse) {} diff --git a/api/lens_grpc.pb.go b/api/neon_grpc.pb.go similarity index 64% rename from api/lens_grpc.pb.go rename to api/neon_grpc.pb.go index 1aa42fc..8965d3b 100644 --- a/api/lens_grpc.pb.go +++ b/api/neon_grpc.pb.go @@ -1,4 +1,4 @@ -// Protobuf interface of the lens service. +// Protobuf interface of the neon service. // // Copyright (c) 2022 Wibowo Arindrarto // SPDX-License-Identifier: BSD-3-Clause @@ -7,7 +7,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.24.3 -// source: lens.proto +// source: neon.proto package api @@ -24,24 +24,24 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Lens_AddFeed_FullMethodName = "/lens.Lens/AddFeed" - Lens_EditFeeds_FullMethodName = "/lens.Lens/EditFeeds" - Lens_ListFeeds_FullMethodName = "/lens.Lens/ListFeeds" - Lens_PullFeeds_FullMethodName = "/lens.Lens/PullFeeds" - Lens_DeleteFeeds_FullMethodName = "/lens.Lens/DeleteFeeds" - Lens_ListEntries_FullMethodName = "/lens.Lens/ListEntries" - Lens_EditEntries_FullMethodName = "/lens.Lens/EditEntries" - Lens_GetEntry_FullMethodName = "/lens.Lens/GetEntry" - Lens_ExportOPML_FullMethodName = "/lens.Lens/ExportOPML" - Lens_ImportOPML_FullMethodName = "/lens.Lens/ImportOPML" - Lens_GetStats_FullMethodName = "/lens.Lens/GetStats" - Lens_GetInfo_FullMethodName = "/lens.Lens/GetInfo" + Neon_AddFeed_FullMethodName = "/neon.Neon/AddFeed" + Neon_EditFeeds_FullMethodName = "/neon.Neon/EditFeeds" + Neon_ListFeeds_FullMethodName = "/neon.Neon/ListFeeds" + Neon_PullFeeds_FullMethodName = "/neon.Neon/PullFeeds" + Neon_DeleteFeeds_FullMethodName = "/neon.Neon/DeleteFeeds" + Neon_ListEntries_FullMethodName = "/neon.Neon/ListEntries" + Neon_EditEntries_FullMethodName = "/neon.Neon/EditEntries" + Neon_GetEntry_FullMethodName = "/neon.Neon/GetEntry" + Neon_ExportOPML_FullMethodName = "/neon.Neon/ExportOPML" + Neon_ImportOPML_FullMethodName = "/neon.Neon/ImportOPML" + Neon_GetStats_FullMethodName = "/neon.Neon/GetStats" + Neon_GetInfo_FullMethodName = "/neon.Neon/GetInfo" ) -// LensClient is the client API for Lens service. +// NeonClient is the client API for Neon service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type LensClient interface { +type NeonClient interface { // AddFeeds adds a new feed source. AddFeed(ctx context.Context, in *AddFeedRequest, opts ...grpc.CallOption) (*AddFeedResponse, error) // EditFeeds sets one or more fields of feeds. @@ -49,7 +49,7 @@ type LensClient interface { // ListFeeds lists all added feed sources. ListFeeds(ctx context.Context, in *ListFeedsRequest, opts ...grpc.CallOption) (*ListFeedsResponse, error) // PullFeeds checks feeds for updates and returns all unread entries. - PullFeeds(ctx context.Context, in *PullFeedsRequest, opts ...grpc.CallOption) (Lens_PullFeedsClient, error) + PullFeeds(ctx context.Context, in *PullFeedsRequest, opts ...grpc.CallOption) (Neon_PullFeedsClient, error) // DeleteFeeds removes one or more feed sources. DeleteFeeds(ctx context.Context, in *DeleteFeedsRequest, opts ...grpc.CallOption) (*DeleteFeedsResponse, error) // ListEntries lists entries of a specific feed. @@ -68,47 +68,47 @@ type LensClient interface { GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) } -type lensClient struct { +type neonClient struct { cc grpc.ClientConnInterface } -func NewLensClient(cc grpc.ClientConnInterface) LensClient { - return &lensClient{cc} +func NewNeonClient(cc grpc.ClientConnInterface) NeonClient { + return &neonClient{cc} } -func (c *lensClient) AddFeed(ctx context.Context, in *AddFeedRequest, opts ...grpc.CallOption) (*AddFeedResponse, error) { +func (c *neonClient) AddFeed(ctx context.Context, in *AddFeedRequest, opts ...grpc.CallOption) (*AddFeedResponse, error) { out := new(AddFeedResponse) - err := c.cc.Invoke(ctx, Lens_AddFeed_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_AddFeed_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) EditFeeds(ctx context.Context, in *EditFeedsRequest, opts ...grpc.CallOption) (*EditFeedsResponse, error) { +func (c *neonClient) EditFeeds(ctx context.Context, in *EditFeedsRequest, opts ...grpc.CallOption) (*EditFeedsResponse, error) { out := new(EditFeedsResponse) - err := c.cc.Invoke(ctx, Lens_EditFeeds_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_EditFeeds_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) ListFeeds(ctx context.Context, in *ListFeedsRequest, opts ...grpc.CallOption) (*ListFeedsResponse, error) { +func (c *neonClient) ListFeeds(ctx context.Context, in *ListFeedsRequest, opts ...grpc.CallOption) (*ListFeedsResponse, error) { out := new(ListFeedsResponse) - err := c.cc.Invoke(ctx, Lens_ListFeeds_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_ListFeeds_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) PullFeeds(ctx context.Context, in *PullFeedsRequest, opts ...grpc.CallOption) (Lens_PullFeedsClient, error) { - stream, err := c.cc.NewStream(ctx, &Lens_ServiceDesc.Streams[0], Lens_PullFeeds_FullMethodName, opts...) +func (c *neonClient) PullFeeds(ctx context.Context, in *PullFeedsRequest, opts ...grpc.CallOption) (Neon_PullFeedsClient, error) { + stream, err := c.cc.NewStream(ctx, &Neon_ServiceDesc.Streams[0], Neon_PullFeeds_FullMethodName, opts...) if err != nil { return nil, err } - x := &lensPullFeedsClient{stream} + x := &neonPullFeedsClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -118,16 +118,16 @@ func (c *lensClient) PullFeeds(ctx context.Context, in *PullFeedsRequest, opts . return x, nil } -type Lens_PullFeedsClient interface { +type Neon_PullFeedsClient interface { Recv() (*PullFeedsResponse, error) grpc.ClientStream } -type lensPullFeedsClient struct { +type neonPullFeedsClient struct { grpc.ClientStream } -func (x *lensPullFeedsClient) Recv() (*PullFeedsResponse, error) { +func (x *neonPullFeedsClient) Recv() (*PullFeedsResponse, error) { m := new(PullFeedsResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -135,82 +135,82 @@ func (x *lensPullFeedsClient) Recv() (*PullFeedsResponse, error) { return m, nil } -func (c *lensClient) DeleteFeeds(ctx context.Context, in *DeleteFeedsRequest, opts ...grpc.CallOption) (*DeleteFeedsResponse, error) { +func (c *neonClient) DeleteFeeds(ctx context.Context, in *DeleteFeedsRequest, opts ...grpc.CallOption) (*DeleteFeedsResponse, error) { out := new(DeleteFeedsResponse) - err := c.cc.Invoke(ctx, Lens_DeleteFeeds_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_DeleteFeeds_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) { +func (c *neonClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) { out := new(ListEntriesResponse) - err := c.cc.Invoke(ctx, Lens_ListEntries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_ListEntries_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) EditEntries(ctx context.Context, in *EditEntriesRequest, opts ...grpc.CallOption) (*EditEntriesResponse, error) { +func (c *neonClient) EditEntries(ctx context.Context, in *EditEntriesRequest, opts ...grpc.CallOption) (*EditEntriesResponse, error) { out := new(EditEntriesResponse) - err := c.cc.Invoke(ctx, Lens_EditEntries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_EditEntries_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) GetEntry(ctx context.Context, in *GetEntryRequest, opts ...grpc.CallOption) (*GetEntryResponse, error) { +func (c *neonClient) GetEntry(ctx context.Context, in *GetEntryRequest, opts ...grpc.CallOption) (*GetEntryResponse, error) { out := new(GetEntryResponse) - err := c.cc.Invoke(ctx, Lens_GetEntry_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_GetEntry_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) ExportOPML(ctx context.Context, in *ExportOPMLRequest, opts ...grpc.CallOption) (*ExportOPMLResponse, error) { +func (c *neonClient) ExportOPML(ctx context.Context, in *ExportOPMLRequest, opts ...grpc.CallOption) (*ExportOPMLResponse, error) { out := new(ExportOPMLResponse) - err := c.cc.Invoke(ctx, Lens_ExportOPML_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_ExportOPML_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) ImportOPML(ctx context.Context, in *ImportOPMLRequest, opts ...grpc.CallOption) (*ImportOPMLResponse, error) { +func (c *neonClient) ImportOPML(ctx context.Context, in *ImportOPMLRequest, opts ...grpc.CallOption) (*ImportOPMLResponse, error) { out := new(ImportOPMLResponse) - err := c.cc.Invoke(ctx, Lens_ImportOPML_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_ImportOPML_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) { +func (c *neonClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) { out := new(GetStatsResponse) - err := c.cc.Invoke(ctx, Lens_GetStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_GetStats_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *lensClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) { +func (c *neonClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) { out := new(GetInfoResponse) - err := c.cc.Invoke(ctx, Lens_GetInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Neon_GetInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -// LensServer is the server API for Lens service. -// All implementations must embed UnimplementedLensServer +// NeonServer is the server API for Neon service. +// All implementations must embed UnimplementedNeonServer // for forward compatibility -type LensServer interface { +type NeonServer interface { // AddFeeds adds a new feed source. AddFeed(context.Context, *AddFeedRequest) (*AddFeedResponse, error) // EditFeeds sets one or more fields of feeds. @@ -218,7 +218,7 @@ type LensServer interface { // ListFeeds lists all added feed sources. ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error) // PullFeeds checks feeds for updates and returns all unread entries. - PullFeeds(*PullFeedsRequest, Lens_PullFeedsServer) error + PullFeeds(*PullFeedsRequest, Neon_PullFeedsServer) error // DeleteFeeds removes one or more feed sources. DeleteFeeds(context.Context, *DeleteFeedsRequest) (*DeleteFeedsResponse, error) // ListEntries lists entries of a specific feed. @@ -235,339 +235,339 @@ type LensServer interface { GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) // GetInfo returns the version info of the running server. GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) - mustEmbedUnimplementedLensServer() + mustEmbedUnimplementedNeonServer() } -// UnimplementedLensServer must be embedded to have forward compatible implementations. -type UnimplementedLensServer struct { +// UnimplementedNeonServer must be embedded to have forward compatible implementations. +type UnimplementedNeonServer struct { } -func (UnimplementedLensServer) AddFeed(context.Context, *AddFeedRequest) (*AddFeedResponse, error) { +func (UnimplementedNeonServer) AddFeed(context.Context, *AddFeedRequest) (*AddFeedResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddFeed not implemented") } -func (UnimplementedLensServer) EditFeeds(context.Context, *EditFeedsRequest) (*EditFeedsResponse, error) { +func (UnimplementedNeonServer) EditFeeds(context.Context, *EditFeedsRequest) (*EditFeedsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EditFeeds not implemented") } -func (UnimplementedLensServer) ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error) { +func (UnimplementedNeonServer) ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListFeeds not implemented") } -func (UnimplementedLensServer) PullFeeds(*PullFeedsRequest, Lens_PullFeedsServer) error { +func (UnimplementedNeonServer) PullFeeds(*PullFeedsRequest, Neon_PullFeedsServer) error { return status.Errorf(codes.Unimplemented, "method PullFeeds not implemented") } -func (UnimplementedLensServer) DeleteFeeds(context.Context, *DeleteFeedsRequest) (*DeleteFeedsResponse, error) { +func (UnimplementedNeonServer) DeleteFeeds(context.Context, *DeleteFeedsRequest) (*DeleteFeedsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteFeeds not implemented") } -func (UnimplementedLensServer) ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error) { +func (UnimplementedNeonServer) ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEntries not implemented") } -func (UnimplementedLensServer) EditEntries(context.Context, *EditEntriesRequest) (*EditEntriesResponse, error) { +func (UnimplementedNeonServer) EditEntries(context.Context, *EditEntriesRequest) (*EditEntriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EditEntries not implemented") } -func (UnimplementedLensServer) GetEntry(context.Context, *GetEntryRequest) (*GetEntryResponse, error) { +func (UnimplementedNeonServer) GetEntry(context.Context, *GetEntryRequest) (*GetEntryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEntry not implemented") } -func (UnimplementedLensServer) ExportOPML(context.Context, *ExportOPMLRequest) (*ExportOPMLResponse, error) { +func (UnimplementedNeonServer) ExportOPML(context.Context, *ExportOPMLRequest) (*ExportOPMLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ExportOPML not implemented") } -func (UnimplementedLensServer) ImportOPML(context.Context, *ImportOPMLRequest) (*ImportOPMLResponse, error) { +func (UnimplementedNeonServer) ImportOPML(context.Context, *ImportOPMLRequest) (*ImportOPMLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ImportOPML not implemented") } -func (UnimplementedLensServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) { +func (UnimplementedNeonServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented") } -func (UnimplementedLensServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) { +func (UnimplementedNeonServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } -func (UnimplementedLensServer) mustEmbedUnimplementedLensServer() {} +func (UnimplementedNeonServer) mustEmbedUnimplementedNeonServer() {} -// UnsafeLensServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to LensServer will +// UnsafeNeonServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to NeonServer will // result in compilation errors. -type UnsafeLensServer interface { - mustEmbedUnimplementedLensServer() +type UnsafeNeonServer interface { + mustEmbedUnimplementedNeonServer() } -func RegisterLensServer(s grpc.ServiceRegistrar, srv LensServer) { - s.RegisterService(&Lens_ServiceDesc, srv) +func RegisterNeonServer(s grpc.ServiceRegistrar, srv NeonServer) { + s.RegisterService(&Neon_ServiceDesc, srv) } -func _Lens_AddFeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_AddFeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddFeedRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).AddFeed(ctx, in) + return srv.(NeonServer).AddFeed(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_AddFeed_FullMethodName, + FullMethod: Neon_AddFeed_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).AddFeed(ctx, req.(*AddFeedRequest)) + return srv.(NeonServer).AddFeed(ctx, req.(*AddFeedRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_EditFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_EditFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EditFeedsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).EditFeeds(ctx, in) + return srv.(NeonServer).EditFeeds(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_EditFeeds_FullMethodName, + FullMethod: Neon_EditFeeds_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).EditFeeds(ctx, req.(*EditFeedsRequest)) + return srv.(NeonServer).EditFeeds(ctx, req.(*EditFeedsRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_ListFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_ListFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListFeedsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).ListFeeds(ctx, in) + return srv.(NeonServer).ListFeeds(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_ListFeeds_FullMethodName, + FullMethod: Neon_ListFeeds_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).ListFeeds(ctx, req.(*ListFeedsRequest)) + return srv.(NeonServer).ListFeeds(ctx, req.(*ListFeedsRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_PullFeeds_Handler(srv interface{}, stream grpc.ServerStream) error { +func _Neon_PullFeeds_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(PullFeedsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(LensServer).PullFeeds(m, &lensPullFeedsServer{stream}) + return srv.(NeonServer).PullFeeds(m, &neonPullFeedsServer{stream}) } -type Lens_PullFeedsServer interface { +type Neon_PullFeedsServer interface { Send(*PullFeedsResponse) error grpc.ServerStream } -type lensPullFeedsServer struct { +type neonPullFeedsServer struct { grpc.ServerStream } -func (x *lensPullFeedsServer) Send(m *PullFeedsResponse) error { +func (x *neonPullFeedsServer) Send(m *PullFeedsResponse) error { return x.ServerStream.SendMsg(m) } -func _Lens_DeleteFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_DeleteFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteFeedsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).DeleteFeeds(ctx, in) + return srv.(NeonServer).DeleteFeeds(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_DeleteFeeds_FullMethodName, + FullMethod: Neon_DeleteFeeds_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).DeleteFeeds(ctx, req.(*DeleteFeedsRequest)) + return srv.(NeonServer).DeleteFeeds(ctx, req.(*DeleteFeedsRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_ListEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_ListEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListEntriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).ListEntries(ctx, in) + return srv.(NeonServer).ListEntries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_ListEntries_FullMethodName, + FullMethod: Neon_ListEntries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).ListEntries(ctx, req.(*ListEntriesRequest)) + return srv.(NeonServer).ListEntries(ctx, req.(*ListEntriesRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_EditEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_EditEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EditEntriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).EditEntries(ctx, in) + return srv.(NeonServer).EditEntries(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_EditEntries_FullMethodName, + FullMethod: Neon_EditEntries_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).EditEntries(ctx, req.(*EditEntriesRequest)) + return srv.(NeonServer).EditEntries(ctx, req.(*EditEntriesRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_GetEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_GetEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetEntryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).GetEntry(ctx, in) + return srv.(NeonServer).GetEntry(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_GetEntry_FullMethodName, + FullMethod: Neon_GetEntry_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).GetEntry(ctx, req.(*GetEntryRequest)) + return srv.(NeonServer).GetEntry(ctx, req.(*GetEntryRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_ExportOPML_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_ExportOPML_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ExportOPMLRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).ExportOPML(ctx, in) + return srv.(NeonServer).ExportOPML(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_ExportOPML_FullMethodName, + FullMethod: Neon_ExportOPML_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).ExportOPML(ctx, req.(*ExportOPMLRequest)) + return srv.(NeonServer).ExportOPML(ctx, req.(*ExportOPMLRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_ImportOPML_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_ImportOPML_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ImportOPMLRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).ImportOPML(ctx, in) + return srv.(NeonServer).ImportOPML(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_ImportOPML_FullMethodName, + FullMethod: Neon_ImportOPML_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).ImportOPML(ctx, req.(*ImportOPMLRequest)) + return srv.(NeonServer).ImportOPML(ctx, req.(*ImportOPMLRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetStatsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).GetStats(ctx, in) + return srv.(NeonServer).GetStats(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_GetStats_FullMethodName, + FullMethod: Neon_GetStats_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).GetStats(ctx, req.(*GetStatsRequest)) + return srv.(NeonServer).GetStats(ctx, req.(*GetStatsRequest)) } return interceptor(ctx, in, info, handler) } -func _Lens_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _Neon_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(LensServer).GetInfo(ctx, in) + return srv.(NeonServer).GetInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Lens_GetInfo_FullMethodName, + FullMethod: Neon_GetInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LensServer).GetInfo(ctx, req.(*GetInfoRequest)) + return srv.(NeonServer).GetInfo(ctx, req.(*GetInfoRequest)) } return interceptor(ctx, in, info, handler) } -// Lens_ServiceDesc is the grpc.ServiceDesc for Lens service. +// Neon_ServiceDesc is the grpc.ServiceDesc for Neon service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var Lens_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "lens.Lens", - HandlerType: (*LensServer)(nil), +var Neon_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "neon.Neon", + HandlerType: (*NeonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFeed", - Handler: _Lens_AddFeed_Handler, + Handler: _Neon_AddFeed_Handler, }, { MethodName: "EditFeeds", - Handler: _Lens_EditFeeds_Handler, + Handler: _Neon_EditFeeds_Handler, }, { MethodName: "ListFeeds", - Handler: _Lens_ListFeeds_Handler, + Handler: _Neon_ListFeeds_Handler, }, { MethodName: "DeleteFeeds", - Handler: _Lens_DeleteFeeds_Handler, + Handler: _Neon_DeleteFeeds_Handler, }, { MethodName: "ListEntries", - Handler: _Lens_ListEntries_Handler, + Handler: _Neon_ListEntries_Handler, }, { MethodName: "EditEntries", - Handler: _Lens_EditEntries_Handler, + Handler: _Neon_EditEntries_Handler, }, { MethodName: "GetEntry", - Handler: _Lens_GetEntry_Handler, + Handler: _Neon_GetEntry_Handler, }, { MethodName: "ExportOPML", - Handler: _Lens_ExportOPML_Handler, + Handler: _Neon_ExportOPML_Handler, }, { MethodName: "ImportOPML", - Handler: _Lens_ImportOPML_Handler, + Handler: _Neon_ImportOPML_Handler, }, { MethodName: "GetStats", - Handler: _Lens_GetStats_Handler, + Handler: _Neon_GetStats_Handler, }, { MethodName: "GetInfo", - Handler: _Lens_GetInfo_Handler, + Handler: _Neon_GetInfo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "PullFeeds", - Handler: _Lens_PullFeeds_Handler, + Handler: _Neon_PullFeeds_Handler, ServerStreams: true, }, }, - Metadata: "lens.proto", + Metadata: "neon.proto", } diff --git a/cmd/cmd.go b/cmd/cmd.go index 72c2623..0f1a6ea 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -14,14 +14,14 @@ import ( "github.com/spf13/viper" "golang.org/x/net/context" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) const dbPathKey = "db-path" // FIXME: Update value for non-linux systems. var ( - defaultDBPath = "$XDG_DATA_HOME/lens/lens.db" + defaultDBPath = "$XDG_DATA_HOME/neon/neon.db" defaultServerAddr = "127.0.0.1:5151" ) diff --git a/cmd/cmd_linux.go b/cmd/cmd_linux.go index aa05591..a8a1bcd 100644 --- a/cmd/cmd_linux.go +++ b/cmd/cmd_linux.go @@ -9,7 +9,7 @@ import ( "path/filepath" "github.com/adrg/xdg" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func stateDir() (string, error) { diff --git a/cmd/cmd_nonlinux.go b/cmd/cmd_nonlinux.go index 4852c24..d36da76 100644 --- a/cmd/cmd_nonlinux.go +++ b/cmd/cmd_nonlinux.go @@ -9,7 +9,7 @@ import ( "os" "path/filepath" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func stateDir() (string, error) { diff --git a/cmd/cmd_test.go b/cmd/cmd_test.go index 4869e48..cb7e335 100644 --- a/cmd/cmd_test.go +++ b/cmd/cmd_test.go @@ -18,7 +18,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func TestNoArgs(t *testing.T) { @@ -27,7 +27,7 @@ func TestNoArgs(t *testing.T) { assert.Empty(t, stderr) assert.Contains(t, stdout, "Feed reader suite") - assert.Contains(t, stdout, `Use "lens [command] --help" for more information`) + assert.Contains(t, stdout, `Use "neon [command] --help" for more information`) } func TestServer(t *testing.T) { diff --git a/cmd/feed.go b/cmd/feed.go index 228455d..44232a2 100644 --- a/cmd/feed.go +++ b/cmd/feed.go @@ -6,7 +6,7 @@ package cmd import ( "github.com/spf13/cobra" - "github.com/bow/lens/internal/database" + "github.com/bow/neon/internal/database" ) func newFeedCommand() *cobra.Command { diff --git a/cmd/feed_add.go b/cmd/feed_add.go index 1c7e478..db0dc99 100644 --- a/cmd/feed_add.go +++ b/cmd/feed_add.go @@ -9,7 +9,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func newFeedAddCommand() *cobra.Command { diff --git a/cmd/feed_export.go b/cmd/feed_export.go index 2364649..e739878 100644 --- a/cmd/feed_export.go +++ b/cmd/feed_export.go @@ -11,8 +11,8 @@ import ( "github.com/spf13/cobra" - "github.com/bow/lens/internal" - "github.com/bow/lens/internal/opml" + "github.com/bow/neon/internal" + "github.com/bow/neon/internal/opml" ) func newFeedExportCommand() *cobra.Command { diff --git a/cmd/feed_import.go b/cmd/feed_import.go index 250b214..f132ce2 100644 --- a/cmd/feed_import.go +++ b/cmd/feed_import.go @@ -11,7 +11,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func newFeedImportCommand() *cobra.Command { diff --git a/cmd/feed_list.go b/cmd/feed_list.go index d02538f..a132507 100644 --- a/cmd/feed_list.go +++ b/cmd/feed_list.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func newFeedListCommand() *cobra.Command { diff --git a/cmd/feed_list_entries.go b/cmd/feed_list_entries.go index b08a348..156eb8e 100644 --- a/cmd/feed_list_entries.go +++ b/cmd/feed_list_entries.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func newFeedListEntriesCommand() *cobra.Command { diff --git a/cmd/feed_pull.go b/cmd/feed_pull.go index db93a40..ca79bc6 100644 --- a/cmd/feed_pull.go +++ b/cmd/feed_pull.go @@ -13,7 +13,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func newFeedPullCommand() *cobra.Command { diff --git a/cmd/feed_show_entry.go b/cmd/feed_show_entry.go index 8f8f6d8..5f5176e 100644 --- a/cmd/feed_show_entry.go +++ b/cmd/feed_show_entry.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func newFeedShowEntryCommand() *cobra.Command { diff --git a/cmd/reader.go b/cmd/reader.go index 9175ba2..701c8c4 100644 --- a/cmd/reader.go +++ b/cmd/reader.go @@ -16,8 +16,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - "github.com/bow/lens/internal/reader" - "github.com/bow/lens/internal/server" + "github.com/bow/neon/internal/reader" + "github.com/bow/neon/internal/server" ) func newReaderCommand() *cobra.Command { diff --git a/cmd/root.go b/cmd/root.go index c05d71b..e2ea4be 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,7 +11,7 @@ import ( "golang.org/x/text/cases" "golang.org/x/text/language" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) // New creates a new command along with its command-line flags. diff --git a/cmd/server.go b/cmd/server.go index f4f750c..45d5cfb 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -11,8 +11,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/bow/lens/internal/database" - "github.com/bow/lens/internal/server" + "github.com/bow/neon/internal/database" + "github.com/bow/neon/internal/server" ) // newServerCommand creates a new 'server' subcommand along with its command-line flags. diff --git a/cmd/server_show_proto.go b/cmd/server_show_proto.go index 969c5d8..c853531 100644 --- a/cmd/server_show_proto.go +++ b/cmd/server_show_proto.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/bow/lens/api" + "github.com/bow/neon/api" ) // newServerShowProtoCommand creates a new subcommand for showing the server's protobuf diff --git a/cmd/version.go b/cmd/version.go index 608f3b5..a7bee1a 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) // newVersionCommand creates a new 'version' subcommand. diff --git a/go.mod b/go.mod index d30c853..500560e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bow/lens +module github.com/bow/neon go 1.21 diff --git a/internal/database/add_feed.go b/internal/database/add_feed.go index 3d78722..de448bb 100644 --- a/internal/database/add_feed.go +++ b/internal/database/add_feed.go @@ -10,7 +10,7 @@ import ( "github.com/mmcdole/gofeed" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) // AddFeed adds the given feed into the database. diff --git a/internal/database/database.go b/internal/database/database.go index a70e5bc..f8d22eb 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -17,8 +17,8 @@ import ( "modernc.org/sqlite" sqlite3 "modernc.org/sqlite/lib" - "github.com/bow/lens/internal" - "github.com/bow/lens/internal/database/migration" + "github.com/bow/neon/internal" + "github.com/bow/neon/internal/database/migration" ) type ID = uint32 diff --git a/internal/database/delete_feeds.go b/internal/database/delete_feeds.go index 28e4bb6..078eb59 100644 --- a/internal/database/delete_feeds.go +++ b/internal/database/delete_feeds.go @@ -7,7 +7,7 @@ import ( "context" "database/sql" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) DeleteFeeds(ctx context.Context, ids []internal.ID) error { diff --git a/internal/database/edit_entries.go b/internal/database/edit_entries.go index fa9f0a4..40c97dc 100644 --- a/internal/database/edit_entries.go +++ b/internal/database/edit_entries.go @@ -7,7 +7,7 @@ import ( "context" "database/sql" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) // EditEntries updates fields of an entry. diff --git a/internal/database/edit_entries_test.go b/internal/database/edit_entries_test.go index bb8b513..5c2c92e 100644 --- a/internal/database/edit_entries_test.go +++ b/internal/database/edit_entries_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func TestEditEntriesOkEmpty(t *testing.T) { diff --git a/internal/database/edit_feeds.go b/internal/database/edit_feeds.go index 9db1ee8..aec0397 100644 --- a/internal/database/edit_feeds.go +++ b/internal/database/edit_feeds.go @@ -7,7 +7,7 @@ import ( "context" "database/sql" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) // EditFeed updates fields of an feed. diff --git a/internal/database/edit_feeds_test.go b/internal/database/edit_feeds_test.go index cadc72f..0faff35 100644 --- a/internal/database/edit_feeds_test.go +++ b/internal/database/edit_feeds_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func TestEditFeedsOkEmpty(t *testing.T) { diff --git a/internal/database/export_subscription.go b/internal/database/export_subscription.go index 92ce09b..36fc80d 100644 --- a/internal/database/export_subscription.go +++ b/internal/database/export_subscription.go @@ -7,7 +7,7 @@ import ( "context" "database/sql" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) ExportSubscription( diff --git a/internal/database/get_entry.go b/internal/database/get_entry.go index a622c74..fef945d 100644 --- a/internal/database/get_entry.go +++ b/internal/database/get_entry.go @@ -8,7 +8,7 @@ import ( "database/sql" "errors" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) GetEntry( diff --git a/internal/database/get_global_stats.go b/internal/database/get_global_stats.go index b885b8c..9694d5a 100644 --- a/internal/database/get_global_stats.go +++ b/internal/database/get_global_stats.go @@ -8,7 +8,7 @@ import ( "database/sql" "errors" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) GetGlobalStats(ctx context.Context) (*internal.Stats, error) { diff --git a/internal/database/import_subscription.go b/internal/database/import_subscription.go index 890618e..624e95c 100644 --- a/internal/database/import_subscription.go +++ b/internal/database/import_subscription.go @@ -8,7 +8,7 @@ import ( "database/sql" "time" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) ImportSubscription( diff --git a/internal/database/import_subscription_test.go b/internal/database/import_subscription_test.go index 9fbe12c..e1e7411 100644 --- a/internal/database/import_subscription_test.go +++ b/internal/database/import_subscription_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func TestImportSubscriptionOkNoFeeds(t *testing.T) { diff --git a/internal/database/list_entries.go b/internal/database/list_entries.go index ad142b5..0f696ee 100644 --- a/internal/database/list_entries.go +++ b/internal/database/list_entries.go @@ -8,7 +8,7 @@ import ( "database/sql" "encoding/json" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) ListEntries( diff --git a/internal/database/list_feeds.go b/internal/database/list_feeds.go index f210cc2..d39ba7f 100644 --- a/internal/database/list_feeds.go +++ b/internal/database/list_feeds.go @@ -7,7 +7,7 @@ import ( "context" "database/sql" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) ListFeeds(ctx context.Context) ([]*internal.Feed, error) { diff --git a/internal/database/pull_feeds.go b/internal/database/pull_feeds.go index ce3024b..b2fcd91 100644 --- a/internal/database/pull_feeds.go +++ b/internal/database/pull_feeds.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func (db *SQLite) PullFeeds( diff --git a/internal/database/pull_feeds_test.go b/internal/database/pull_feeds_test.go index 7fe3287..edacb72 100644 --- a/internal/database/pull_feeds_test.go +++ b/internal/database/pull_feeds_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func TestPullFeedsAllOkEmptyDB(t *testing.T) { diff --git a/internal/database/record.go b/internal/database/record.go index 0359c31..7efbccc 100644 --- a/internal/database/record.go +++ b/internal/database/record.go @@ -13,7 +13,7 @@ import ( "github.com/mmcdole/gofeed" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) type feedRecord struct { diff --git a/internal/internal.go b/internal/internal.go index 5f129cc..2ac539c 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -11,7 +11,7 @@ import ( // AppName returns the application name. func AppName() string { - return "lens" + return "neon" } // EnvKey returns the environment variable key for configuration. @@ -24,11 +24,11 @@ func EnvKey(key string) string { // Banner shows the application name as ASCII art. func Banner() string { - return ` __ - / / ___ ____ _____ - / / / _ \ / __ \ / ___/ - / /___/ __// / / /(__ ) -/_____/\___//_/ /_//____/` + return ` _ __ + / | / /___ ____ ____ + / |/ // _ \ / __ \ / __ \ + / /| // __// /_/ // / / / +/_/ |_/ \___/ \____//_/ /_/` } func Dedup[T comparable](values []T) []T { diff --git a/internal/model.go b/internal/model.go index 796bde2..15af595 100644 --- a/internal/model.go +++ b/internal/model.go @@ -8,8 +8,8 @@ import ( "strconv" "time" - "github.com/bow/lens/api" - "github.com/bow/lens/internal/opml" + "github.com/bow/neon/api" + "github.com/bow/neon/internal/opml" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -301,4 +301,4 @@ const ( PullFail ) -const defaultExportTitle = "lens export" +const defaultExportTitle = "neon export" diff --git a/internal/opml/opml.go b/internal/opml/opml.go index b8e3bb4..90524bf 100644 --- a/internal/opml/opml.go +++ b/internal/opml/opml.go @@ -124,7 +124,7 @@ type Outline struct { Categories Categories `xml:"category,attr"` Description *string `xml:"description,attr"` HTMLURL *string `xml:"htmlUrl,attr"` - IsStarred *bool `xml:"https://github.com/bow/lens isStarred,attr,omitempty"` + IsStarred *bool `xml:"https://github.com/bow/neon isStarred,attr,omitempty"` } type Outliner interface { diff --git a/internal/opml/opml_test.go b/internal/opml/opml_test.go index b96bfa8..c1a44cd 100644 --- a/internal/opml/opml_test.go +++ b/internal/opml/opml_test.go @@ -38,8 +38,8 @@ func TestParseOkExtended(t *testing.T) { version="RSS2" xmlUrl="http://news.com.com/2547-1_3-0-5.xml" category="news,tech" - xmlns:lens="https://github.com/bow/lens" - lens:isStarred="true" + xmlns:neon="https://github.com/bow/neon" + neon:isStarred="true" /> [-]. `, internal.AppName()) @@ -828,7 +828,7 @@ func centerBanner(text string, width int) string { return text } - leftPad := strings.Repeat(" ", ((width-maxLineWidth)/2)-leftPopupMargin) + leftPad := strings.Repeat(" ", ((width-maxLineWidth)/2)-(leftPopupMargin*2)) paddedLines := make([]string, len(lines)) for i, line := range lines { paddedLines[i] = fmt.Sprintf("%s%s", leftPad, line) diff --git a/internal/reader/reader_test.go b/internal/reader/reader_test.go index e7e6f21..0cbd4c2 100644 --- a/internal/reader/reader_test.go +++ b/internal/reader/reader_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/bow/lens/api" + "github.com/bow/neon/api" "github.com/gdamore/tcell/v2" "github.com/golang/mock/gomock" "github.com/rivo/tview" @@ -85,7 +85,7 @@ func setupReaderTest( r := require.New(t) - client := NewMockLensClient(gomock.NewController(t)) + client := NewMockNeonClient(gomock.NewController(t)) // Needed since we call the list feeds endpoint prior to Show. client.EXPECT(). ListFeeds(gomock.Any(), gomock.Any()). diff --git a/internal/reader/status_bar.go b/internal/reader/status_bar.go index 6725b8a..c57fc02 100644 --- a/internal/reader/status_bar.go +++ b/internal/reader/status_bar.go @@ -12,7 +12,7 @@ import ( "github.com/gdamore/tcell/v2" "github.com/rivo/tview" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) const iconAllRead = "✔" diff --git a/internal/server/error.go b/internal/server/error.go index d19de58..7aae55d 100644 --- a/internal/server/error.go +++ b/internal/server/error.go @@ -12,7 +12,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/bow/lens/internal" + "github.com/bow/neon/internal" ) func storeErrorUnaryServerInterceptor( diff --git a/internal/server/pb.go b/internal/server/pb.go index 44a7777..535fe98 100644 --- a/internal/server/pb.go +++ b/internal/server/pb.go @@ -8,8 +8,8 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" - "github.com/bow/lens/api" - "github.com/bow/lens/internal" + "github.com/bow/neon/api" + "github.com/bow/neon/internal" ) func toFeedPb(feed *internal.Feed) *api.Feed { diff --git a/internal/server/server.go b/internal/server/server.go index f13a2dc..149884d 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -21,9 +21,9 @@ import ( healthapi "google.golang.org/grpc/health/grpc_health_v1" "google.golang.org/grpc/reflection" - "github.com/bow/lens/api" - "github.com/bow/lens/internal" - "github.com/bow/lens/internal/database" + "github.com/bow/neon/api" + "github.com/bow/neon/internal" + "github.com/bow/neon/internal/database" ) const ( @@ -44,7 +44,7 @@ type Server struct { func newServer(lis net.Listener, grpcServer *grpc.Server, str internal.FeedStore) *Server { svc := service{store: str} - api.RegisterLensServer(grpcServer, &svc) + api.RegisterNeonServer(grpcServer, &svc) var ( funcCh = make(chan struct{}, 1) @@ -93,7 +93,7 @@ func (s *Server) Addr() net.Addr { } func (s *Server) ServiceName() string { - return api.Lens_ServiceDesc.ServiceName + return api.Neon_ServiceDesc.ServiceName } func (s *Server) Serve(ctx context.Context) error { diff --git a/internal/server/server_test.go b/internal/server/server_test.go index 44ce730..f5c616b 100644 --- a/internal/server/server_test.go +++ b/internal/server/server_test.go @@ -17,8 +17,8 @@ import ( "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/health/grpc_health_v1" - "github.com/bow/lens/api" - "github.com/bow/lens/internal" + "github.com/bow/neon/api" + "github.com/bow/neon/internal" ) func defaultTestServerBuilder(t *testing.T) *Builder { @@ -50,7 +50,7 @@ func (tcb *testClientBuilder) ServerStore(str internal.FeedStore) *testClientBui return tcb } -func (tcb *testClientBuilder) Build() api.LensClient { +func (tcb *testClientBuilder) Build() api.NeonClient { tcb.t.Helper() t := tcb.t @@ -123,7 +123,7 @@ func newTestClient( t *testing.T, addr net.Addr, opts ...grpc.DialOption, -) (api.LensClient, *grpc.ClientConn) { +) (api.NeonClient, *grpc.ClientConn) { t.Helper() dialer := func(_ context.Context, rawAddr string) (net.Conn, error) { @@ -132,13 +132,13 @@ func newTestClient( opts = append(opts, grpc.WithContextDialer(dialer)) conn, err := grpc.Dial(addr.String(), opts...) require.NoError(t, err) - client := api.NewLensClient(conn) + client := api.NewNeonClient(conn) return client, conn } // setupServerTest is a shortcut method for creating server tests through a client. -func setupServerTest(t *testing.T) (api.LensClient, *MockFeedStore) { +func setupServerTest(t *testing.T) (api.NeonClient, *MockFeedStore) { t.Helper() str := NewMockFeedStore(gomock.NewController(t)) diff --git a/internal/server/service.go b/internal/server/service.go index 1840b1f..a2c1c74 100644 --- a/internal/server/service.go +++ b/internal/server/service.go @@ -10,13 +10,13 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/bow/lens/api" - "github.com/bow/lens/internal" + "github.com/bow/neon/api" + "github.com/bow/neon/internal" ) // service implements the service API. type service struct { - api.UnimplementedLensServer + api.UnimplementedNeonServer store internal.FeedStore } @@ -97,7 +97,7 @@ func (svc *service) DeleteFeeds( // PullFeeds satisfies the service API. func (svc *service) PullFeeds( req *api.PullFeedsRequest, - stream api.Lens_PullFeedsServer, + stream api.Neon_PullFeedsServer, ) error { convert := func(pr internal.PullResult) (*api.PullFeedsResponse, error) { diff --git a/internal/server/service_test.go b/internal/server/service_test.go index 50a99d8..85e05e3 100644 --- a/internal/server/service_test.go +++ b/internal/server/service_test.go @@ -18,8 +18,8 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/protobuf/proto" - "github.com/bow/lens/api" - "github.com/bow/lens/internal" + "github.com/bow/neon/api" + "github.com/bow/neon/internal" ) func TestAddFeedOk(t *testing.T) { @@ -715,7 +715,7 @@ func TestExportOPMLOk(t *testing.T) { ExportSubscription(gomock.Any(), nil). Return( &internal.Subscription{ - Title: pointer("lens export"), + Title: pointer("neon export"), Feeds: []*internal.Feed{ { Title: "Feed Q", @@ -744,11 +744,11 @@ func TestExportOPMLOk(t *testing.T) { regexp.MustCompile(`<\?xml version="1.0" encoding="UTF-8"\?> - lens export + neon export \d+ [A-Z][a-z]+ \d+ \d+:\d+ .+ - + @@ -767,11 +767,11 @@ func TestImportOPMLOk(t *testing.T) { payload := []byte(` - lens export + neon export Wed, 09 Nov 2023 04:55:19 CET - + diff --git a/internal/server/store_mock_test.go b/internal/server/store_mock_test.go index 566dfcf..8ff3c42 100644 --- a/internal/server/store_mock_test.go +++ b/internal/server/store_mock_test.go @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - internal "github.com/bow/lens/internal" + internal "github.com/bow/neon/internal" gomock "github.com/golang/mock/gomock" ) diff --git a/main.go b/main.go index 583d411..8b7ad22 100644 --- a/main.go +++ b/main.go @@ -9,8 +9,8 @@ import ( "github.com/rs/zerolog/log" - "github.com/bow/lens/cmd" - "github.com/bow/lens/internal" + "github.com/bow/neon/cmd" + "github.com/bow/neon/internal" ) func main() {