impl

package
v0.0.0-...-f5108b3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 7 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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