server

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL