Documentation ¶
Index ¶
- type UserServer
- func (s *UserServer) Chat(stream pb.UserService_ChatServer) error
- func (s *UserServer) CreateUser(ctx context.Context, req *pb.UserParams) (*pb.AuthUser, error)
- func (s *UserServer) FetchUsers(req *pb.NoParams, stream pb.UserService_FetchUsersServer) error
- func (s *UserServer) FindUser(ctx context.Context, req *pb.UserId) (*pb.User, error)
- func (s *UserServer) FindUsers(ctx context.Context, req *pb.NoParams) (*pb.Users, error)
- func (s *UserServer) VerifyUsers(stream pb.UserService_VerifyUsersServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserServer ¶
type UserServer struct {
pb.UserServiceServer
}
func (*UserServer) Chat ¶
func (s *UserServer) Chat(stream pb.UserService_ChatServer) error
bidirectional streaming i.e receive streams and send stream
func (*UserServer) CreateUser ¶
func (s *UserServer) CreateUser(ctx context.Context, req *pb.UserParams) (*pb.AuthUser, error)
func (*UserServer) FetchUsers ¶
func (s *UserServer) FetchUsers(req *pb.NoParams, stream pb.UserService_FetchUsersServer) error
server streaming i.e server sending strems of messages back to the client
func (*UserServer) VerifyUsers ¶
func (s *UserServer) VerifyUsers(stream pb.UserService_VerifyUsersServer) error
client streaming i.e client sending messages in streams, while server just respond with a message
Click to show internal directories.
Click to hide internal directories.