postrpc

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 CountPostReq added in v1.2.5

type CountPostReq = pb.CountPostReq

type CountPostResp added in v1.2.5

type CountPostResp = pb.CountPostResp

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 FilterOptions added in v1.2.5

type FilterOptions = pb.FilterOptions

type ListPostReq

type ListPostReq = pb.ListPostReq

type ListPostResp

type ListPostResp = pb.ListPostResp

type PaginationOptions added in v1.2.5

type PaginationOptions = pb.PaginationOptions

type Post

type Post = pb.Post

type PostRpc

type PostRpc interface {
	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)
	CountPost(ctx context.Context, in *CountPostReq, opts ...grpc.CallOption) (*CountPostResp, error)
	SetOfficial(ctx context.Context, in *SetOfficialReq, opts ...grpc.CallOption) (*SetOfficialResp, error)
}

func NewPostRpc

func NewPostRpc(cli zrpc.Client) PostRpc

type RetrievePostReq

type RetrievePostReq = pb.RetrievePostReq

type RetrievePostResp

type RetrievePostResp = pb.RetrievePostResp

type SearchField added in v1.2.5

type SearchField = pb.SearchField

type SearchOptions added in v1.2.5

type SearchOptions = pb.SearchOptions

type SetOfficialReq added in v1.2.0

type SetOfficialReq = pb.SetOfficialReq

type SetOfficialResp added in v1.2.0

type SetOfficialResp = pb.SetOfficialResp

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