Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentServiceImpl ¶
type CommentServiceImpl struct { // rpc 能力继承 comment.UnimplementedRPCServer // contains filtered or unexported fields }
需要实现完整的接口, 通过也要实现grpc对外接口
func (*CommentServiceImpl) CreateComment ¶
func (i *CommentServiceImpl) CreateComment( ctx context.Context, in *comment.CreateCommentRequest) ( *comment.Comment, error)
RPC接口
func (*CommentServiceImpl) Init ¶
func (i *CommentServiceImpl) Init() error
func (*CommentServiceImpl) Name ¶
func (i *CommentServiceImpl) Name() string
func (*CommentServiceImpl) Registry ¶
func (h *CommentServiceImpl) Registry(r *grpc.Server)
对外暴露 grpc能力 通过gprc server
Click to show internal directories.
Click to hide internal directories.