postrpc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 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 CreatePostReq

type CreatePostReq = pb.CreatePostReq

type CreatePostResp

type CreatePostResp = pb.CreatePostResp

type DeletePostReq

type DeletePostReq = pb.DeletePostReq

type DeletePostResp

type DeletePostResp = pb.DeletePostResp

type ListPostByUserIdReq

type ListPostByUserIdReq = pb.ListPostByUserIdReq

type ListPostByUserIdResp

type ListPostByUserIdResp = pb.ListPostByUserIdResp

type ListPostReq

type ListPostReq = pb.ListPostReq

type ListPostResp

type ListPostResp = pb.ListPostResp

type Post

type Post = pb.Post

type PostRpc

type PostRpc interface {
	SearchPost(ctx context.Context, in *SearchPostReq, opts ...grpc.CallOption) (*SearchPostResp, error)
	CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CreatePostResp, error)
	RetrievePost(ctx context.Context, in *RetrievePostReq, opts ...grpc.CallOption) (*RetrievePostResp, error)
	UpdatePost(ctx context.Context, in *UpdatePostReq, opts ...grpc.CallOption) (*UpdatePostResp, error)
	DeletePost(ctx context.Context, in *DeletePostReq, opts ...grpc.CallOption) (*DeletePostResp, error)
	ListPost(ctx context.Context, in *ListPostReq, opts ...grpc.CallOption) (*ListPostResp, error)
	ListPostByUserId(ctx context.Context, in *ListPostByUserIdReq, opts ...grpc.CallOption) (*ListPostByUserIdResp, error)
}

func NewPostRpc

func NewPostRpc(cli zrpc.Client) PostRpc

type RetrievePostReq

type RetrievePostReq = pb.RetrievePostReq

type RetrievePostResp

type RetrievePostResp = pb.RetrievePostResp

type SearchPostReq

type SearchPostReq = pb.SearchPostReq

type SearchPostResp

type SearchPostResp = pb.SearchPostResp

type UpdatePostReq

type UpdatePostReq = pb.UpdatePostReq

type UpdatePostResp

type UpdatePostResp = pb.UpdatePostResp

Jump to

Keyboard shortcuts

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