Documentation
¶
Index ¶
- type PostRpcServer
- func (s *PostRpcServer) CountPost(ctx context.Context, in *pb.CountPostReq) (*pb.CountPostResp, error)
- 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) RetrievePost(ctx context.Context, in *pb.RetrievePostReq) (*pb.RetrievePostResp, error)
- func (s *PostRpcServer) SetOfficial(ctx context.Context, in *pb.SetOfficialReq) (*pb.SetOfficialResp, 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) CountPost ¶ added in v1.2.5
func (s *PostRpcServer) CountPost(ctx context.Context, in *pb.CountPostReq) (*pb.CountPostResp, error)
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) RetrievePost ¶
func (s *PostRpcServer) RetrievePost(ctx context.Context, in *pb.RetrievePostReq) (*pb.RetrievePostResp, error)
func (*PostRpcServer) SetOfficial ¶ added in v1.2.0
func (s *PostRpcServer) SetOfficial(ctx context.Context, in *pb.SetOfficialReq) (*pb.SetOfficialResp, 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.