Documentation ¶
Index ¶
- type GRPCServer
- func (server *GRPCServer) CreateUser(ctx context.Context, req *pb.UserRequest) (*pb.UserResponse, error)
- func (server *GRPCServer) GetUser(ctx context.Context, req *pb.Username) (*pb.UserResponse, error)
- func (server *GRPCServer) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)
- func (server *GRPCServer) Start(address string) error
- func (server *GRPCServer) UpdateUser(ctx context.Context, req *pb.UserUpdateRequest) (*pb.UserResponse, error)
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct { pb.UnimplementedBankServiceServer // contains filtered or unexported fields }
func (*GRPCServer) CreateUser ¶
func (server *GRPCServer) CreateUser(ctx context.Context, req *pb.UserRequest) (*pb.UserResponse, error)
func (*GRPCServer) GetUser ¶
func (server *GRPCServer) GetUser(ctx context.Context, req *pb.Username) (*pb.UserResponse, error)
func (*GRPCServer) Login ¶
func (server *GRPCServer) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)
func (*GRPCServer) Start ¶
func (server *GRPCServer) Start(address string) error
func (*GRPCServer) UpdateUser ¶
func (server *GRPCServer) UpdateUser(ctx context.Context, req *pb.UserUpdateRequest) (*pb.UserResponse, error)
Click to show internal directories.
Click to hide internal directories.