diff --git a/tools/indexer-service/api.go b/tools/indexer-service/api.go index d18b12e6..56e5e0f3 100644 --- a/tools/indexer-service/api.go +++ b/tools/indexer-service/api.go @@ -7,7 +7,7 @@ import ( "connectrpc.com/connect" "go.uber.org/zap" - api_gen "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go" + api_gen "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go" ) func (s *indexerService) GetHomePosts(ctx context.Context, req *connect.Request[api_gen.GetHomePostsRequest]) (*connect.Response[api_gen.GetHomePostsResponse], error) { diff --git a/tools/indexer-service/api/gen/es/indexerservice_connect.d.ts b/tools/indexer-service/api/gen/es/indexerservice_connect.d.ts index d0c1f4d3..73ce4dfe 100644 --- a/tools/indexer-service/api/gen/es/indexerservice_connect.d.ts +++ b/tools/indexer-service/api/gen/es/indexerservice_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v1.4.0 +// @generated by protoc-gen-connect-es v1.6.1 // @generated from file indexerservice.proto (package land.gno.dsocial.indexerservice.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/tools/indexer-service/api/gen/es/indexerservice_connect.js b/tools/indexer-service/api/gen/es/indexerservice_connect.js index dde4a906..c944b827 100644 --- a/tools/indexer-service/api/gen/es/indexerservice_connect.js +++ b/tools/indexer-service/api/gen/es/indexerservice_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v1.4.0 +// @generated by protoc-gen-connect-es v1.6.1 // @generated from file indexerservice.proto (package land.gno.dsocial.indexerservice.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/tools/indexer-service/api/gen/es/indexerservice_pb.d.ts b/tools/indexer-service/api/gen/es/indexerservice_pb.d.ts index 184e709e..3259c389 100644 --- a/tools/indexer-service/api/gen/es/indexerservice_pb.d.ts +++ b/tools/indexer-service/api/gen/es/indexerservice_pb.d.ts @@ -1,85 +1,19 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.2.2 // @generated from file indexerservice.proto (package land.gno.dsocial.indexerservice.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; /** - * The ErrCode enum defines errors for gRPC API functions. These are converted - * from the Go error types returned by gnoclient. - * - * ---------------- - * Special errors - * ---------------- - * - * @generated from enum land.gno.dsocial.indexerservice.v1.ErrCode + * Describes the file indexerservice.proto. */ -export declare enum ErrCode { - /** - * Undefined is the default value. It should never be set manually - * - * @generated from enum value: Undefined = 0; - */ - Undefined = 0, - - /** - * TODO indicates that you plan to create an error later - * - * @generated from enum value: TODO = 1; - */ - TODO = 1, - - /** - * ErrNotImplemented indicates that a method is not implemented yet - * - * @generated from enum value: ErrNotImplemented = 2; - */ - ErrNotImplemented = 2, - - /** - * ErrInternal indicates an unknown error (without Code), i.e. in gRPC - * - * @generated from enum value: ErrInternal = 3; - */ - ErrInternal = 3, - - /** - * @generated from enum value: ErrInvalidInput = 100; - */ - ErrInvalidInput = 100, - - /** - * @generated from enum value: ErrMissingInput = 101; - */ - ErrMissingInput = 101, - - /** - * @generated from enum value: ErrSerialization = 102; - */ - ErrSerialization = 102, - - /** - * @generated from enum value: ErrDeserialization = 103; - */ - ErrDeserialization = 103, - - /** - * @generated from enum value: ErrInitService = 104; - */ - ErrInitService = 104, - - /** - * @generated from enum value: ErrRunGRPCServer = 105; - */ - ErrRunGRPCServer = 105, -} +export declare const file_indexerservice: GenFile; /** * @generated from message land.gno.dsocial.indexerservice.v1.GetHomePostsRequest */ -export declare class GetHomePostsRequest extends Message { +export declare type GetHomePostsRequest = Message<"land.gno.dsocial.indexerservice.v1.GetHomePostsRequest"> & { /** * @generated from field: string userPostAddr = 1; */ @@ -94,26 +28,18 @@ export declare class GetHomePostsRequest extends Message { * @generated from field: uint64 endIndex = 3; */ endIndex: bigint; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.GetHomePostsRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetHomePostsRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetHomePostsRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetHomePostsRequest; - - static equals(a: GetHomePostsRequest | PlainMessage | undefined, b: GetHomePostsRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.GetHomePostsRequest. + * Use `create(GetHomePostsRequestSchema)` to create a new message. + */ +export declare const GetHomePostsRequestSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.UserAndPostID */ -export declare class UserAndPostID extends Message { +export declare type UserAndPostID = Message<"land.gno.dsocial.indexerservice.v1.UserAndPostID"> & { /** * @generated from field: string userPostAddr = 1; */ @@ -123,26 +49,18 @@ export declare class UserAndPostID extends Message { * @generated from field: uint64 postID = 2; */ postID: bigint; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.UserAndPostID"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UserAndPostID; - - static fromJson(jsonValue: JsonValue, options?: Partial): UserAndPostID; - - static fromJsonString(jsonString: string, options?: Partial): UserAndPostID; - - static equals(a: UserAndPostID | PlainMessage | undefined, b: UserAndPostID | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.UserAndPostID. + * Use `create(UserAndPostIDSchema)` to create a new message. + */ +export declare const UserAndPostIDSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.GetHomePostsResponse */ -export declare class GetHomePostsResponse extends Message { +export declare type GetHomePostsResponse = Message<"land.gno.dsocial.indexerservice.v1.GetHomePostsResponse"> & { /** * @generated from field: uint64 nPosts = 1; */ @@ -152,45 +70,30 @@ export declare class GetHomePostsResponse extends Message * @generated from field: repeated land.gno.dsocial.indexerservice.v1.UserAndPostID homePosts = 2; */ homePosts: UserAndPostID[]; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.GetHomePostsResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetHomePostsResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetHomePostsResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetHomePostsResponse; - - static equals(a: GetHomePostsResponse | PlainMessage | undefined, b: GetHomePostsResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.GetHomePostsResponse. + * Use `create(GetHomePostsResponseSchema)` to create a new message. + */ +export declare const GetHomePostsResponseSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest */ -export declare class StreamPostReplyRequest extends Message { - constructor(data?: PartialMessage); +export declare type StreamPostReplyRequest = Message<"land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest"> & { +}; - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamPostReplyRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamPostReplyRequest; - - static fromJsonString(jsonString: string, options?: Partial): StreamPostReplyRequest; - - static equals(a: StreamPostReplyRequest | PlainMessage | undefined, b: StreamPostReplyRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest. + * Use `create(StreamPostReplyRequestSchema)` to create a new message. + */ +export declare const StreamPostReplyRequestSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse */ -export declare class StreamPostReplyResponse extends Message { +export declare type StreamPostReplyResponse = Message<"land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse"> & { /** * @generated from field: string userReplyAddr = 1; */ @@ -220,139 +123,212 @@ export declare class StreamPostReplyResponse extends Message); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamPostReplyResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamPostReplyResponse; - - static fromJsonString(jsonString: string, options?: Partial): StreamPostReplyResponse; - - static equals(a: StreamPostReplyResponse | PlainMessage | undefined, b: StreamPostReplyResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse. + * Use `create(StreamPostReplyResponseSchema)` to create a new message. + */ +export declare const StreamPostReplyResponseSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.HelloRequest */ -export declare class HelloRequest extends Message { +export declare type HelloRequest = Message<"land.gno.dsocial.indexerservice.v1.HelloRequest"> & { /** * @generated from field: string name = 1; */ name: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.HelloRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloRequest; - - static fromJsonString(jsonString: string, options?: Partial): HelloRequest; - - static equals(a: HelloRequest | PlainMessage | undefined, b: HelloRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.HelloRequest. + * Use `create(HelloRequestSchema)` to create a new message. + */ +export declare const HelloRequestSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.HelloResponse */ -export declare class HelloResponse extends Message { +export declare type HelloResponse = Message<"land.gno.dsocial.indexerservice.v1.HelloResponse"> & { /** * @generated from field: string greeting = 1; */ greeting: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.HelloResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloResponse; - - static fromJsonString(jsonString: string, options?: Partial): HelloResponse; - - static equals(a: HelloResponse | PlainMessage | undefined, b: HelloResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.HelloResponse. + * Use `create(HelloResponseSchema)` to create a new message. + */ +export declare const HelloResponseSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.HelloStreamRequest */ -export declare class HelloStreamRequest extends Message { +export declare type HelloStreamRequest = Message<"land.gno.dsocial.indexerservice.v1.HelloStreamRequest"> & { /** * @generated from field: string name = 1; */ name: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.HelloStreamRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamRequest; - - static fromJsonString(jsonString: string, options?: Partial): HelloStreamRequest; - - static equals(a: HelloStreamRequest | PlainMessage | undefined, b: HelloStreamRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.HelloStreamRequest. + * Use `create(HelloStreamRequestSchema)` to create a new message. + */ +export declare const HelloStreamRequestSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.HelloStreamResponse */ -export declare class HelloStreamResponse extends Message { +export declare type HelloStreamResponse = Message<"land.gno.dsocial.indexerservice.v1.HelloStreamResponse"> & { /** * @generated from field: string greeting = 1; */ greeting: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.HelloStreamResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamResponse; - - static fromJsonString(jsonString: string, options?: Partial): HelloStreamResponse; - - static equals(a: HelloStreamResponse | PlainMessage | undefined, b: HelloStreamResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.dsocial.indexerservice.v1.HelloStreamResponse. + * Use `create(HelloStreamResponseSchema)` to create a new message. + */ +export declare const HelloStreamResponseSchema: GenMessage; /** * @generated from message land.gno.dsocial.indexerservice.v1.ErrDetails */ -export declare class ErrDetails extends Message { +export declare type ErrDetails = Message<"land.gno.dsocial.indexerservice.v1.ErrDetails"> & { /** * @generated from field: repeated land.gno.dsocial.indexerservice.v1.ErrCode codes = 1; */ codes: ErrCode[]; +}; + +/** + * Describes the message land.gno.dsocial.indexerservice.v1.ErrDetails. + * Use `create(ErrDetailsSchema)` to create a new message. + */ +export declare const ErrDetailsSchema: GenMessage; + +/** + * The ErrCode enum defines errors for gRPC API functions. These are converted + * from the Go error types returned by gnoclient. + * + * ---------------- + * Special errors + * ---------------- + * + * @generated from enum land.gno.dsocial.indexerservice.v1.ErrCode + */ +export enum ErrCode { + /** + * Undefined is the default value. It should never be set manually + * + * @generated from enum value: Undefined = 0; + */ + Undefined = 0, + + /** + * TODO indicates that you plan to create an error later + * + * @generated from enum value: TODO = 1; + */ + TODO = 1, + + /** + * ErrNotImplemented indicates that a method is not implemented yet + * + * @generated from enum value: ErrNotImplemented = 2; + */ + ErrNotImplemented = 2, - constructor(data?: PartialMessage); + /** + * ErrInternal indicates an unknown error (without Code), i.e. in gRPC + * + * @generated from enum value: ErrInternal = 3; + */ + ErrInternal = 3, - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.indexerservice.v1.ErrDetails"; - static readonly fields: FieldList; + /** + * @generated from enum value: ErrInvalidInput = 100; + */ + ErrInvalidInput = 100, - static fromBinary(bytes: Uint8Array, options?: Partial): ErrDetails; + /** + * @generated from enum value: ErrMissingInput = 101; + */ + ErrMissingInput = 101, - static fromJson(jsonValue: JsonValue, options?: Partial): ErrDetails; + /** + * @generated from enum value: ErrSerialization = 102; + */ + ErrSerialization = 102, - static fromJsonString(jsonString: string, options?: Partial): ErrDetails; + /** + * @generated from enum value: ErrDeserialization = 103; + */ + ErrDeserialization = 103, - static equals(a: ErrDetails | PlainMessage | undefined, b: ErrDetails | PlainMessage | undefined): boolean; + /** + * @generated from enum value: ErrInitService = 104; + */ + ErrInitService = 104, + + /** + * @generated from enum value: ErrRunGRPCServer = 105; + */ + ErrRunGRPCServer = 105, } +/** + * Describes the enum land.gno.dsocial.indexerservice.v1.ErrCode. + */ +export declare const ErrCodeSchema: GenEnum; + +/** + * IndexerService is the service to interact with the dSocial Indexer + * + * @generated from service land.gno.dsocial.indexerservice.v1.IndexerService + */ +export declare const IndexerService: GenService<{ + /** + * @generated from rpc land.gno.dsocial.indexerservice.v1.IndexerService.GetHomePosts + */ + getHomePosts: { + methodKind: "unary"; + input: typeof GetHomePostsRequestSchema; + output: typeof GetHomePostsResponseSchema; + }, + /** + * StreamPostReply returns a stream of PostReply functions that are called in the blockchain + * + * @generated from rpc land.gno.dsocial.indexerservice.v1.IndexerService.StreamPostReply + */ + streamPostReply: { + methodKind: "server_streaming"; + input: typeof StreamPostReplyRequestSchema; + output: typeof StreamPostReplyResponseSchema; + }, + /** + * Hello is for debug purposes + * + * @generated from rpc land.gno.dsocial.indexerservice.v1.IndexerService.Hello + */ + hello: { + methodKind: "unary"; + input: typeof HelloRequestSchema; + output: typeof HelloResponseSchema; + }, + /** + * HelloStream is for debug purposes + * + * @generated from rpc land.gno.dsocial.indexerservice.v1.IndexerService.HelloStream + */ + helloStream: { + methodKind: "server_streaming"; + input: typeof HelloStreamRequestSchema; + output: typeof HelloStreamResponseSchema; + }, +}>; + diff --git a/tools/indexer-service/api/gen/es/indexerservice_pb.js b/tools/indexer-service/api/gen/es/indexerservice_pb.js index ce5a9bc3..d47c0adc 100644 --- a/tools/indexer-service/api/gen/es/indexerservice_pb.js +++ b/tools/indexer-service/api/gen/es/indexerservice_pb.js @@ -1,140 +1,109 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.2.2 // @generated from file indexerservice.proto (package land.gno.dsocial.indexerservice.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { proto3 } from "@bufbuild/protobuf"; +import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv1"; /** - * The ErrCode enum defines errors for gRPC API functions. These are converted - * from the Go error types returned by gnoclient. - * - * ---------------- - * Special errors - * ---------------- - * - * @generated from enum land.gno.dsocial.indexerservice.v1.ErrCode + * Describes the file indexerservice.proto. + */ +export const file_indexerservice = /*@__PURE__*/ + fileDesc("ChRpbmRleGVyc2VydmljZS5wcm90bxIibGFuZC5nbm8uZHNvY2lhbC5pbmRleGVyc2VydmljZS52MSJRChNHZXRIb21lUG9zdHNSZXF1ZXN0EhQKDHVzZXJQb3N0QWRkchgBIAEoCRISCgpzdGFydEluZGV4GAIgASgEEhAKCGVuZEluZGV4GAMgASgEIjUKDVVzZXJBbmRQb3N0SUQSFAoMdXNlclBvc3RBZGRyGAEgASgJEg4KBnBvc3RJRBgCIAEoBCJsChRHZXRIb21lUG9zdHNSZXNwb25zZRIOCgZuUG9zdHMYASABKAQSRAoJaG9tZVBvc3RzGAIgAygLMjEubGFuZC5nbm8uZHNvY2lhbC5pbmRleGVyc2VydmljZS52MS5Vc2VyQW5kUG9zdElEIhgKFlN0cmVhbVBvc3RSZXBseVJlcXVlc3QijAEKF1N0cmVhbVBvc3RSZXBseVJlc3BvbnNlEhUKDXVzZXJSZXBseUFkZHIYASABKAkSFAoMdXNlclBvc3RBZGRyGAIgASgJEhAKCHRocmVhZElEGAMgASgJEg4KBnBvc3RJRBgEIAEoCRIPCgdtZXNzYWdlGAUgASgJEhEKCW5ld1Bvc3RJRBgGIAEoCSIcCgxIZWxsb1JlcXVlc3QSDAoEbmFtZRgBIAEoCSIhCg1IZWxsb1Jlc3BvbnNlEhAKCGdyZWV0aW5nGAEgASgJIiIKEkhlbGxvU3RyZWFtUmVxdWVzdBIMCgRuYW1lGAEgASgJIicKE0hlbGxvU3RyZWFtUmVzcG9uc2USEAoIZ3JlZXRpbmcYASABKAkiSAoKRXJyRGV0YWlscxI6CgVjb2RlcxgBIAMoDjIrLmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuRXJyQ29kZSrMAQoHRXJyQ29kZRINCglVbmRlZmluZWQQABIICgRUT0RPEAESFQoRRXJyTm90SW1wbGVtZW50ZWQQAhIPCgtFcnJJbnRlcm5hbBADEhMKD0VyckludmFsaWRJbnB1dBBkEhMKD0Vyck1pc3NpbmdJbnB1dBBlEhQKEEVyclNlcmlhbGl6YXRpb24QZhIWChJFcnJEZXNlcmlhbGl6YXRpb24QZxISCg5FcnJJbml0U2VydmljZRBoEhQKEEVyclJ1bkdSUENTZXJ2ZXIQaTKUBAoOSW5kZXhlclNlcnZpY2USgQEKDEdldEhvbWVQb3N0cxI3LmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuR2V0SG9tZVBvc3RzUmVxdWVzdBo4LmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuR2V0SG9tZVBvc3RzUmVzcG9uc2USjAEKD1N0cmVhbVBvc3RSZXBseRI6LmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuU3RyZWFtUG9zdFJlcGx5UmVxdWVzdBo7LmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuU3RyZWFtUG9zdFJlcGx5UmVzcG9uc2UwARJsCgVIZWxsbxIwLmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuSGVsbG9SZXF1ZXN0GjEubGFuZC5nbm8uZHNvY2lhbC5pbmRleGVyc2VydmljZS52MS5IZWxsb1Jlc3BvbnNlEoABCgtIZWxsb1N0cmVhbRI2LmxhbmQuZ25vLmRzb2NpYWwuaW5kZXhlcnNlcnZpY2UudjEuSGVsbG9TdHJlYW1SZXF1ZXN0GjcubGFuZC5nbm8uZHNvY2lhbC5pbmRleGVyc2VydmljZS52MS5IZWxsb1N0cmVhbVJlc3BvbnNlMAFCRFo8Z2l0aHViLmNvbS9nbm92ZXJzZS9kc29jaWFsL3Rvb2xzL2luZGV4ZXItc2VydmljZS9hcGkvZ2VuL2dvogIDUlRHYgZwcm90bzM"); + +/** + * Describes the message land.gno.dsocial.indexerservice.v1.GetHomePostsRequest. + * Use `create(GetHomePostsRequestSchema)` to create a new message. + */ +export const GetHomePostsRequestSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 0); + +/** + * Describes the message land.gno.dsocial.indexerservice.v1.UserAndPostID. + * Use `create(UserAndPostIDSchema)` to create a new message. */ -export const ErrCode = /*@__PURE__*/ proto3.makeEnum( - "land.gno.dsocial.indexerservice.v1.ErrCode", - [ - {no: 0, name: "Undefined"}, - {no: 1, name: "TODO"}, - {no: 2, name: "ErrNotImplemented"}, - {no: 3, name: "ErrInternal"}, - {no: 100, name: "ErrInvalidInput"}, - {no: 101, name: "ErrMissingInput"}, - {no: 102, name: "ErrSerialization"}, - {no: 103, name: "ErrDeserialization"}, - {no: 104, name: "ErrInitService"}, - {no: 105, name: "ErrRunGRPCServer"}, - ], -); +export const UserAndPostIDSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 1); /** - * @generated from message land.gno.dsocial.indexerservice.v1.GetHomePostsRequest + * Describes the message land.gno.dsocial.indexerservice.v1.GetHomePostsResponse. + * Use `create(GetHomePostsResponseSchema)` to create a new message. */ -export const GetHomePostsRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.GetHomePostsRequest", - () => [ - { no: 1, name: "userPostAddr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "startIndex", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "endIndex", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); +export const GetHomePostsResponseSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 2); /** - * @generated from message land.gno.dsocial.indexerservice.v1.UserAndPostID + * Describes the message land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest. + * Use `create(StreamPostReplyRequestSchema)` to create a new message. */ -export const UserAndPostID = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.UserAndPostID", - () => [ - { no: 1, name: "userPostAddr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "postID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); +export const StreamPostReplyRequestSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 3); /** - * @generated from message land.gno.dsocial.indexerservice.v1.GetHomePostsResponse + * Describes the message land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse. + * Use `create(StreamPostReplyResponseSchema)` to create a new message. */ -export const GetHomePostsResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.GetHomePostsResponse", - () => [ - { no: 1, name: "nPosts", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "homePosts", kind: "message", T: UserAndPostID, repeated: true }, - ], -); +export const StreamPostReplyResponseSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 4); /** - * @generated from message land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest + * Describes the message land.gno.dsocial.indexerservice.v1.HelloRequest. + * Use `create(HelloRequestSchema)` to create a new message. */ -export const StreamPostReplyRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.StreamPostReplyRequest", - [], -); +export const HelloRequestSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 5); /** - * @generated from message land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse + * Describes the message land.gno.dsocial.indexerservice.v1.HelloResponse. + * Use `create(HelloResponseSchema)` to create a new message. */ -export const StreamPostReplyResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.StreamPostReplyResponse", - () => [ - { no: 1, name: "userReplyAddr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "userPostAddr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "threadID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "postID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "newPostID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HelloResponseSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 6); /** - * @generated from message land.gno.dsocial.indexerservice.v1.HelloRequest + * Describes the message land.gno.dsocial.indexerservice.v1.HelloStreamRequest. + * Use `create(HelloStreamRequestSchema)` to create a new message. */ -export const HelloRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.HelloRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HelloStreamRequestSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 7); /** - * @generated from message land.gno.dsocial.indexerservice.v1.HelloResponse + * Describes the message land.gno.dsocial.indexerservice.v1.HelloStreamResponse. + * Use `create(HelloStreamResponseSchema)` to create a new message. */ -export const HelloResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.HelloResponse", - () => [ - { no: 1, name: "greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HelloStreamResponseSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 8); /** - * @generated from message land.gno.dsocial.indexerservice.v1.HelloStreamRequest + * Describes the message land.gno.dsocial.indexerservice.v1.ErrDetails. + * Use `create(ErrDetailsSchema)` to create a new message. */ -export const HelloStreamRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.HelloStreamRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const ErrDetailsSchema = /*@__PURE__*/ + messageDesc(file_indexerservice, 9); /** - * @generated from message land.gno.dsocial.indexerservice.v1.HelloStreamResponse + * Describes the enum land.gno.dsocial.indexerservice.v1.ErrCode. */ -export const HelloStreamResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.HelloStreamResponse", - () => [ - { no: 1, name: "greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const ErrCodeSchema = /*@__PURE__*/ + enumDesc(file_indexerservice, 0); /** - * @generated from message land.gno.dsocial.indexerservice.v1.ErrDetails + * The ErrCode enum defines errors for gRPC API functions. These are converted + * from the Go error types returned by gnoclient. + * + * ---------------- + * Special errors + * ---------------- + * + * @generated from enum land.gno.dsocial.indexerservice.v1.ErrCode + */ +export const ErrCode = /*@__PURE__*/ + tsEnum(ErrCodeSchema); + +/** + * IndexerService is the service to interact with the dSocial Indexer + * + * @generated from service land.gno.dsocial.indexerservice.v1.IndexerService */ -export const ErrDetails = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.indexerservice.v1.ErrDetails", - () => [ - { no: 1, name: "codes", kind: "enum", T: proto3.getEnumType(ErrCode), repeated: true }, - ], -); +export const IndexerService = /*@__PURE__*/ + serviceDesc(file_indexerservice, 0); diff --git a/tools/indexer-service/api/gen/go/_goconnect/indexerservice.connect.go b/tools/indexer-service/api/gen/go/_goconnect/indexerservice.connect.go index 7b8b2d6e..5a000856 100644 --- a/tools/indexer-service/api/gen/go/_goconnect/indexerservice.connect.go +++ b/tools/indexer-service/api/gen/go/_goconnect/indexerservice.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: api/indexerservice.proto +// Source: indexerservice.proto package _goconnect @@ -8,7 +8,7 @@ import ( connect "connectrpc.com/connect" context "context" errors "errors" - _go "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go" + _go "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go" http "net/http" strings "strings" ) @@ -48,7 +48,7 @@ const ( // These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. var ( - indexerServiceServiceDescriptor = _go.File_api_indexerservice_proto.Services().ByName("IndexerService") + indexerServiceServiceDescriptor = _go.File_indexerservice_proto.Services().ByName("IndexerService") indexerServiceGetHomePostsMethodDescriptor = indexerServiceServiceDescriptor.Methods().ByName("GetHomePosts") indexerServiceStreamPostReplyMethodDescriptor = indexerServiceServiceDescriptor.Methods().ByName("StreamPostReply") indexerServiceHelloMethodDescriptor = indexerServiceServiceDescriptor.Methods().ByName("Hello") diff --git a/tools/indexer-service/api/gen/go/indexerservice.pb.go b/tools/indexer-service/api/gen/go/indexerservice.pb.go index d8b95f73..d4d7685e 100644 --- a/tools/indexer-service/api/gen/go/indexerservice.pb.go +++ b/tools/indexer-service/api/gen/go/indexerservice.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) -// source: api/indexerservice.proto +// source: indexerservice.proto package _go @@ -80,11 +80,11 @@ func (x ErrCode) String() string { } func (ErrCode) Descriptor() protoreflect.EnumDescriptor { - return file_api_indexerservice_proto_enumTypes[0].Descriptor() + return file_indexerservice_proto_enumTypes[0].Descriptor() } func (ErrCode) Type() protoreflect.EnumType { - return &file_api_indexerservice_proto_enumTypes[0] + return &file_indexerservice_proto_enumTypes[0] } func (x ErrCode) Number() protoreflect.EnumNumber { @@ -93,7 +93,7 @@ func (x ErrCode) Number() protoreflect.EnumNumber { // Deprecated: Use ErrCode.Descriptor instead. func (ErrCode) EnumDescriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{0} + return file_indexerservice_proto_rawDescGZIP(), []int{0} } type GetHomePostsRequest struct { @@ -108,11 +108,9 @@ type GetHomePostsRequest struct { func (x *GetHomePostsRequest) Reset() { *x = GetHomePostsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetHomePostsRequest) String() string { @@ -122,8 +120,8 @@ func (x *GetHomePostsRequest) String() string { func (*GetHomePostsRequest) ProtoMessage() {} func (x *GetHomePostsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[0] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -135,7 +133,7 @@ func (x *GetHomePostsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetHomePostsRequest.ProtoReflect.Descriptor instead. func (*GetHomePostsRequest) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{0} + return file_indexerservice_proto_rawDescGZIP(), []int{0} } func (x *GetHomePostsRequest) GetUserPostAddr() string { @@ -170,11 +168,9 @@ type UserAndPostID struct { func (x *UserAndPostID) Reset() { *x = UserAndPostID{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserAndPostID) String() string { @@ -184,8 +180,8 @@ func (x *UserAndPostID) String() string { func (*UserAndPostID) ProtoMessage() {} func (x *UserAndPostID) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[1] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -197,7 +193,7 @@ func (x *UserAndPostID) ProtoReflect() protoreflect.Message { // Deprecated: Use UserAndPostID.ProtoReflect.Descriptor instead. func (*UserAndPostID) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{1} + return file_indexerservice_proto_rawDescGZIP(), []int{1} } func (x *UserAndPostID) GetUserPostAddr() string { @@ -225,11 +221,9 @@ type GetHomePostsResponse struct { func (x *GetHomePostsResponse) Reset() { *x = GetHomePostsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetHomePostsResponse) String() string { @@ -239,8 +233,8 @@ func (x *GetHomePostsResponse) String() string { func (*GetHomePostsResponse) ProtoMessage() {} func (x *GetHomePostsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[2] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -252,7 +246,7 @@ func (x *GetHomePostsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetHomePostsResponse.ProtoReflect.Descriptor instead. func (*GetHomePostsResponse) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{2} + return file_indexerservice_proto_rawDescGZIP(), []int{2} } func (x *GetHomePostsResponse) GetNPosts() uint64 { @@ -277,11 +271,9 @@ type StreamPostReplyRequest struct { func (x *StreamPostReplyRequest) Reset() { *x = StreamPostReplyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StreamPostReplyRequest) String() string { @@ -291,8 +283,8 @@ func (x *StreamPostReplyRequest) String() string { func (*StreamPostReplyRequest) ProtoMessage() {} func (x *StreamPostReplyRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[3] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -304,7 +296,7 @@ func (x *StreamPostReplyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamPostReplyRequest.ProtoReflect.Descriptor instead. func (*StreamPostReplyRequest) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{3} + return file_indexerservice_proto_rawDescGZIP(), []int{3} } type StreamPostReplyResponse struct { @@ -322,11 +314,9 @@ type StreamPostReplyResponse struct { func (x *StreamPostReplyResponse) Reset() { *x = StreamPostReplyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StreamPostReplyResponse) String() string { @@ -336,8 +326,8 @@ func (x *StreamPostReplyResponse) String() string { func (*StreamPostReplyResponse) ProtoMessage() {} func (x *StreamPostReplyResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[4] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -349,7 +339,7 @@ func (x *StreamPostReplyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamPostReplyResponse.ProtoReflect.Descriptor instead. func (*StreamPostReplyResponse) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{4} + return file_indexerservice_proto_rawDescGZIP(), []int{4} } func (x *StreamPostReplyResponse) GetUserReplyAddr() string { @@ -404,11 +394,9 @@ type HelloRequest struct { func (x *HelloRequest) Reset() { *x = HelloRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloRequest) String() string { @@ -418,8 +406,8 @@ func (x *HelloRequest) String() string { func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[5] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -431,7 +419,7 @@ func (x *HelloRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. func (*HelloRequest) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{5} + return file_indexerservice_proto_rawDescGZIP(), []int{5} } func (x *HelloRequest) GetName() string { @@ -451,11 +439,9 @@ type HelloResponse struct { func (x *HelloResponse) Reset() { *x = HelloResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloResponse) String() string { @@ -465,8 +451,8 @@ func (x *HelloResponse) String() string { func (*HelloResponse) ProtoMessage() {} func (x *HelloResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[6] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -478,7 +464,7 @@ func (x *HelloResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead. func (*HelloResponse) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{6} + return file_indexerservice_proto_rawDescGZIP(), []int{6} } func (x *HelloResponse) GetGreeting() string { @@ -498,11 +484,9 @@ type HelloStreamRequest struct { func (x *HelloStreamRequest) Reset() { *x = HelloStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloStreamRequest) String() string { @@ -512,8 +496,8 @@ func (x *HelloStreamRequest) String() string { func (*HelloStreamRequest) ProtoMessage() {} func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[7] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -525,7 +509,7 @@ func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead. func (*HelloStreamRequest) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{7} + return file_indexerservice_proto_rawDescGZIP(), []int{7} } func (x *HelloStreamRequest) GetName() string { @@ -545,11 +529,9 @@ type HelloStreamResponse struct { func (x *HelloStreamResponse) Reset() { *x = HelloStreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloStreamResponse) String() string { @@ -559,8 +541,8 @@ func (x *HelloStreamResponse) String() string { func (*HelloStreamResponse) ProtoMessage() {} func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[8] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -572,7 +554,7 @@ func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamResponse.ProtoReflect.Descriptor instead. func (*HelloStreamResponse) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{8} + return file_indexerservice_proto_rawDescGZIP(), []int{8} } func (x *HelloStreamResponse) GetGreeting() string { @@ -592,11 +574,9 @@ type ErrDetails struct { func (x *ErrDetails) Reset() { *x = ErrDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_api_indexerservice_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_indexerservice_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrDetails) String() string { @@ -606,8 +586,8 @@ func (x *ErrDetails) String() string { func (*ErrDetails) ProtoMessage() {} func (x *ErrDetails) ProtoReflect() protoreflect.Message { - mi := &file_api_indexerservice_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_indexerservice_proto_msgTypes[9] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -619,7 +599,7 @@ func (x *ErrDetails) ProtoReflect() protoreflect.Message { // Deprecated: Use ErrDetails.ProtoReflect.Descriptor instead. func (*ErrDetails) Descriptor() ([]byte, []int) { - return file_api_indexerservice_proto_rawDescGZIP(), []int{9} + return file_indexerservice_proto_rawDescGZIP(), []int{9} } func (x *ErrDetails) GetCodes() []ErrCode { @@ -629,133 +609,132 @@ func (x *ErrDetails) GetCodes() []ErrCode { return nil } -var File_api_indexerservice_proto protoreflect.FileDescriptor - -var file_api_indexerservice_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x6c, 0x61, 0x6e, 0x64, - 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x75, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, - 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, - 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x6e, 0x64, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x4b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, - 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, - 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, - 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, - 0x73, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x70, 0x6f, 0x73, 0x74, - 0x49, 0x44, 0x22, 0x7f, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x50, - 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x50, 0x6f, 0x73, - 0x74, 0x73, 0x12, 0x4f, 0x0a, 0x09, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, +var File_indexerservice_proto protoreflect.FileDescriptor + +var file_indexerservice_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, - 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x52, 0x09, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x6f, - 0x73, 0x74, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, - 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xcf, 0x01, - 0x0a, 0x17, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x41, 0x64, 0x64, 0x72, 0x12, - 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, - 0x64, 0x64, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x49, 0x44, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x49, 0x44, 0x12, - 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x70, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x22, - 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, - 0x22, 0x28, 0x0a, 0x12, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x48, 0x65, - 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4f, 0x0a, - 0x0a, 0x45, 0x72, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, - 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x6c, 0x61, 0x6e, - 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2a, 0xcc, - 0x01, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, - 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, 0x44, - 0x4f, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x49, 0x6d, 0x70, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x72, - 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x45, - 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, 0x64, - 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x10, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x69, - 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x66, 0x12, 0x16, 0x0a, 0x12, 0x45, - 0x72, 0x72, 0x44, 0x65, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x10, 0x67, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x68, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x52, 0x75, - 0x6e, 0x47, 0x52, 0x50, 0x43, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x10, 0x69, 0x32, 0x94, 0x04, - 0x0a, 0x0e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x81, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, - 0x73, 0x12, 0x37, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x75, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, + 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x64, 0x65, + 0x78, 0x22, 0x4b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x6f, 0x73, 0x74, + 0x49, 0x44, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, + 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, + 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x73, 0x74, 0x49, 0x44, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x70, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x22, 0x7f, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x4f, + 0x0a, 0x09, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, - 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6c, 0x61, 0x6e, - 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, - 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x3a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, - 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, + 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x6f, + 0x73, 0x74, 0x49, 0x44, 0x52, 0x09, 0x68, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x22, + 0x18, 0x0a, 0x16, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xcf, 0x01, 0x0a, 0x17, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x75, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x41, 0x64, 0x64, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x75, + 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, + 0x1a, 0x0a, 0x08, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x70, + 0x6f, 0x73, 0x74, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x73, + 0x74, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x6e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x74, 0x49, 0x44, 0x22, 0x22, 0x0a, 0x0c, 0x48, + 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x2b, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x28, 0x0a, 0x12, + 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4f, 0x0a, 0x0a, 0x45, 0x72, 0x72, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, + 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, + 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x43, + 0x6f, 0x64, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2a, 0xcc, 0x01, 0x0a, 0x07, 0x45, + 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, 0x44, 0x4f, 0x10, 0x01, 0x12, + 0x15, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, 0x64, 0x12, 0x13, 0x0a, 0x0f, + 0x45, 0x72, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, + 0x65, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x66, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x44, 0x65, + 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x67, 0x12, + 0x12, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x10, 0x68, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x52, 0x75, 0x6e, 0x47, 0x52, 0x50, + 0x43, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x10, 0x69, 0x32, 0x94, 0x04, 0x0a, 0x0e, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x81, 0x01, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x37, 0x2e, + 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, + 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, + 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, + 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x48, + 0x6f, 0x6d, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x3a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x30, 0x01, 0x12, 0x6c, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x30, 0x2e, 0x6c, - 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, - 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x80, 0x01, 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x12, 0x36, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, - 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6c, 0x61, 0x6e, 0x64, - 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, - 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x30, 0x01, 0x42, 0x43, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x6e, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x64, 0x73, 0x6f, 0x63, 0x69, - 0x61, 0x6c, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, - 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x67, 0x6f, 0xa2, 0x02, 0x03, 0x52, 0x54, 0x47, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x50, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x3b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, + 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x74, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, + 0x6c, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, + 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, + 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x6c, 0x61, 0x6e, + 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, + 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x36, 0x2e, + 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, + 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, + 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, + 0x42, 0x44, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, + 0x6e, 0x6f, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2f, + 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x72, 0x2d, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, + 0xa2, 0x02, 0x03, 0x52, 0x54, 0x47, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_api_indexerservice_proto_rawDescOnce sync.Once - file_api_indexerservice_proto_rawDescData = file_api_indexerservice_proto_rawDesc + file_indexerservice_proto_rawDescOnce sync.Once + file_indexerservice_proto_rawDescData = file_indexerservice_proto_rawDesc ) -func file_api_indexerservice_proto_rawDescGZIP() []byte { - file_api_indexerservice_proto_rawDescOnce.Do(func() { - file_api_indexerservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_indexerservice_proto_rawDescData) +func file_indexerservice_proto_rawDescGZIP() []byte { + file_indexerservice_proto_rawDescOnce.Do(func() { + file_indexerservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_indexerservice_proto_rawDescData) }) - return file_api_indexerservice_proto_rawDescData + return file_indexerservice_proto_rawDescData } -var file_api_indexerservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_api_indexerservice_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_api_indexerservice_proto_goTypes = []any{ +var file_indexerservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_indexerservice_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_indexerservice_proto_goTypes = []any{ (ErrCode)(0), // 0: land.gno.dsocial.indexerservice.v1.ErrCode (*GetHomePostsRequest)(nil), // 1: land.gno.dsocial.indexerservice.v1.GetHomePostsRequest (*UserAndPostID)(nil), // 2: land.gno.dsocial.indexerservice.v1.UserAndPostID @@ -768,7 +747,7 @@ var file_api_indexerservice_proto_goTypes = []any{ (*HelloStreamResponse)(nil), // 9: land.gno.dsocial.indexerservice.v1.HelloStreamResponse (*ErrDetails)(nil), // 10: land.gno.dsocial.indexerservice.v1.ErrDetails } -var file_api_indexerservice_proto_depIdxs = []int32{ +var file_indexerservice_proto_depIdxs = []int32{ 2, // 0: land.gno.dsocial.indexerservice.v1.GetHomePostsResponse.homePosts:type_name -> land.gno.dsocial.indexerservice.v1.UserAndPostID 0, // 1: land.gno.dsocial.indexerservice.v1.ErrDetails.codes:type_name -> land.gno.dsocial.indexerservice.v1.ErrCode 1, // 2: land.gno.dsocial.indexerservice.v1.IndexerService.GetHomePosts:input_type -> land.gno.dsocial.indexerservice.v1.GetHomePostsRequest @@ -786,150 +765,28 @@ var file_api_indexerservice_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_api_indexerservice_proto_init() } -func file_api_indexerservice_proto_init() { - if File_api_indexerservice_proto != nil { +func init() { file_indexerservice_proto_init() } +func file_indexerservice_proto_init() { + if File_indexerservice_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_indexerservice_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetHomePostsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*UserAndPostID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetHomePostsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*StreamPostReplyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*StreamPostReplyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*HelloRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*HelloResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*HelloStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*HelloStreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_indexerservice_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*ErrDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_api_indexerservice_proto_rawDesc, + RawDescriptor: file_indexerservice_proto_rawDesc, NumEnums: 1, NumMessages: 10, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_api_indexerservice_proto_goTypes, - DependencyIndexes: file_api_indexerservice_proto_depIdxs, - EnumInfos: file_api_indexerservice_proto_enumTypes, - MessageInfos: file_api_indexerservice_proto_msgTypes, + GoTypes: file_indexerservice_proto_goTypes, + DependencyIndexes: file_indexerservice_proto_depIdxs, + EnumInfos: file_indexerservice_proto_enumTypes, + MessageInfos: file_indexerservice_proto_msgTypes, }.Build() - File_api_indexerservice_proto = out.File - file_api_indexerservice_proto_rawDesc = nil - file_api_indexerservice_proto_goTypes = nil - file_api_indexerservice_proto_depIdxs = nil + File_indexerservice_proto = out.File + file_indexerservice_proto_rawDesc = nil + file_indexerservice_proto_goTypes = nil + file_indexerservice_proto_depIdxs = nil } diff --git a/tools/indexer-service/api/indexerservice.proto b/tools/indexer-service/api/indexerservice.proto index b0eb5966..b65d3a51 100644 --- a/tools/indexer-service/api/indexerservice.proto +++ b/tools/indexer-service/api/indexerservice.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package land.gno.dsocial.indexerservice.v1; -option go_package = "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go"; +option go_package = "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go"; option objc_class_prefix = "RTG"; // IndexerService is the service to interact with the dSocial Indexer diff --git a/tools/indexer-service/buf.gen.yaml b/tools/indexer-service/buf.gen.yaml index d3594753..27a91368 100644 --- a/tools/indexer-service/buf.gen.yaml +++ b/tools/indexer-service/buf.gen.yaml @@ -2,10 +2,10 @@ version: v1 plugins: - plugin: buf.build/protocolbuffers/go out: ./api/gen/go - opt: module=github.com/gnolang/dsocial/tools/indexer-service/api/gen/go + opt: module=github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go - plugin: buf.build/connectrpc/go out: ./api/gen/go - opt: module=github.com/gnolang/dsocial/tools/indexer-service/api/gen/go + opt: module=github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go - plugin: buf.build/bufbuild/es out: ./api/gen/es - plugin: buf.build/connectrpc/es diff --git a/tools/indexer-service/go.mod b/tools/indexer-service/go.mod index f10f7bb9..6d7b9eff 100644 --- a/tools/indexer-service/go.mod +++ b/tools/indexer-service/go.mod @@ -1,9 +1,9 @@ -module github.com/gnolang/dsocial/tools/indexer-service +module github.com/gnoverse/dsocial/tools/indexer-service go 1.21 require ( - connectrpc.com/connect v1.16.2 + connectrpc.com/connect v1.17.0 connectrpc.com/grpchealth v1.2.0 connectrpc.com/grpcreflect v1.2.0 github.com/Khan/genqlient v0.7.0 @@ -14,7 +14,7 @@ require ( go.uber.org/zap v1.26.0 golang.org/x/net v0.23.0 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 - google.golang.org/protobuf v1.33.0 + google.golang.org/protobuf v1.34.2 moul.io/u v1.27.0 ) diff --git a/tools/indexer-service/go.sum b/tools/indexer-service/go.sum index 8f4115e6..cf862656 100644 --- a/tools/indexer-service/go.sum +++ b/tools/indexer-service/go.sum @@ -1,5 +1,7 @@ connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE= connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc= +connectrpc.com/connect v1.17.0 h1:W0ZqMhtVzn9Zhn2yATuUokDLO5N+gIuBWMOnsQrfmZk= +connectrpc.com/connect v1.17.0/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= connectrpc.com/grpchealth v1.2.0 h1:aHP33Bki+F2jPNI1mFVSFG7v0qJrgmfbg7X7nOdSj0M= connectrpc.com/grpchealth v1.2.0/go.mod h1:fZos12C4p/ZaZC6OwBGZUM+i/fhnRhv75ax/6V/zIeM= connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U= @@ -85,6 +87,8 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1N golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/tools/indexer-service/graphql_client.go b/tools/indexer-service/graphql_client.go index 491b25d3..79230ee3 100644 --- a/tools/indexer-service/graphql_client.go +++ b/tools/indexer-service/graphql_client.go @@ -11,7 +11,7 @@ import ( "time" "github.com/Khan/genqlient/graphql" - api_gen "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go" + api_gen "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go" "github.com/gorilla/websocket" "go.uber.org/zap" ) diff --git a/tools/indexer-service/grpc.go b/tools/indexer-service/grpc.go index 7208da08..e1692a70 100644 --- a/tools/indexer-service/grpc.go +++ b/tools/indexer-service/grpc.go @@ -10,8 +10,8 @@ import ( "connectrpc.com/connect" "connectrpc.com/grpchealth" "connectrpc.com/grpcreflect" - api_gen "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go" - "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go/_goconnect" + api_gen "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go" + "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go/_goconnect" "github.com/rs/cors" "go.uber.org/zap" "golang.org/x/net/http2" diff --git a/tools/indexer-service/schema/go.mod b/tools/indexer-service/schema/go.mod index c8ecf717..b874a94c 100644 --- a/tools/indexer-service/schema/go.mod +++ b/tools/indexer-service/schema/go.mod @@ -1,4 +1,4 @@ -module github.com/gnolang/dsocial/tools/indexer-service/schema +module github.com/gnoverse/dsocial/tools/indexer-service/schema go 1.21.7 diff --git a/tools/indexer-service/service.go b/tools/indexer-service/service.go index 9f5936cc..44a35534 100644 --- a/tools/indexer-service/service.go +++ b/tools/indexer-service/service.go @@ -8,7 +8,7 @@ import ( "sync" "github.com/Khan/genqlient/graphql" - api_gen "github.com/gnolang/dsocial/tools/indexer-service/api/gen/go" + api_gen "github.com/gnoverse/dsocial/tools/indexer-service/api/gen/go" "go.uber.org/zap" ) diff --git a/tools/infra/Makefile b/tools/infra/Makefile index 5a8eb0c7..4d685810 100644 --- a/tools/infra/Makefile +++ b/tools/infra/Makefile @@ -59,7 +59,7 @@ tx-indexer.build: tx-indexer.pull .PHONY: tx-indexer.build indexer: - git clone https://github.com/gnolang/dsocial.git + git clone https://github.com/gnoverse/dsocial.git indexer.pull: indexer cd indexer; git pull diff --git a/tools/notification-service/api.go b/tools/notification-service/api.go index 4281df6e..038a1733 100644 --- a/tools/notification-service/api.go +++ b/tools/notification-service/api.go @@ -9,7 +9,7 @@ import ( "connectrpc.com/connect" "go.uber.org/zap" - api_gen "github.com/gnolang/dsocial/tools/notification-service/api/gen/go" + api_gen "github.com/gnoverse/dsocial/tools/notification-service/api/gen/go" "github.com/pkg/errors" ) diff --git a/tools/notification-service/api/gen/es/notificationservice_connect.d.ts b/tools/notification-service/api/gen/es/notificationservice_connect.d.ts index 9443c287..f734f102 100644 --- a/tools/notification-service/api/gen/es/notificationservice_connect.d.ts +++ b/tools/notification-service/api/gen/es/notificationservice_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v1.4.0 +// @generated by protoc-gen-connect-es v1.6.1 // @generated from file notificationservice.proto (package land.gno.dsocial.notificationservice.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/tools/notification-service/api/gen/es/notificationservice_connect.js b/tools/notification-service/api/gen/es/notificationservice_connect.js index 64bc7854..29107bab 100644 --- a/tools/notification-service/api/gen/es/notificationservice_connect.js +++ b/tools/notification-service/api/gen/es/notificationservice_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v1.4.0 +// @generated by protoc-gen-connect-es v1.6.1 // @generated from file notificationservice.proto (package land.gno.dsocial.notificationservice.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/tools/notification-service/api/gen/es/notificationservice_pb.d.ts b/tools/notification-service/api/gen/es/notificationservice_pb.d.ts index 4614fd89..0bba9377 100644 --- a/tools/notification-service/api/gen/es/notificationservice_pb.d.ts +++ b/tools/notification-service/api/gen/es/notificationservice_pb.d.ts @@ -1,10 +1,127 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.2.2 // @generated from file notificationservice.proto (package land.gno.dsocial.notificationservice.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file notificationservice.proto. + */ +export declare const file_notificationservice: GenFile; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest + */ +export declare type RegisterDeviceRequest = Message<"land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest"> & { + /** + * @generated from field: string address = 1; + */ + address: string; + + /** + * @generated from field: string token = 2; + */ + token: string; +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest. + * Use `create(RegisterDeviceRequestSchema)` to create a new message. + */ +export declare const RegisterDeviceRequestSchema: GenMessage; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse + */ +export declare type RegisterDeviceResponse = Message<"land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse"> & { +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse. + * Use `create(RegisterDeviceResponseSchema)` to create a new message. + */ +export declare const RegisterDeviceResponseSchema: GenMessage; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.HelloRequest + */ +export declare type HelloRequest = Message<"land.gno.dsocial.notificationservice.v1.HelloRequest"> & { + /** + * @generated from field: string name = 1; + */ + name: string; +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.HelloRequest. + * Use `create(HelloRequestSchema)` to create a new message. + */ +export declare const HelloRequestSchema: GenMessage; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.HelloResponse + */ +export declare type HelloResponse = Message<"land.gno.dsocial.notificationservice.v1.HelloResponse"> & { + /** + * @generated from field: string greeting = 1; + */ + greeting: string; +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.HelloResponse. + * Use `create(HelloResponseSchema)` to create a new message. + */ +export declare const HelloResponseSchema: GenMessage; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.HelloStreamRequest + */ +export declare type HelloStreamRequest = Message<"land.gno.dsocial.notificationservice.v1.HelloStreamRequest"> & { + /** + * @generated from field: string name = 1; + */ + name: string; +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.HelloStreamRequest. + * Use `create(HelloStreamRequestSchema)` to create a new message. + */ +export declare const HelloStreamRequestSchema: GenMessage; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.HelloStreamResponse + */ +export declare type HelloStreamResponse = Message<"land.gno.dsocial.notificationservice.v1.HelloStreamResponse"> & { + /** + * @generated from field: string greeting = 1; + */ + greeting: string; +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.HelloStreamResponse. + * Use `create(HelloStreamResponseSchema)` to create a new message. + */ +export declare const HelloStreamResponseSchema: GenMessage; + +/** + * @generated from message land.gno.dsocial.notificationservice.v1.ErrDetails + */ +export declare type ErrDetails = Message<"land.gno.dsocial.notificationservice.v1.ErrDetails"> & { + /** + * @generated from field: repeated land.gno.dsocial.notificationservice.v1.ErrCode codes = 1; + */ + codes: ErrCode[]; +}; + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.ErrDetails. + * Use `create(ErrDetailsSchema)` to create a new message. + */ +export declare const ErrDetailsSchema: GenMessage; /** * The ErrCode enum defines errors for gRPC API functions. These are converted @@ -16,7 +133,7 @@ import { Message, proto3 } from "@bufbuild/protobuf"; * * @generated from enum land.gno.dsocial.notificationservice.v1.ErrCode */ -export declare enum ErrCode { +export enum ErrCode { /** * Undefined is the default value. It should never be set manually * @@ -87,170 +204,43 @@ export declare enum ErrCode { } /** - * @generated from message land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest - */ -export declare class RegisterDeviceRequest extends Message { - /** - * @generated from field: string address = 1; - */ - address: string; - - /** - * @generated from field: string token = 2; - */ - token: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisterDeviceRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisterDeviceRequest; - - static fromJsonString(jsonString: string, options?: Partial): RegisterDeviceRequest; - - static equals(a: RegisterDeviceRequest | PlainMessage | undefined, b: RegisterDeviceRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse + * Describes the enum land.gno.dsocial.notificationservice.v1.ErrCode. */ -export declare class RegisterDeviceResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisterDeviceResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisterDeviceResponse; - - static fromJsonString(jsonString: string, options?: Partial): RegisterDeviceResponse; - - static equals(a: RegisterDeviceResponse | PlainMessage | undefined, b: RegisterDeviceResponse | PlainMessage | undefined): boolean; -} +export declare const ErrCodeSchema: GenEnum; /** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloRequest - */ -export declare class HelloRequest extends Message { - /** - * @generated from field: string name = 1; - */ - name: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.HelloRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloRequest; - - static fromJsonString(jsonString: string, options?: Partial): HelloRequest; - - static equals(a: HelloRequest | PlainMessage | undefined, b: HelloRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloResponse - */ -export declare class HelloResponse extends Message { - /** - * @generated from field: string greeting = 1; - */ - greeting: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.HelloResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloResponse; - - static fromJsonString(jsonString: string, options?: Partial): HelloResponse; - - static equals(a: HelloResponse | PlainMessage | undefined, b: HelloResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloStreamRequest + * NotificationService is the service to manage Push Notifications in your app. + * + * @generated from service land.gno.dsocial.notificationservice.v1.NotificationService */ -export declare class HelloStreamRequest extends Message { +export declare const NotificationService: GenService<{ /** - * @generated from field: string name = 1; + * @generated from rpc land.gno.dsocial.notificationservice.v1.NotificationService.RegisterDevice */ - name: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.HelloStreamRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamRequest; - - static fromJsonString(jsonString: string, options?: Partial): HelloStreamRequest; - - static equals(a: HelloStreamRequest | PlainMessage | undefined, b: HelloStreamRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloStreamResponse - */ -export declare class HelloStreamResponse extends Message { + registerDevice: { + methodKind: "unary"; + input: typeof RegisterDeviceRequestSchema; + output: typeof RegisterDeviceResponseSchema; + }, /** - * @generated from field: string greeting = 1; + * Hello is for debug purposes + * + * @generated from rpc land.gno.dsocial.notificationservice.v1.NotificationService.Hello */ - greeting: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.HelloStreamResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamResponse; - - static fromJsonString(jsonString: string, options?: Partial): HelloStreamResponse; - - static equals(a: HelloStreamResponse | PlainMessage | undefined, b: HelloStreamResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.dsocial.notificationservice.v1.ErrDetails - */ -export declare class ErrDetails extends Message { + hello: { + methodKind: "unary"; + input: typeof HelloRequestSchema; + output: typeof HelloResponseSchema; + }, /** - * @generated from field: repeated land.gno.dsocial.notificationservice.v1.ErrCode codes = 1; - */ - codes: ErrCode[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.dsocial.notificationservice.v1.ErrDetails"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ErrDetails; - - static fromJson(jsonValue: JsonValue, options?: Partial): ErrDetails; - - static fromJsonString(jsonString: string, options?: Partial): ErrDetails; - - static equals(a: ErrDetails | PlainMessage | undefined, b: ErrDetails | PlainMessage | undefined): boolean; -} + * HelloStream is for debug purposes + * + * @generated from rpc land.gno.dsocial.notificationservice.v1.NotificationService.HelloStream + */ + helloStream: { + methodKind: "server_streaming"; + input: typeof HelloStreamRequestSchema; + output: typeof HelloStreamResponseSchema; + }, +}>; diff --git a/tools/notification-service/api/gen/es/notificationservice_pb.js b/tools/notification-service/api/gen/es/notificationservice_pb.js index 5a65b509..4c88d960 100644 --- a/tools/notification-service/api/gen/es/notificationservice_pb.js +++ b/tools/notification-service/api/gen/es/notificationservice_pb.js @@ -1,104 +1,88 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.2.2 // @generated from file notificationservice.proto (package land.gno.dsocial.notificationservice.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { proto3 } from "@bufbuild/protobuf"; +import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv1"; /** - * The ErrCode enum defines errors for gRPC API functions. These are converted - * from the Go error types returned by gnoclient. - * - * ---------------- - * Special errors - * ---------------- - * - * @generated from enum land.gno.dsocial.notificationservice.v1.ErrCode + * Describes the file notificationservice.proto. + */ +export const file_notificationservice = /*@__PURE__*/ + fileDesc("Chlub3RpZmljYXRpb25zZXJ2aWNlLnByb3RvEidsYW5kLmduby5kc29jaWFsLm5vdGlmaWNhdGlvbnNlcnZpY2UudjEiNwoVUmVnaXN0ZXJEZXZpY2VSZXF1ZXN0Eg8KB2FkZHJlc3MYASABKAkSDQoFdG9rZW4YAiABKAkiGAoWUmVnaXN0ZXJEZXZpY2VSZXNwb25zZSIcCgxIZWxsb1JlcXVlc3QSDAoEbmFtZRgBIAEoCSIhCg1IZWxsb1Jlc3BvbnNlEhAKCGdyZWV0aW5nGAEgASgJIiIKEkhlbGxvU3RyZWFtUmVxdWVzdBIMCgRuYW1lGAEgASgJIicKE0hlbGxvU3RyZWFtUmVzcG9uc2USEAoIZ3JlZXRpbmcYASABKAkiTQoKRXJyRGV0YWlscxI/CgVjb2RlcxgBIAMoDjIwLmxhbmQuZ25vLmRzb2NpYWwubm90aWZpY2F0aW9uc2VydmljZS52MS5FcnJDb2RlKuwBCgdFcnJDb2RlEg0KCVVuZGVmaW5lZBAAEggKBFRPRE8QARIVChFFcnJOb3RJbXBsZW1lbnRlZBACEg8KC0VyckludGVybmFsEAMSEwoPRXJySW52YWxpZElucHV0EGQSEwoPRXJyTWlzc2luZ0lucHV0EGUSFAoQRXJyU2VyaWFsaXphdGlvbhBmEhYKEkVyckRlc2VyaWFsaXphdGlvbhBnEhIKDkVyckluaXRTZXJ2aWNlEGgSFAoQRXJyUnVuR1JQQ1NlcnZlchBpEgoKBUVyckRCEMgBEhIKDUVyckRCTm90Rm91bmQQyQEyrgMKE05vdGlmaWNhdGlvblNlcnZpY2USkQEKDlJlZ2lzdGVyRGV2aWNlEj4ubGFuZC5nbm8uZHNvY2lhbC5ub3RpZmljYXRpb25zZXJ2aWNlLnYxLlJlZ2lzdGVyRGV2aWNlUmVxdWVzdBo/LmxhbmQuZ25vLmRzb2NpYWwubm90aWZpY2F0aW9uc2VydmljZS52MS5SZWdpc3RlckRldmljZVJlc3BvbnNlEnYKBUhlbGxvEjUubGFuZC5nbm8uZHNvY2lhbC5ub3RpZmljYXRpb25zZXJ2aWNlLnYxLkhlbGxvUmVxdWVzdBo2LmxhbmQuZ25vLmRzb2NpYWwubm90aWZpY2F0aW9uc2VydmljZS52MS5IZWxsb1Jlc3BvbnNlEooBCgtIZWxsb1N0cmVhbRI7LmxhbmQuZ25vLmRzb2NpYWwubm90aWZpY2F0aW9uc2VydmljZS52MS5IZWxsb1N0cmVhbVJlcXVlc3QaPC5sYW5kLmduby5kc29jaWFsLm5vdGlmaWNhdGlvbnNlcnZpY2UudjEuSGVsbG9TdHJlYW1SZXNwb25zZTABQklaQWdpdGh1Yi5jb20vZ25vdmVyc2UvZHNvY2lhbC90b29scy9ub3RpZmljYXRpb24tc2VydmljZS9hcGkvZ2VuL2dvogIDUlRHYgZwcm90bzM"); + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest. + * Use `create(RegisterDeviceRequestSchema)` to create a new message. + */ +export const RegisterDeviceRequestSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 0); + +/** + * Describes the message land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse. + * Use `create(RegisterDeviceResponseSchema)` to create a new message. */ -export const ErrCode = /*@__PURE__*/ proto3.makeEnum( - "land.gno.dsocial.notificationservice.v1.ErrCode", - [ - {no: 0, name: "Undefined"}, - {no: 1, name: "TODO"}, - {no: 2, name: "ErrNotImplemented"}, - {no: 3, name: "ErrInternal"}, - {no: 100, name: "ErrInvalidInput"}, - {no: 101, name: "ErrMissingInput"}, - {no: 102, name: "ErrSerialization"}, - {no: 103, name: "ErrDeserialization"}, - {no: 104, name: "ErrInitService"}, - {no: 105, name: "ErrRunGRPCServer"}, - {no: 200, name: "ErrDB"}, - {no: 201, name: "ErrDBNotFound"}, - ], -); +export const RegisterDeviceResponseSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 1); /** - * @generated from message land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest + * Describes the message land.gno.dsocial.notificationservice.v1.HelloRequest. + * Use `create(HelloRequestSchema)` to create a new message. */ -export const RegisterDeviceRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HelloRequestSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 2); /** - * @generated from message land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse + * Describes the message land.gno.dsocial.notificationservice.v1.HelloResponse. + * Use `create(HelloResponseSchema)` to create a new message. */ -export const RegisterDeviceResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse", - [], -); +export const HelloResponseSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 3); /** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloRequest + * Describes the message land.gno.dsocial.notificationservice.v1.HelloStreamRequest. + * Use `create(HelloStreamRequestSchema)` to create a new message. */ -export const HelloRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.HelloRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HelloStreamRequestSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 4); /** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloResponse + * Describes the message land.gno.dsocial.notificationservice.v1.HelloStreamResponse. + * Use `create(HelloStreamResponseSchema)` to create a new message. */ -export const HelloResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.HelloResponse", - () => [ - { no: 1, name: "greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HelloStreamResponseSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 5); /** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloStreamRequest + * Describes the message land.gno.dsocial.notificationservice.v1.ErrDetails. + * Use `create(ErrDetailsSchema)` to create a new message. */ -export const HelloStreamRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.HelloStreamRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const ErrDetailsSchema = /*@__PURE__*/ + messageDesc(file_notificationservice, 6); /** - * @generated from message land.gno.dsocial.notificationservice.v1.HelloStreamResponse + * Describes the enum land.gno.dsocial.notificationservice.v1.ErrCode. */ -export const HelloStreamResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.HelloStreamResponse", - () => [ - { no: 1, name: "greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const ErrCodeSchema = /*@__PURE__*/ + enumDesc(file_notificationservice, 0); /** - * @generated from message land.gno.dsocial.notificationservice.v1.ErrDetails + * The ErrCode enum defines errors for gRPC API functions. These are converted + * from the Go error types returned by gnoclient. + * + * ---------------- + * Special errors + * ---------------- + * + * @generated from enum land.gno.dsocial.notificationservice.v1.ErrCode + */ +export const ErrCode = /*@__PURE__*/ + tsEnum(ErrCodeSchema); + +/** + * NotificationService is the service to manage Push Notifications in your app. + * + * @generated from service land.gno.dsocial.notificationservice.v1.NotificationService */ -export const ErrDetails = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.dsocial.notificationservice.v1.ErrDetails", - () => [ - { no: 1, name: "codes", kind: "enum", T: proto3.getEnumType(ErrCode), repeated: true }, - ], -); +export const NotificationService = /*@__PURE__*/ + serviceDesc(file_notificationservice, 0); diff --git a/tools/notification-service/api/gen/go/_goconnect/notificationservice.connect.go b/tools/notification-service/api/gen/go/_goconnect/notificationservice.connect.go index eac8d464..1f9f137d 100644 --- a/tools/notification-service/api/gen/go/_goconnect/notificationservice.connect.go +++ b/tools/notification-service/api/gen/go/_goconnect/notificationservice.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: api/notificationservice.proto +// Source: notificationservice.proto package _goconnect @@ -8,7 +8,7 @@ import ( connect "connectrpc.com/connect" context "context" errors "errors" - _go "github.com/gnolang/dsocial/tools/notification-service/api/gen/go" + _go "github.com/gnoverse/dsocial/tools/notification-service/api/gen/go" http "net/http" strings "strings" ) @@ -46,7 +46,7 @@ const ( // These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. var ( - notificationServiceServiceDescriptor = _go.File_api_notificationservice_proto.Services().ByName("NotificationService") + notificationServiceServiceDescriptor = _go.File_notificationservice_proto.Services().ByName("NotificationService") notificationServiceRegisterDeviceMethodDescriptor = notificationServiceServiceDescriptor.Methods().ByName("RegisterDevice") notificationServiceHelloMethodDescriptor = notificationServiceServiceDescriptor.Methods().ByName("Hello") notificationServiceHelloStreamMethodDescriptor = notificationServiceServiceDescriptor.Methods().ByName("HelloStream") diff --git a/tools/notification-service/api/gen/go/notificationservice.pb.go b/tools/notification-service/api/gen/go/notificationservice.pb.go index 5b51f534..3b891640 100644 --- a/tools/notification-service/api/gen/go/notificationservice.pb.go +++ b/tools/notification-service/api/gen/go/notificationservice.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) -// source: api/notificationservice.proto +// source: notificationservice.proto package _go @@ -86,11 +86,11 @@ func (x ErrCode) String() string { } func (ErrCode) Descriptor() protoreflect.EnumDescriptor { - return file_api_notificationservice_proto_enumTypes[0].Descriptor() + return file_notificationservice_proto_enumTypes[0].Descriptor() } func (ErrCode) Type() protoreflect.EnumType { - return &file_api_notificationservice_proto_enumTypes[0] + return &file_notificationservice_proto_enumTypes[0] } func (x ErrCode) Number() protoreflect.EnumNumber { @@ -99,7 +99,7 @@ func (x ErrCode) Number() protoreflect.EnumNumber { // Deprecated: Use ErrCode.Descriptor instead. func (ErrCode) EnumDescriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{0} + return file_notificationservice_proto_rawDescGZIP(), []int{0} } type RegisterDeviceRequest struct { @@ -113,11 +113,9 @@ type RegisterDeviceRequest struct { func (x *RegisterDeviceRequest) Reset() { *x = RegisterDeviceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterDeviceRequest) String() string { @@ -127,8 +125,8 @@ func (x *RegisterDeviceRequest) String() string { func (*RegisterDeviceRequest) ProtoMessage() {} func (x *RegisterDeviceRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[0] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -140,7 +138,7 @@ func (x *RegisterDeviceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RegisterDeviceRequest.ProtoReflect.Descriptor instead. func (*RegisterDeviceRequest) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{0} + return file_notificationservice_proto_rawDescGZIP(), []int{0} } func (x *RegisterDeviceRequest) GetAddress() string { @@ -165,11 +163,9 @@ type RegisterDeviceResponse struct { func (x *RegisterDeviceResponse) Reset() { *x = RegisterDeviceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterDeviceResponse) String() string { @@ -179,8 +175,8 @@ func (x *RegisterDeviceResponse) String() string { func (*RegisterDeviceResponse) ProtoMessage() {} func (x *RegisterDeviceResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[1] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -192,7 +188,7 @@ func (x *RegisterDeviceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RegisterDeviceResponse.ProtoReflect.Descriptor instead. func (*RegisterDeviceResponse) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{1} + return file_notificationservice_proto_rawDescGZIP(), []int{1} } type HelloRequest struct { @@ -205,11 +201,9 @@ type HelloRequest struct { func (x *HelloRequest) Reset() { *x = HelloRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloRequest) String() string { @@ -219,8 +213,8 @@ func (x *HelloRequest) String() string { func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[2] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -232,7 +226,7 @@ func (x *HelloRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. func (*HelloRequest) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{2} + return file_notificationservice_proto_rawDescGZIP(), []int{2} } func (x *HelloRequest) GetName() string { @@ -252,11 +246,9 @@ type HelloResponse struct { func (x *HelloResponse) Reset() { *x = HelloResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloResponse) String() string { @@ -266,8 +258,8 @@ func (x *HelloResponse) String() string { func (*HelloResponse) ProtoMessage() {} func (x *HelloResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[3] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -279,7 +271,7 @@ func (x *HelloResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead. func (*HelloResponse) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{3} + return file_notificationservice_proto_rawDescGZIP(), []int{3} } func (x *HelloResponse) GetGreeting() string { @@ -299,11 +291,9 @@ type HelloStreamRequest struct { func (x *HelloStreamRequest) Reset() { *x = HelloStreamRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloStreamRequest) String() string { @@ -313,8 +303,8 @@ func (x *HelloStreamRequest) String() string { func (*HelloStreamRequest) ProtoMessage() {} func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[4] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -326,7 +316,7 @@ func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead. func (*HelloStreamRequest) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{4} + return file_notificationservice_proto_rawDescGZIP(), []int{4} } func (x *HelloStreamRequest) GetName() string { @@ -346,11 +336,9 @@ type HelloStreamResponse struct { func (x *HelloStreamResponse) Reset() { *x = HelloStreamResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloStreamResponse) String() string { @@ -360,8 +348,8 @@ func (x *HelloStreamResponse) String() string { func (*HelloStreamResponse) ProtoMessage() {} func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[5] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -373,7 +361,7 @@ func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamResponse.ProtoReflect.Descriptor instead. func (*HelloStreamResponse) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{5} + return file_notificationservice_proto_rawDescGZIP(), []int{5} } func (x *HelloStreamResponse) GetGreeting() string { @@ -393,11 +381,9 @@ type ErrDetails struct { func (x *ErrDetails) Reset() { *x = ErrDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_api_notificationservice_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_notificationservice_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrDetails) String() string { @@ -407,8 +393,8 @@ func (x *ErrDetails) String() string { func (*ErrDetails) ProtoMessage() {} func (x *ErrDetails) ProtoReflect() protoreflect.Message { - mi := &file_api_notificationservice_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_notificationservice_proto_msgTypes[6] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -420,7 +406,7 @@ func (x *ErrDetails) ProtoReflect() protoreflect.Message { // Deprecated: Use ErrDetails.ProtoReflect.Descriptor instead. func (*ErrDetails) Descriptor() ([]byte, []int) { - return file_api_notificationservice_proto_rawDescGZIP(), []int{6} + return file_notificationservice_proto_rawDescGZIP(), []int{6} } func (x *ErrDetails) GetCodes() []ErrCode { @@ -430,101 +416,100 @@ func (x *ErrDetails) GetCodes() []ErrCode { return nil } -var File_api_notificationservice_proto protoreflect.FileDescriptor +var File_notificationservice_proto protoreflect.FileDescriptor -var file_api_notificationservice_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x27, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, - 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x47, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x48, - 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x2b, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x28, 0x0a, 0x12, - 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x54, 0x0a, 0x0a, 0x45, 0x72, 0x72, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x46, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2a, - 0xec, 0x01, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, - 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, - 0x44, 0x4f, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x49, 0x6d, - 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, - 0x72, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, - 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, - 0x64, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, - 0x6e, 0x70, 0x75, 0x74, 0x10, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, - 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x66, 0x12, 0x16, 0x0a, 0x12, - 0x45, 0x72, 0x72, 0x44, 0x65, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x10, 0x67, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x68, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x52, - 0x75, 0x6e, 0x47, 0x52, 0x50, 0x43, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x10, 0x69, 0x12, 0x0a, - 0x0a, 0x05, 0x45, 0x72, 0x72, 0x44, 0x42, 0x10, 0xc8, 0x01, 0x12, 0x12, 0x0a, 0x0d, 0x45, 0x72, - 0x72, 0x44, 0x42, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xc9, 0x01, 0x32, 0xae, - 0x03, 0x0a, 0x13, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, - 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, - 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x05, 0x48, 0x65, - 0x6c, 0x6c, 0x6f, 0x12, 0x35, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, - 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, - 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x6c, 0x61, 0x6e, +var file_notificationservice_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x12, 0x3b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, + 0x65, 0x2e, 0x76, 0x31, 0x22, 0x47, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x18, 0x0a, + 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x0d, 0x48, + 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x28, 0x0a, 0x12, 0x48, 0x65, 0x6c, 0x6c, + 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, + 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x65, + 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x54, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x12, 0x46, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, - 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x3c, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, + 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, + 0x43, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2a, 0xec, 0x01, 0x0a, 0x07, + 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, 0x44, 0x4f, 0x10, 0x01, + 0x12, 0x15, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x49, + 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, 0x64, 0x12, 0x13, 0x0a, + 0x0f, 0x45, 0x72, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, + 0x10, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x66, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x44, + 0x65, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x67, + 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x10, 0x68, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x52, 0x75, 0x6e, 0x47, 0x52, + 0x50, 0x43, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x10, 0x69, 0x12, 0x0a, 0x0a, 0x05, 0x45, 0x72, + 0x72, 0x44, 0x42, 0x10, 0xc8, 0x01, 0x12, 0x12, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x44, 0x42, 0x4e, + 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xc9, 0x01, 0x32, 0xae, 0x03, 0x0a, 0x13, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, + 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, + 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, + 0x35, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, - 0x48, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6e, - 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x6f, - 0x6f, 0x6c, 0x73, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x67, 0x6f, 0xa2, 0x02, 0x03, 0x52, 0x54, 0x47, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, + 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8a, + 0x01, 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3b, + 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, + 0x6c, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x6c, 0x61, + 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2e, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x49, 0x5a, 0x41, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6e, 0x6f, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x2f, 0x64, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x73, + 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, + 0xa2, 0x02, 0x03, 0x52, 0x54, 0x47, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_api_notificationservice_proto_rawDescOnce sync.Once - file_api_notificationservice_proto_rawDescData = file_api_notificationservice_proto_rawDesc + file_notificationservice_proto_rawDescOnce sync.Once + file_notificationservice_proto_rawDescData = file_notificationservice_proto_rawDesc ) -func file_api_notificationservice_proto_rawDescGZIP() []byte { - file_api_notificationservice_proto_rawDescOnce.Do(func() { - file_api_notificationservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_notificationservice_proto_rawDescData) +func file_notificationservice_proto_rawDescGZIP() []byte { + file_notificationservice_proto_rawDescOnce.Do(func() { + file_notificationservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_notificationservice_proto_rawDescData) }) - return file_api_notificationservice_proto_rawDescData + return file_notificationservice_proto_rawDescData } -var file_api_notificationservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_api_notificationservice_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_api_notificationservice_proto_goTypes = []any{ +var file_notificationservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_notificationservice_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_notificationservice_proto_goTypes = []any{ (ErrCode)(0), // 0: land.gno.dsocial.notificationservice.v1.ErrCode (*RegisterDeviceRequest)(nil), // 1: land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest (*RegisterDeviceResponse)(nil), // 2: land.gno.dsocial.notificationservice.v1.RegisterDeviceResponse @@ -534,7 +519,7 @@ var file_api_notificationservice_proto_goTypes = []any{ (*HelloStreamResponse)(nil), // 6: land.gno.dsocial.notificationservice.v1.HelloStreamResponse (*ErrDetails)(nil), // 7: land.gno.dsocial.notificationservice.v1.ErrDetails } -var file_api_notificationservice_proto_depIdxs = []int32{ +var file_notificationservice_proto_depIdxs = []int32{ 0, // 0: land.gno.dsocial.notificationservice.v1.ErrDetails.codes:type_name -> land.gno.dsocial.notificationservice.v1.ErrCode 1, // 1: land.gno.dsocial.notificationservice.v1.NotificationService.RegisterDevice:input_type -> land.gno.dsocial.notificationservice.v1.RegisterDeviceRequest 3, // 2: land.gno.dsocial.notificationservice.v1.NotificationService.Hello:input_type -> land.gno.dsocial.notificationservice.v1.HelloRequest @@ -549,114 +534,28 @@ var file_api_notificationservice_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_api_notificationservice_proto_init() } -func file_api_notificationservice_proto_init() { - if File_api_notificationservice_proto != nil { +func init() { file_notificationservice_proto_init() } +func file_notificationservice_proto_init() { + if File_notificationservice_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_notificationservice_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*RegisterDeviceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_notificationservice_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*RegisterDeviceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_notificationservice_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*HelloRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_notificationservice_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*HelloResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_notificationservice_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*HelloStreamRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_notificationservice_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*HelloStreamResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_notificationservice_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ErrDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_api_notificationservice_proto_rawDesc, + RawDescriptor: file_notificationservice_proto_rawDesc, NumEnums: 1, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_api_notificationservice_proto_goTypes, - DependencyIndexes: file_api_notificationservice_proto_depIdxs, - EnumInfos: file_api_notificationservice_proto_enumTypes, - MessageInfos: file_api_notificationservice_proto_msgTypes, + GoTypes: file_notificationservice_proto_goTypes, + DependencyIndexes: file_notificationservice_proto_depIdxs, + EnumInfos: file_notificationservice_proto_enumTypes, + MessageInfos: file_notificationservice_proto_msgTypes, }.Build() - File_api_notificationservice_proto = out.File - file_api_notificationservice_proto_rawDesc = nil - file_api_notificationservice_proto_goTypes = nil - file_api_notificationservice_proto_depIdxs = nil + File_notificationservice_proto = out.File + file_notificationservice_proto_rawDesc = nil + file_notificationservice_proto_goTypes = nil + file_notificationservice_proto_depIdxs = nil } diff --git a/tools/notification-service/api/notificationservice.proto b/tools/notification-service/api/notificationservice.proto index 7a88c577..26cec5a2 100644 --- a/tools/notification-service/api/notificationservice.proto +++ b/tools/notification-service/api/notificationservice.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package land.gno.dsocial.notificationservice.v1; -option go_package = "github.com/gnolang/dsocial/tools/notification-service/api/gen/go"; +option go_package = "github.com/gnoverse/dsocial/tools/notification-service/api/gen/go"; option objc_class_prefix = "RTG"; // NotificationService is the service to manage Push Notifications in your app. diff --git a/tools/notification-service/buf.gen.yaml b/tools/notification-service/buf.gen.yaml index e288e3e6..d8f3fe06 100644 --- a/tools/notification-service/buf.gen.yaml +++ b/tools/notification-service/buf.gen.yaml @@ -2,10 +2,10 @@ version: v1 plugins: - plugin: buf.build/protocolbuffers/go out: ./api/gen/go - opt: module=github.com/gnolang/dsocial/tools/notification-service/api/gen/go + opt: module=github.com/gnoverse/dsocial/tools/notification-service/api/gen/go - plugin: buf.build/connectrpc/go out: ./api/gen/go - opt: module=github.com/gnolang/dsocial/tools/notification-service/api/gen/go + opt: module=github.com/gnoverse/dsocial/tools/notification-service/api/gen/go - plugin: buf.build/bufbuild/es out: ./api/gen/es - plugin: buf.build/connectrpc/es diff --git a/tools/notification-service/go.mod b/tools/notification-service/go.mod index 30c8ffd8..dbafc19b 100644 --- a/tools/notification-service/go.mod +++ b/tools/notification-service/go.mod @@ -1,26 +1,27 @@ -module github.com/gnolang/dsocial/tools/notification-service +module github.com/gnoverse/dsocial/tools/notification-service go 1.21.7 require ( - connectrpc.com/connect v1.16.2 + buf.build/gen/go/gnolang/dsocial-indexer/connectrpc/go v1.17.0-20241114144551-3a1c1a1274a4.1 + buf.build/gen/go/gnolang/dsocial-indexer/protocolbuffers/go v1.34.2-20241114144551-3a1c1a1274a4.2 + connectrpc.com/connect v1.17.0 connectrpc.com/grpchealth v1.3.0 connectrpc.com/grpcreflect v1.2.0 + github.com/dgraph-io/badger/v4 v4.2.0 + github.com/oliveroneill/exponent-server-sdk-golang v0.0.0-20210823140141-d050598be512 github.com/peterbourgon/ff/v3 v3.4.0 github.com/pkg/errors v0.9.1 github.com/rs/cors v1.11.0 go.uber.org/zap v1.27.0 golang.org/x/net v0.26.0 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 - google.golang.org/protobuf v1.34.2 + google.golang.org/protobuf v1.35.1 moul.io/u v1.27.0 ) require ( - buf.build/gen/go/gnolang/dsocial-indexer/connectrpc/go v1.16.2-20240621073300-3f8442294fd1.1 // indirect - buf.build/gen/go/gnolang/dsocial-indexer/protocolbuffers/go v1.34.2-20240621073300-3f8442294fd1.2 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/dgraph-io/badger/v4 v4.2.0 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dustin/go-humanize v1.0.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -30,7 +31,6 @@ require ( github.com/golang/snappy v0.0.3 // indirect github.com/google/flatbuffers v1.12.1 // indirect github.com/klauspost/compress v1.12.3 // indirect - github.com/oliveroneill/exponent-server-sdk-golang v0.0.0-20210823140141-d050598be512 // indirect go.opencensus.io v0.22.5 // indirect go.uber.org/multierr v1.10.0 // indirect golang.org/x/sys v0.21.0 // indirect diff --git a/tools/notification-service/go.sum b/tools/notification-service/go.sum index 985b7b19..78112de0 100644 --- a/tools/notification-service/go.sum +++ b/tools/notification-service/go.sum @@ -1,10 +1,10 @@ -buf.build/gen/go/gnolang/dsocial-indexer/connectrpc/go v1.16.2-20240621073300-3f8442294fd1.1 h1:xuWa6w0qgekMrww42bcnCSwWc28kZJx5JOB2WEclKXQ= -buf.build/gen/go/gnolang/dsocial-indexer/connectrpc/go v1.16.2-20240621073300-3f8442294fd1.1/go.mod h1:h9GPpyOvOs+GxTw0mS75FcfwRPOpCzej3Wp9sWCLPhM= -buf.build/gen/go/gnolang/dsocial-indexer/protocolbuffers/go v1.34.2-20240621073300-3f8442294fd1.2 h1:1zRo/wm9EGA66yBi7vVDzF5r++OEGYTM2rMLKBxC7J0= -buf.build/gen/go/gnolang/dsocial-indexer/protocolbuffers/go v1.34.2-20240621073300-3f8442294fd1.2/go.mod h1:ecHCFuygX5kELsUlLCjRT7HUizatkVvSMm2OdouOj5s= +buf.build/gen/go/gnolang/dsocial-indexer/connectrpc/go v1.17.0-20241114144551-3a1c1a1274a4.1 h1:A/IqDCnkV8w5CxT+SquxXk+S4zbGUfctHpg6jC+GZVw= +buf.build/gen/go/gnolang/dsocial-indexer/connectrpc/go v1.17.0-20241114144551-3a1c1a1274a4.1/go.mod h1:dOD5zqy0swpBXzwqP8VvI8AMMplGA3R/vyRSfi3bmxM= +buf.build/gen/go/gnolang/dsocial-indexer/protocolbuffers/go v1.34.2-20241114144551-3a1c1a1274a4.2 h1:XjF/hj30q8XaX8+jy9Ow7eP8KE/zKE8a3dnsXBMfbjk= +buf.build/gen/go/gnolang/dsocial-indexer/protocolbuffers/go v1.34.2-20241114144551-3a1c1a1274a4.2/go.mod h1:ecHCFuygX5kELsUlLCjRT7HUizatkVvSMm2OdouOj5s= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE= -connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc= +connectrpc.com/connect v1.17.0 h1:W0ZqMhtVzn9Zhn2yATuUokDLO5N+gIuBWMOnsQrfmZk= +connectrpc.com/connect v1.17.0/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= connectrpc.com/grpchealth v1.3.0 h1:FA3OIwAvuMokQIXQrY5LbIy8IenftksTP/lG4PbYN+E= connectrpc.com/grpchealth v1.3.0/go.mod h1:3vpqmX25/ir0gVgW6RdnCPPZRcR6HvqtXX5RNPmDXHM= connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U= @@ -22,6 +22,7 @@ github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8Bzu github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -150,10 +151,8 @@ google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZi google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= -google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/tools/notification-service/grpc.go b/tools/notification-service/grpc.go index d20e9891..e0a16cc7 100644 --- a/tools/notification-service/grpc.go +++ b/tools/notification-service/grpc.go @@ -10,8 +10,8 @@ import ( "connectrpc.com/connect" "connectrpc.com/grpchealth" "connectrpc.com/grpcreflect" - api_gen "github.com/gnolang/dsocial/tools/notification-service/api/gen/go" - "github.com/gnolang/dsocial/tools/notification-service/api/gen/go/_goconnect" + api_gen "github.com/gnoverse/dsocial/tools/notification-service/api/gen/go" + "github.com/gnoverse/dsocial/tools/notification-service/api/gen/go/_goconnect" "github.com/rs/cors" "go.uber.org/zap" "golang.org/x/net/http2"