Documentation ¶
Index ¶
- type PostRpcServer
- func (s *PostRpcServer) CreatePost(ctx context.Context, in *pb.CreatePostReq) (*pb.CreatePostResp, error)
- func (s *PostRpcServer) DeletePost(ctx context.Context, in *pb.DeletePostReq) (*pb.DeletePostResp, error)
- func (s *PostRpcServer) ListPost(ctx context.Context, in *pb.ListPostReq) (*pb.ListPostResp, error)
- func (s *PostRpcServer) ListPostByUserId(ctx context.Context, in *pb.ListPostByUserIdReq) (*pb.ListPostByUserIdResp, error)
- func (s *PostRpcServer) RetrievePost(ctx context.Context, in *pb.RetrievePostReq) (*pb.RetrievePostResp, error)
- func (s *PostRpcServer) SearchPost(ctx context.Context, in *pb.SearchPostReq) (*pb.SearchPostResp, error)
- func (s *PostRpcServer) UpdatePost(ctx context.Context, in *pb.UpdatePostReq) (*pb.UpdatePostResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRpcServer ¶
type PostRpcServer struct { pb.UnimplementedPostRpcServer // contains filtered or unexported fields }
func NewPostRpcServer ¶
func NewPostRpcServer(svcCtx *svc.ServiceContext) *PostRpcServer
func (*PostRpcServer) CreatePost ¶
func (s *PostRpcServer) CreatePost(ctx context.Context, in *pb.CreatePostReq) (*pb.CreatePostResp, error)
func (*PostRpcServer) DeletePost ¶
func (s *PostRpcServer) DeletePost(ctx context.Context, in *pb.DeletePostReq) (*pb.DeletePostResp, error)
func (*PostRpcServer) ListPost ¶
func (s *PostRpcServer) ListPost(ctx context.Context, in *pb.ListPostReq) (*pb.ListPostResp, error)
func (*PostRpcServer) ListPostByUserId ¶
func (s *PostRpcServer) ListPostByUserId(ctx context.Context, in *pb.ListPostByUserIdReq) (*pb.ListPostByUserIdResp, error)
func (*PostRpcServer) RetrievePost ¶
func (s *PostRpcServer) RetrievePost(ctx context.Context, in *pb.RetrievePostReq) (*pb.RetrievePostResp, error)
func (*PostRpcServer) SearchPost ¶
func (s *PostRpcServer) SearchPost(ctx context.Context, in *pb.SearchPostReq) (*pb.SearchPostResp, error)
func (*PostRpcServer) UpdatePost ¶
func (s *PostRpcServer) UpdatePost(ctx context.Context, in *pb.UpdatePostReq) (*pb.UpdatePostResp, error)
Click to show internal directories.
Click to hide internal directories.