users

package
v0.0.0-...-fa757dc Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) FindUser

func (s *UserServer) FindUser(ctx context.Context, req *pb.UserId) (*pb.User, error)

func (*UserServer) FindUsers

func (s *UserServer) FindUsers(ctx context.Context, req *pb.NoParams) (*pb.Users, error)

unary

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

Jump to

Keyboard shortcuts

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