service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GreeterServer

type GreeterServer struct {
	pb.UnimplementedGreeterServer
}

GreeterServer 实现 Greeter 服务

func NewGreeterServer

func NewGreeterServer() *GreeterServer

NewGreeterServer 创建一个新的 GreeterServer

func (*GreeterServer) SayHello

func (s *GreeterServer) SayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error)

SayHello 实现 SayHello RPC 方法

Jump to

Keyboard shortcuts

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