2023-08-05 09:32:52 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: api/v2/memo_service.proto
package apiv2
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
const (
2024-02-08 11:54:59 +08:00
MemoService_CreateMemo_FullMethodName = "/memos.api.v2.MemoService/CreateMemo"
MemoService_ListMemos_FullMethodName = "/memos.api.v2.MemoService/ListMemos"
2024-03-18 23:23:53 +08:00
MemoService_SearchMemos_FullMethodName = "/memos.api.v2.MemoService/SearchMemos"
2024-02-08 11:54:59 +08:00
MemoService_GetMemo_FullMethodName = "/memos.api.v2.MemoService/GetMemo"
MemoService_UpdateMemo_FullMethodName = "/memos.api.v2.MemoService/UpdateMemo"
MemoService_DeleteMemo_FullMethodName = "/memos.api.v2.MemoService/DeleteMemo"
MemoService_ExportMemos_FullMethodName = "/memos.api.v2.MemoService/ExportMemos"
MemoService_SetMemoResources_FullMethodName = "/memos.api.v2.MemoService/SetMemoResources"
MemoService_ListMemoResources_FullMethodName = "/memos.api.v2.MemoService/ListMemoResources"
MemoService_SetMemoRelations_FullMethodName = "/memos.api.v2.MemoService/SetMemoRelations"
MemoService_ListMemoRelations_FullMethodName = "/memos.api.v2.MemoService/ListMemoRelations"
MemoService_CreateMemoComment_FullMethodName = "/memos.api.v2.MemoService/CreateMemoComment"
MemoService_ListMemoComments_FullMethodName = "/memos.api.v2.MemoService/ListMemoComments"
MemoService_GetUserMemosStats_FullMethodName = "/memos.api.v2.MemoService/GetUserMemosStats"
MemoService_ListMemoReactions_FullMethodName = "/memos.api.v2.MemoService/ListMemoReactions"
MemoService_UpsertMemoReaction_FullMethodName = "/memos.api.v2.MemoService/UpsertMemoReaction"
MemoService_DeleteMemoReaction_FullMethodName = "/memos.api.v2.MemoService/DeleteMemoReaction"
2023-08-05 09:32:52 +08:00
)
// MemoServiceClient is the client API for MemoService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MemoServiceClient interface {
2023-12-21 22:42:06 +08:00
// CreateMemo creates a memo.
2023-10-01 14:44:10 +08:00
CreateMemo ( ctx context . Context , in * CreateMemoRequest , opts ... grpc . CallOption ) ( * CreateMemoResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemos lists memos with pagination and filter.
2023-08-05 09:32:52 +08:00
ListMemos ( ctx context . Context , in * ListMemosRequest , opts ... grpc . CallOption ) ( * ListMemosResponse , error )
2024-03-20 21:17:04 +08:00
// SearchMemos searches memos.
2024-03-18 23:23:53 +08:00
SearchMemos ( ctx context . Context , in * SearchMemosRequest , opts ... grpc . CallOption ) ( * SearchMemosResponse , error )
// GetMemo gets a memo.
2023-08-05 09:32:52 +08:00
GetMemo ( ctx context . Context , in * GetMemoRequest , opts ... grpc . CallOption ) ( * GetMemoResponse , error )
2023-12-21 22:42:06 +08:00
// UpdateMemo updates a memo.
2023-12-20 23:14:15 +08:00
UpdateMemo ( ctx context . Context , in * UpdateMemoRequest , opts ... grpc . CallOption ) ( * UpdateMemoResponse , error )
2024-03-18 23:23:53 +08:00
// DeleteMemo deletes a memo.
2023-12-20 23:14:15 +08:00
DeleteMemo ( ctx context . Context , in * DeleteMemoRequest , opts ... grpc . CallOption ) ( * DeleteMemoResponse , error )
2024-02-08 11:54:59 +08:00
// ExportMemos exports memos.
ExportMemos ( ctx context . Context , in * ExportMemosRequest , opts ... grpc . CallOption ) ( * ExportMemosResponse , error )
2023-12-21 22:42:06 +08:00
// SetMemoResources sets resources for a memo.
2023-12-21 21:24:08 +08:00
SetMemoResources ( ctx context . Context , in * SetMemoResourcesRequest , opts ... grpc . CallOption ) ( * SetMemoResourcesResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemoResources lists resources for a memo.
2023-12-20 23:46:04 +08:00
ListMemoResources ( ctx context . Context , in * ListMemoResourcesRequest , opts ... grpc . CallOption ) ( * ListMemoResourcesResponse , error )
2023-12-21 22:42:06 +08:00
// SetMemoRelations sets relations for a memo.
2023-12-21 21:24:08 +08:00
SetMemoRelations ( ctx context . Context , in * SetMemoRelationsRequest , opts ... grpc . CallOption ) ( * SetMemoRelationsResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemoRelations lists relations for a memo.
2023-12-21 21:24:08 +08:00
ListMemoRelations ( ctx context . Context , in * ListMemoRelationsRequest , opts ... grpc . CallOption ) ( * ListMemoRelationsResponse , error )
2023-12-21 22:42:06 +08:00
// CreateMemoComment creates a comment for a memo.
2023-10-01 14:44:10 +08:00
CreateMemoComment ( ctx context . Context , in * CreateMemoCommentRequest , opts ... grpc . CallOption ) ( * CreateMemoCommentResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemoComments lists comments for a memo.
2023-10-01 14:44:10 +08:00
ListMemoComments ( ctx context . Context , in * ListMemoCommentsRequest , opts ... grpc . CallOption ) ( * ListMemoCommentsResponse , error )
2023-12-23 18:35:47 +08:00
// GetUserMemosStats gets stats of memos for a user.
GetUserMemosStats ( ctx context . Context , in * GetUserMemosStatsRequest , opts ... grpc . CallOption ) ( * GetUserMemosStatsResponse , error )
2024-02-08 11:54:59 +08:00
// ListMemoReactions lists reactions for a memo.
ListMemoReactions ( ctx context . Context , in * ListMemoReactionsRequest , opts ... grpc . CallOption ) ( * ListMemoReactionsResponse , error )
// UpsertMemoReaction upserts a reaction for a memo.
UpsertMemoReaction ( ctx context . Context , in * UpsertMemoReactionRequest , opts ... grpc . CallOption ) ( * UpsertMemoReactionResponse , error )
// DeleteMemoReaction deletes a reaction for a memo.
DeleteMemoReaction ( ctx context . Context , in * DeleteMemoReactionRequest , opts ... grpc . CallOption ) ( * DeleteMemoReactionResponse , error )
2023-08-05 09:32:52 +08:00
}
type memoServiceClient struct {
cc grpc . ClientConnInterface
}
func NewMemoServiceClient ( cc grpc . ClientConnInterface ) MemoServiceClient {
return & memoServiceClient { cc }
}
2023-10-01 14:44:10 +08:00
func ( c * memoServiceClient ) CreateMemo ( ctx context . Context , in * CreateMemoRequest , opts ... grpc . CallOption ) ( * CreateMemoResponse , error ) {
out := new ( CreateMemoResponse )
err := c . cc . Invoke ( ctx , MemoService_CreateMemo_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-08-05 09:32:52 +08:00
func ( c * memoServiceClient ) ListMemos ( ctx context . Context , in * ListMemosRequest , opts ... grpc . CallOption ) ( * ListMemosResponse , error ) {
out := new ( ListMemosResponse )
err := c . cc . Invoke ( ctx , MemoService_ListMemos_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-03-18 23:23:53 +08:00
func ( c * memoServiceClient ) SearchMemos ( ctx context . Context , in * SearchMemosRequest , opts ... grpc . CallOption ) ( * SearchMemosResponse , error ) {
out := new ( SearchMemosResponse )
err := c . cc . Invoke ( ctx , MemoService_SearchMemos_FullMethodName , in , out , opts ... )
2023-08-05 09:32:52 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2024-03-18 23:23:53 +08:00
func ( c * memoServiceClient ) GetMemo ( ctx context . Context , in * GetMemoRequest , opts ... grpc . CallOption ) ( * GetMemoResponse , error ) {
out := new ( GetMemoResponse )
err := c . cc . Invoke ( ctx , MemoService_GetMemo_FullMethodName , in , out , opts ... )
2024-01-20 23:48:35 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-12-20 23:14:15 +08:00
func ( c * memoServiceClient ) UpdateMemo ( ctx context . Context , in * UpdateMemoRequest , opts ... grpc . CallOption ) ( * UpdateMemoResponse , error ) {
out := new ( UpdateMemoResponse )
err := c . cc . Invoke ( ctx , MemoService_UpdateMemo_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * memoServiceClient ) DeleteMemo ( ctx context . Context , in * DeleteMemoRequest , opts ... grpc . CallOption ) ( * DeleteMemoResponse , error ) {
out := new ( DeleteMemoResponse )
err := c . cc . Invoke ( ctx , MemoService_DeleteMemo_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-02-08 11:54:59 +08:00
func ( c * memoServiceClient ) ExportMemos ( ctx context . Context , in * ExportMemosRequest , opts ... grpc . CallOption ) ( * ExportMemosResponse , error ) {
out := new ( ExportMemosResponse )
err := c . cc . Invoke ( ctx , MemoService_ExportMemos_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-12-21 21:24:08 +08:00
func ( c * memoServiceClient ) SetMemoResources ( ctx context . Context , in * SetMemoResourcesRequest , opts ... grpc . CallOption ) ( * SetMemoResourcesResponse , error ) {
out := new ( SetMemoResourcesResponse )
err := c . cc . Invoke ( ctx , MemoService_SetMemoResources_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-12-20 23:46:04 +08:00
func ( c * memoServiceClient ) ListMemoResources ( ctx context . Context , in * ListMemoResourcesRequest , opts ... grpc . CallOption ) ( * ListMemoResourcesResponse , error ) {
out := new ( ListMemoResourcesResponse )
err := c . cc . Invoke ( ctx , MemoService_ListMemoResources_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-12-21 21:24:08 +08:00
func ( c * memoServiceClient ) SetMemoRelations ( ctx context . Context , in * SetMemoRelationsRequest , opts ... grpc . CallOption ) ( * SetMemoRelationsResponse , error ) {
out := new ( SetMemoRelationsResponse )
err := c . cc . Invoke ( ctx , MemoService_SetMemoRelations_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * memoServiceClient ) ListMemoRelations ( ctx context . Context , in * ListMemoRelationsRequest , opts ... grpc . CallOption ) ( * ListMemoRelationsResponse , error ) {
out := new ( ListMemoRelationsResponse )
err := c . cc . Invoke ( ctx , MemoService_ListMemoRelations_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-10-01 14:44:10 +08:00
func ( c * memoServiceClient ) CreateMemoComment ( ctx context . Context , in * CreateMemoCommentRequest , opts ... grpc . CallOption ) ( * CreateMemoCommentResponse , error ) {
out := new ( CreateMemoCommentResponse )
err := c . cc . Invoke ( ctx , MemoService_CreateMemoComment_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * memoServiceClient ) ListMemoComments ( ctx context . Context , in * ListMemoCommentsRequest , opts ... grpc . CallOption ) ( * ListMemoCommentsResponse , error ) {
out := new ( ListMemoCommentsResponse )
err := c . cc . Invoke ( ctx , MemoService_ListMemoComments_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2024-02-08 11:54:59 +08:00
func ( c * memoServiceClient ) GetUserMemosStats ( ctx context . Context , in * GetUserMemosStatsRequest , opts ... grpc . CallOption ) ( * GetUserMemosStatsResponse , error ) {
out := new ( GetUserMemosStatsResponse )
err := c . cc . Invoke ( ctx , MemoService_GetUserMemosStats_FullMethodName , in , out , opts ... )
2024-01-30 16:42:54 +08:00
if err != nil {
return nil , err
}
2024-02-04 20:20:14 +08:00
return out , nil
2024-01-30 16:42:54 +08:00
}
2024-02-08 11:54:59 +08:00
func ( c * memoServiceClient ) ListMemoReactions ( ctx context . Context , in * ListMemoReactionsRequest , opts ... grpc . CallOption ) ( * ListMemoReactionsResponse , error ) {
out := new ( ListMemoReactionsResponse )
err := c . cc . Invoke ( ctx , MemoService_ListMemoReactions_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * memoServiceClient ) UpsertMemoReaction ( ctx context . Context , in * UpsertMemoReactionRequest , opts ... grpc . CallOption ) ( * UpsertMemoReactionResponse , error ) {
out := new ( UpsertMemoReactionResponse )
err := c . cc . Invoke ( ctx , MemoService_UpsertMemoReaction_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * memoServiceClient ) DeleteMemoReaction ( ctx context . Context , in * DeleteMemoReactionRequest , opts ... grpc . CallOption ) ( * DeleteMemoReactionResponse , error ) {
out := new ( DeleteMemoReactionResponse )
err := c . cc . Invoke ( ctx , MemoService_DeleteMemoReaction_FullMethodName , in , out , opts ... )
2024-01-30 22:10:17 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-08-05 09:32:52 +08:00
// MemoServiceServer is the server API for MemoService service.
// All implementations must embed UnimplementedMemoServiceServer
// for forward compatibility
type MemoServiceServer interface {
2023-12-21 22:42:06 +08:00
// CreateMemo creates a memo.
2023-10-01 14:44:10 +08:00
CreateMemo ( context . Context , * CreateMemoRequest ) ( * CreateMemoResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemos lists memos with pagination and filter.
2023-08-05 09:32:52 +08:00
ListMemos ( context . Context , * ListMemosRequest ) ( * ListMemosResponse , error )
2024-03-20 21:17:04 +08:00
// SearchMemos searches memos.
2024-03-18 23:23:53 +08:00
SearchMemos ( context . Context , * SearchMemosRequest ) ( * SearchMemosResponse , error )
// GetMemo gets a memo.
2023-08-05 09:32:52 +08:00
GetMemo ( context . Context , * GetMemoRequest ) ( * GetMemoResponse , error )
2023-12-21 22:42:06 +08:00
// UpdateMemo updates a memo.
2023-12-20 23:14:15 +08:00
UpdateMemo ( context . Context , * UpdateMemoRequest ) ( * UpdateMemoResponse , error )
2024-03-18 23:23:53 +08:00
// DeleteMemo deletes a memo.
2023-12-20 23:14:15 +08:00
DeleteMemo ( context . Context , * DeleteMemoRequest ) ( * DeleteMemoResponse , error )
2024-02-08 11:54:59 +08:00
// ExportMemos exports memos.
ExportMemos ( context . Context , * ExportMemosRequest ) ( * ExportMemosResponse , error )
2023-12-21 22:42:06 +08:00
// SetMemoResources sets resources for a memo.
2023-12-21 21:24:08 +08:00
SetMemoResources ( context . Context , * SetMemoResourcesRequest ) ( * SetMemoResourcesResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemoResources lists resources for a memo.
2023-12-20 23:46:04 +08:00
ListMemoResources ( context . Context , * ListMemoResourcesRequest ) ( * ListMemoResourcesResponse , error )
2023-12-21 22:42:06 +08:00
// SetMemoRelations sets relations for a memo.
2023-12-21 21:24:08 +08:00
SetMemoRelations ( context . Context , * SetMemoRelationsRequest ) ( * SetMemoRelationsResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemoRelations lists relations for a memo.
2023-12-21 21:24:08 +08:00
ListMemoRelations ( context . Context , * ListMemoRelationsRequest ) ( * ListMemoRelationsResponse , error )
2023-12-21 22:42:06 +08:00
// CreateMemoComment creates a comment for a memo.
2023-10-01 14:44:10 +08:00
CreateMemoComment ( context . Context , * CreateMemoCommentRequest ) ( * CreateMemoCommentResponse , error )
2023-12-21 22:42:06 +08:00
// ListMemoComments lists comments for a memo.
2023-10-01 14:44:10 +08:00
ListMemoComments ( context . Context , * ListMemoCommentsRequest ) ( * ListMemoCommentsResponse , error )
2023-12-23 18:35:47 +08:00
// GetUserMemosStats gets stats of memos for a user.
GetUserMemosStats ( context . Context , * GetUserMemosStatsRequest ) ( * GetUserMemosStatsResponse , error )
2024-02-08 11:54:59 +08:00
// ListMemoReactions lists reactions for a memo.
ListMemoReactions ( context . Context , * ListMemoReactionsRequest ) ( * ListMemoReactionsResponse , error )
// UpsertMemoReaction upserts a reaction for a memo.
UpsertMemoReaction ( context . Context , * UpsertMemoReactionRequest ) ( * UpsertMemoReactionResponse , error )
// DeleteMemoReaction deletes a reaction for a memo.
DeleteMemoReaction ( context . Context , * DeleteMemoReactionRequest ) ( * DeleteMemoReactionResponse , error )
2023-08-05 09:32:52 +08:00
mustEmbedUnimplementedMemoServiceServer ( )
}
// UnimplementedMemoServiceServer must be embedded to have forward compatible implementations.
type UnimplementedMemoServiceServer struct {
}
2023-10-01 14:44:10 +08:00
func ( UnimplementedMemoServiceServer ) CreateMemo ( context . Context , * CreateMemoRequest ) ( * CreateMemoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateMemo not implemented" )
}
2023-08-05 09:32:52 +08:00
func ( UnimplementedMemoServiceServer ) ListMemos ( context . Context , * ListMemosRequest ) ( * ListMemosResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListMemos not implemented" )
}
2024-03-18 23:23:53 +08:00
func ( UnimplementedMemoServiceServer ) SearchMemos ( context . Context , * SearchMemosRequest ) ( * SearchMemosResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SearchMemos not implemented" )
}
2023-08-05 09:32:52 +08:00
func ( UnimplementedMemoServiceServer ) GetMemo ( context . Context , * GetMemoRequest ) ( * GetMemoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetMemo not implemented" )
}
2023-12-20 23:14:15 +08:00
func ( UnimplementedMemoServiceServer ) UpdateMemo ( context . Context , * UpdateMemoRequest ) ( * UpdateMemoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateMemo not implemented" )
}
func ( UnimplementedMemoServiceServer ) DeleteMemo ( context . Context , * DeleteMemoRequest ) ( * DeleteMemoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteMemo not implemented" )
}
2024-02-08 11:54:59 +08:00
func ( UnimplementedMemoServiceServer ) ExportMemos ( context . Context , * ExportMemosRequest ) ( * ExportMemosResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ExportMemos not implemented" )
}
2023-12-21 21:24:08 +08:00
func ( UnimplementedMemoServiceServer ) SetMemoResources ( context . Context , * SetMemoResourcesRequest ) ( * SetMemoResourcesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetMemoResources not implemented" )
}
2023-12-20 23:46:04 +08:00
func ( UnimplementedMemoServiceServer ) ListMemoResources ( context . Context , * ListMemoResourcesRequest ) ( * ListMemoResourcesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListMemoResources not implemented" )
}
2023-12-21 21:24:08 +08:00
func ( UnimplementedMemoServiceServer ) SetMemoRelations ( context . Context , * SetMemoRelationsRequest ) ( * SetMemoRelationsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetMemoRelations not implemented" )
}
func ( UnimplementedMemoServiceServer ) ListMemoRelations ( context . Context , * ListMemoRelationsRequest ) ( * ListMemoRelationsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListMemoRelations not implemented" )
}
2023-10-01 14:44:10 +08:00
func ( UnimplementedMemoServiceServer ) CreateMemoComment ( context . Context , * CreateMemoCommentRequest ) ( * CreateMemoCommentResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateMemoComment not implemented" )
}
func ( UnimplementedMemoServiceServer ) ListMemoComments ( context . Context , * ListMemoCommentsRequest ) ( * ListMemoCommentsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListMemoComments not implemented" )
}
2024-01-30 22:10:17 +08:00
func ( UnimplementedMemoServiceServer ) GetUserMemosStats ( context . Context , * GetUserMemosStatsRequest ) ( * GetUserMemosStatsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetUserMemosStats not implemented" )
}
2024-02-08 11:54:59 +08:00
func ( UnimplementedMemoServiceServer ) ListMemoReactions ( context . Context , * ListMemoReactionsRequest ) ( * ListMemoReactionsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListMemoReactions not implemented" )
}
func ( UnimplementedMemoServiceServer ) UpsertMemoReaction ( context . Context , * UpsertMemoReactionRequest ) ( * UpsertMemoReactionResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpsertMemoReaction not implemented" )
}
func ( UnimplementedMemoServiceServer ) DeleteMemoReaction ( context . Context , * DeleteMemoReactionRequest ) ( * DeleteMemoReactionResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteMemoReaction not implemented" )
}
2023-08-05 09:32:52 +08:00
func ( UnimplementedMemoServiceServer ) mustEmbedUnimplementedMemoServiceServer ( ) { }
// UnsafeMemoServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MemoServiceServer will
// result in compilation errors.
type UnsafeMemoServiceServer interface {
mustEmbedUnimplementedMemoServiceServer ( )
}
func RegisterMemoServiceServer ( s grpc . ServiceRegistrar , srv MemoServiceServer ) {
s . RegisterService ( & MemoService_ServiceDesc , srv )
}
2023-10-01 14:44:10 +08:00
func _MemoService_CreateMemo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateMemoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . CreateMemo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_CreateMemo_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . CreateMemo ( ctx , req . ( * CreateMemoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-08-05 09:32:52 +08:00
func _MemoService_ListMemos_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListMemosRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . ListMemos ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_ListMemos_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . ListMemos ( ctx , req . ( * ListMemosRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-03-18 23:23:53 +08:00
func _MemoService_SearchMemos_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SearchMemosRequest )
2023-08-05 09:32:52 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-03-18 23:23:53 +08:00
return srv . ( MemoServiceServer ) . SearchMemos ( ctx , in )
2023-08-05 09:32:52 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-03-18 23:23:53 +08:00
FullMethod : MemoService_SearchMemos_FullMethodName ,
2023-08-05 09:32:52 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-03-18 23:23:53 +08:00
return srv . ( MemoServiceServer ) . SearchMemos ( ctx , req . ( * SearchMemosRequest ) )
2023-08-05 09:32:52 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2024-03-18 23:23:53 +08:00
func _MemoService_GetMemo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetMemoRequest )
2024-01-20 23:48:35 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-03-18 23:23:53 +08:00
return srv . ( MemoServiceServer ) . GetMemo ( ctx , in )
2024-01-20 23:48:35 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-03-18 23:23:53 +08:00
FullMethod : MemoService_GetMemo_FullMethodName ,
2024-01-20 23:48:35 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-03-18 23:23:53 +08:00
return srv . ( MemoServiceServer ) . GetMemo ( ctx , req . ( * GetMemoRequest ) )
2024-01-20 23:48:35 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-20 23:14:15 +08:00
func _MemoService_UpdateMemo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateMemoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . UpdateMemo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_UpdateMemo_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . UpdateMemo ( ctx , req . ( * UpdateMemoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MemoService_DeleteMemo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteMemoRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . DeleteMemo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_DeleteMemo_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . DeleteMemo ( ctx , req . ( * DeleteMemoRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-02-08 11:54:59 +08:00
func _MemoService_ExportMemos_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ExportMemosRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . ExportMemos ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_ExportMemos_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . ExportMemos ( ctx , req . ( * ExportMemosRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-12-21 21:24:08 +08:00
func _MemoService_SetMemoResources_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetMemoResourcesRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . SetMemoResources ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_SetMemoResources_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . SetMemoResources ( ctx , req . ( * SetMemoResourcesRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-12-20 23:46:04 +08:00
func _MemoService_ListMemoResources_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListMemoResourcesRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . ListMemoResources ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_ListMemoResources_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . ListMemoResources ( ctx , req . ( * ListMemoResourcesRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-12-21 21:24:08 +08:00
func _MemoService_SetMemoRelations_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetMemoRelationsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . SetMemoRelations ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_SetMemoRelations_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . SetMemoRelations ( ctx , req . ( * SetMemoRelationsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MemoService_ListMemoRelations_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListMemoRelationsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . ListMemoRelations ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_ListMemoRelations_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . ListMemoRelations ( ctx , req . ( * ListMemoRelationsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-10-01 14:44:10 +08:00
func _MemoService_CreateMemoComment_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateMemoCommentRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . CreateMemoComment ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_CreateMemoComment_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . CreateMemoComment ( ctx , req . ( * CreateMemoCommentRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MemoService_ListMemoComments_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListMemoCommentsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . ListMemoComments ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_ListMemoComments_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . ListMemoComments ( ctx , req . ( * ListMemoCommentsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-02-08 11:54:59 +08:00
func _MemoService_GetUserMemosStats_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetUserMemosStatsRequest )
2024-02-04 20:20:14 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
2024-01-30 16:42:54 +08:00
}
2024-02-04 20:20:14 +08:00
if interceptor == nil {
2024-02-08 11:54:59 +08:00
return srv . ( MemoServiceServer ) . GetUserMemosStats ( ctx , in )
2024-02-04 20:20:14 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-08 11:54:59 +08:00
FullMethod : MemoService_GetUserMemosStats_FullMethodName ,
2024-02-04 20:20:14 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-02-08 11:54:59 +08:00
return srv . ( MemoServiceServer ) . GetUserMemosStats ( ctx , req . ( * GetUserMemosStatsRequest ) )
2024-02-04 20:20:14 +08:00
}
return interceptor ( ctx , in , info , handler )
2024-01-30 16:42:54 +08:00
}
2024-02-08 11:54:59 +08:00
func _MemoService_ListMemoReactions_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListMemoReactionsRequest )
2024-01-30 22:10:17 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-02-08 11:54:59 +08:00
return srv . ( MemoServiceServer ) . ListMemoReactions ( ctx , in )
2024-01-30 22:10:17 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-08 11:54:59 +08:00
FullMethod : MemoService_ListMemoReactions_FullMethodName ,
2024-01-30 22:10:17 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-02-08 11:54:59 +08:00
return srv . ( MemoServiceServer ) . ListMemoReactions ( ctx , req . ( * ListMemoReactionsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MemoService_UpsertMemoReaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpsertMemoReactionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . UpsertMemoReaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_UpsertMemoReaction_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . UpsertMemoReaction ( ctx , req . ( * UpsertMemoReactionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MemoService_DeleteMemoReaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteMemoReactionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MemoServiceServer ) . DeleteMemoReaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : MemoService_DeleteMemoReaction_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MemoServiceServer ) . DeleteMemoReaction ( ctx , req . ( * DeleteMemoReactionRequest ) )
2024-01-30 22:10:17 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-08-05 09:32:52 +08:00
// MemoService_ServiceDesc is the grpc.ServiceDesc for MemoService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var MemoService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "memos.api.v2.MemoService" ,
HandlerType : ( * MemoServiceServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
2023-10-01 14:44:10 +08:00
{
MethodName : "CreateMemo" ,
Handler : _MemoService_CreateMemo_Handler ,
} ,
2023-08-05 09:32:52 +08:00
{
MethodName : "ListMemos" ,
Handler : _MemoService_ListMemos_Handler ,
} ,
{
2024-03-18 23:23:53 +08:00
MethodName : "SearchMemos" ,
Handler : _MemoService_SearchMemos_Handler ,
2023-08-05 09:32:52 +08:00
} ,
2024-01-20 23:48:35 +08:00
{
2024-03-18 23:23:53 +08:00
MethodName : "GetMemo" ,
Handler : _MemoService_GetMemo_Handler ,
2024-01-20 23:48:35 +08:00
} ,
2023-12-20 23:14:15 +08:00
{
MethodName : "UpdateMemo" ,
Handler : _MemoService_UpdateMemo_Handler ,
} ,
{
MethodName : "DeleteMemo" ,
Handler : _MemoService_DeleteMemo_Handler ,
} ,
2024-02-08 11:54:59 +08:00
{
MethodName : "ExportMemos" ,
Handler : _MemoService_ExportMemos_Handler ,
} ,
2023-12-21 21:24:08 +08:00
{
MethodName : "SetMemoResources" ,
Handler : _MemoService_SetMemoResources_Handler ,
} ,
2023-12-20 23:46:04 +08:00
{
MethodName : "ListMemoResources" ,
Handler : _MemoService_ListMemoResources_Handler ,
} ,
2023-12-21 21:24:08 +08:00
{
MethodName : "SetMemoRelations" ,
Handler : _MemoService_SetMemoRelations_Handler ,
} ,
{
MethodName : "ListMemoRelations" ,
Handler : _MemoService_ListMemoRelations_Handler ,
} ,
2023-10-01 14:44:10 +08:00
{
MethodName : "CreateMemoComment" ,
Handler : _MemoService_CreateMemoComment_Handler ,
} ,
{
MethodName : "ListMemoComments" ,
Handler : _MemoService_ListMemoComments_Handler ,
} ,
2024-01-30 16:42:54 +08:00
{
2024-02-04 20:20:14 +08:00
MethodName : "GetUserMemosStats" ,
Handler : _MemoService_GetUserMemosStats_Handler ,
2024-01-30 16:42:54 +08:00
} ,
2024-02-08 11:54:59 +08:00
{
MethodName : "ListMemoReactions" ,
Handler : _MemoService_ListMemoReactions_Handler ,
} ,
{
MethodName : "UpsertMemoReaction" ,
Handler : _MemoService_UpsertMemoReaction_Handler ,
} ,
{
MethodName : "DeleteMemoReaction" ,
Handler : _MemoService_DeleteMemoReaction_Handler ,
} ,
2024-01-30 16:42:54 +08:00
} ,
2024-02-04 20:20:14 +08:00
Streams : [ ] grpc . StreamDesc { } ,
2023-08-05 09:32:52 +08:00
Metadata : "api/v2/memo_service.proto" ,
}