Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewsServer ¶
type NewsServer interface { GetNews(context.Context, *news.GetNewsRequest) (*news.GetNewsReply, error) GetMyNews(context.Context, *news.GetNewsRequest) (*news.GetNewsReply, error) PostNews(context.Context, *news.PostNewsRequest) (*news.PostNewsReply, error) RecallNews(context.Context, *news.RecallNewsRequest) (*news.RecallNewsReply, error) LikeNews(context.Context, *news.LikeNewsRequest) (*news.LikeNewsReply, error) }
NewsServer provide the function about grpc port which is supported by newsm
func NewNewsServer ¶
func NewNewsServer(redisPoll redism.Redism) NewsServer
NewNewsServer generate a NewsServer interface for client
Click to show internal directories.
Click to hide internal directories.