Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Greeter ¶
type Greeter struct {
pb.UnimplementedGreeterDescServer
}
func (*Greeter) SayHello ¶
func (g *Greeter) SayHello(_ context.Context, req *pb.HelloRequest) (*pb.HelloReply, error)
func (*Greeter) SayHelloStream ¶
func (g *Greeter) SayHelloStream(pb.Greeter_SayHelloStreamServer) error
type User ¶
type User struct {
pb.UnimplementedUserDescServer
}
func (*User) Login ¶
func (u *User) Login(ctx context.Context, in *pb.LoginRequest) (*pb.LoginReply, error)
func (*User) Register ¶
func (u *User) Register(ctx context.Context, in *pb.RegisterRequest) (*pb.LoginReply, error)
Click to show internal directories.
Click to hide internal directories.