You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I am trying to study your course, but I can not pass a 17th path of the Lesson
First protoc format and keys was changed and I was needed to read a documentation for update keys and set the full path for package.
For now I am trying to follow a simple add listener and getting error
server.go
package main
import (
"fmt"
"github.com/davidka79/go-grp-study/greet/greetpb"
"google.golang.org/grpc"
"log"
"net"
)
type server struct {}
func main() {
fmt.Println("Hello World")
lis, err := net.Listen("tcp", "0.0.0.0:50051")
if err != nil {
log.Fatalf("Failed %v", err)
}
s := grpc.NewServer()
greetpb.RegisterGteetServiceServer(s, &server{})
if err := s.Serve(lis); err != nil {
log.Fatalf("Failed to serve %v", err)
}
}
here at greetpb.RegisterGteetServiceServer(s, &server{}) the error that *"Cannot use '&server{}' (type server) as the type GteetServiceServer Type does not implement 'GteetServiceServer' as some methods are missing: mustEmbedUnimplementedGteetServiceServer()"
I tried many ways but still not succeed, probably need to update code, but I do not know what to do
The text was updated successfully, but these errors were encountered:
Hello
I am trying to study your course, but I can not pass a 17th path of the Lesson
First protoc format and keys was changed and I was needed to read a documentation for update keys and set the full path for package.
For now I am trying to follow a simple add listener and getting error
server.go
here at greetpb.RegisterGteetServiceServer(s, &server{}) the error that *"Cannot use '&server{}' (type server) as the type GteetServiceServer Type does not implement 'GteetServiceServer' as some methods are missing: mustEmbedUnimplementedGteetServiceServer()"
I tried many ways but still not succeed, probably need to update code, but I do not know what to do
The text was updated successfully, but these errors were encountered: