Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
pb.UnimplementedUserServiceServer
// contains filtered or unexported fields
}
UserService is a minimal UserService implementation for testing.
func NewUserService ¶
func NewUserService(users map[string]string) *UserService
NewUserService creates a UserService with pre-populated users.
func (*UserService) GetUser ¶
func (s *UserService) GetUser(_ context.Context, req *pb.GetUserRequest) (*pb.GetUserResponse, error)
Click to show internal directories.
Click to hide internal directories.