Versions in this module Expand all Collapse all v0 v0.0.10 Sep 4, 2023 v0.0.9 Sep 3, 2023 Changes in this version + const QuoteService_CreateQuote_FullMethodName + const QuoteService_DeleteAllQuotesByAuthor_FullMethodName + const QuoteService_DeleteQuote_FullMethodName + const QuoteService_GetQuote_FullMethodName + const QuoteService_GetQuotesByAuthor_FullMethodName + const QuoteService_ListQuotes_FullMethodName + const QuoteService_UpdateQuote_FullMethodName + var File_protos_quoteservice_quote_proto protoreflect.FileDescriptor + var QuoteService_ServiceDesc = grpc.ServiceDesc + func RegisterQuoteServiceServer(s grpc.ServiceRegistrar, srv QuoteServiceServer) + type CreateQuoteRequest struct + Quote *Quote + func (*CreateQuoteRequest) Descriptor() ([]byte, []int) + func (*CreateQuoteRequest) ProtoMessage() + func (x *CreateQuoteRequest) GetQuote() *Quote + func (x *CreateQuoteRequest) ProtoReflect() protoreflect.Message + func (x *CreateQuoteRequest) Reset() + func (x *CreateQuoteRequest) String() string + type DeleteQuoteRequest struct + Id string + func (*DeleteQuoteRequest) Descriptor() ([]byte, []int) + func (*DeleteQuoteRequest) ProtoMessage() + func (x *DeleteQuoteRequest) GetId() string + func (x *DeleteQuoteRequest) ProtoReflect() protoreflect.Message + func (x *DeleteQuoteRequest) Reset() + func (x *DeleteQuoteRequest) String() string + type DeleteQuoteResponse struct + Success bool + func (*DeleteQuoteResponse) Descriptor() ([]byte, []int) + func (*DeleteQuoteResponse) ProtoMessage() + func (x *DeleteQuoteResponse) GetSuccess() bool + func (x *DeleteQuoteResponse) ProtoReflect() protoreflect.Message + func (x *DeleteQuoteResponse) Reset() + func (x *DeleteQuoteResponse) String() string + type DeleteQuotesByAuthorRequest struct + AuthorId string + func (*DeleteQuotesByAuthorRequest) Descriptor() ([]byte, []int) + func (*DeleteQuotesByAuthorRequest) ProtoMessage() + func (x *DeleteQuotesByAuthorRequest) GetAuthorId() string + func (x *DeleteQuotesByAuthorRequest) ProtoReflect() protoreflect.Message + func (x *DeleteQuotesByAuthorRequest) Reset() + func (x *DeleteQuotesByAuthorRequest) String() string + type GetQuoteRequest struct + Id string + func (*GetQuoteRequest) Descriptor() ([]byte, []int) + func (*GetQuoteRequest) ProtoMessage() + func (x *GetQuoteRequest) GetId() string + func (x *GetQuoteRequest) ProtoReflect() protoreflect.Message + func (x *GetQuoteRequest) Reset() + func (x *GetQuoteRequest) String() string + type GetQuotesByAuthorRequest struct + AuthorId string + func (*GetQuotesByAuthorRequest) Descriptor() ([]byte, []int) + func (*GetQuotesByAuthorRequest) ProtoMessage() + func (x *GetQuotesByAuthorRequest) GetAuthorId() string + func (x *GetQuotesByAuthorRequest) ProtoReflect() protoreflect.Message + func (x *GetQuotesByAuthorRequest) Reset() + func (x *GetQuotesByAuthorRequest) String() string + type ListQuotesResponse struct + Quotes []*Quote + func (*ListQuotesResponse) Descriptor() ([]byte, []int) + func (*ListQuotesResponse) ProtoMessage() + func (x *ListQuotesResponse) GetQuotes() []*Quote + func (x *ListQuotesResponse) ProtoReflect() protoreflect.Message + func (x *ListQuotesResponse) Reset() + func (x *ListQuotesResponse) String() string + type Quote struct + AuthorId string + Id string + Text string + Timestamp int64 + func (*Quote) Descriptor() ([]byte, []int) + func (*Quote) ProtoMessage() + func (x *Quote) GetAuthorId() string + func (x *Quote) GetId() string + func (x *Quote) GetText() string + func (x *Quote) GetTimestamp() int64 + func (x *Quote) ProtoReflect() protoreflect.Message + func (x *Quote) Reset() + func (x *Quote) String() string + type QuoteServiceClient interface + CreateQuote func(ctx context.Context, in *CreateQuoteRequest, opts ...grpc.CallOption) (*Quote, error) + DeleteAllQuotesByAuthor func(ctx context.Context, in *DeleteQuotesByAuthorRequest, opts ...grpc.CallOption) (*DeleteQuoteResponse, error) + DeleteQuote func(ctx context.Context, in *DeleteQuoteRequest, opts ...grpc.CallOption) (*DeleteQuoteResponse, error) + GetQuote func(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*Quote, error) + GetQuotesByAuthor func(ctx context.Context, in *GetQuotesByAuthorRequest, opts ...grpc.CallOption) (*ListQuotesResponse, error) + ListQuotes func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListQuotesResponse, error) + UpdateQuote func(ctx context.Context, in *UpdateQuoteRequest, opts ...grpc.CallOption) (*Quote, error) + func NewQuoteServiceClient(cc grpc.ClientConnInterface) QuoteServiceClient + type QuoteServiceServer interface + CreateQuote func(context.Context, *CreateQuoteRequest) (*Quote, error) + DeleteAllQuotesByAuthor func(context.Context, *DeleteQuotesByAuthorRequest) (*DeleteQuoteResponse, error) + DeleteQuote func(context.Context, *DeleteQuoteRequest) (*DeleteQuoteResponse, error) + GetQuote func(context.Context, *GetQuoteRequest) (*Quote, error) + GetQuotesByAuthor func(context.Context, *GetQuotesByAuthorRequest) (*ListQuotesResponse, error) + ListQuotes func(context.Context, *emptypb.Empty) (*ListQuotesResponse, error) + UpdateQuote func(context.Context, *UpdateQuoteRequest) (*Quote, error) + type UnimplementedQuoteServiceServer struct + func (UnimplementedQuoteServiceServer) CreateQuote(context.Context, *CreateQuoteRequest) (*Quote, error) + func (UnimplementedQuoteServiceServer) DeleteAllQuotesByAuthor(context.Context, *DeleteQuotesByAuthorRequest) (*DeleteQuoteResponse, error) + func (UnimplementedQuoteServiceServer) DeleteQuote(context.Context, *DeleteQuoteRequest) (*DeleteQuoteResponse, error) + func (UnimplementedQuoteServiceServer) GetQuote(context.Context, *GetQuoteRequest) (*Quote, error) + func (UnimplementedQuoteServiceServer) GetQuotesByAuthor(context.Context, *GetQuotesByAuthorRequest) (*ListQuotesResponse, error) + func (UnimplementedQuoteServiceServer) ListQuotes(context.Context, *emptypb.Empty) (*ListQuotesResponse, error) + func (UnimplementedQuoteServiceServer) UpdateQuote(context.Context, *UpdateQuoteRequest) (*Quote, error) + type UnsafeQuoteServiceServer interface + type UpdateQuoteRequest struct + Quote *Quote + func (*UpdateQuoteRequest) Descriptor() ([]byte, []int) + func (*UpdateQuoteRequest) ProtoMessage() + func (x *UpdateQuoteRequest) GetQuote() *Quote + func (x *UpdateQuoteRequest) ProtoReflect() protoreflect.Message + func (x *UpdateQuoteRequest) Reset() + func (x *UpdateQuoteRequest) String() string