feat: initial commit
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"gogrpc/proto"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
proto.UnimplementedServiceServer
|
||||
}
|
||||
|
||||
func (s *Service) Ping(context.Context, *proto.PingMessage) (*proto.PingMessage, error) {
|
||||
return &proto.PingMessage{Message: "pong"}, nil
|
||||
}
|
||||
|
||||
var _ proto.ServiceServer = (*Service)(nil)
|
||||
Reference in New Issue
Block a user