Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PingService ¶
type PingService struct {
pb.UnimplementedPingServer
// contains filtered or unexported fields
}
PingService implements the Ping service with configurable logging PingService 实现 Ping 服务,支持可配置的日志记录
func NewPingService ¶
func NewPingService(logger log.Logger) *PingService
NewPingService creates a new PingService with the provided logger 使用提供的 logger 创建新的 PingService
func (*PingService) Ping ¶
func (s *PingService) Ping(ctx context.Context, req *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
Ping handles ping requests and returns the same message back Ping 处理 ping 请求并返回相同的消息
Click to show internal directories.
Click to hide internal directories.