Documentation ¶
Index ¶
- type Database
- type Scylla
- func (s *Scylla) CreateUser(req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
- func (s *Scylla) DeleteUser(req *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error)
- func (s *Scylla) GetUser(req *pb.GetUserRequest) (*pb.GetUserResponse, error)
- func (s *Scylla) UpdateUser(req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { CreateUser(req *pb.CreateUserRequest) (*pb.CreateUserResponse, error) GetUser(req *pb.GetUserRequest) (*pb.GetUserResponse, error) UpdateUser(req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error) DeleteUser(req *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error) }
type Scylla ¶
type Scylla struct {
// contains filtered or unexported fields
}
func (*Scylla) CreateUser ¶
func (s *Scylla) CreateUser(req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
make unique or sth
func (*Scylla) DeleteUser ¶
func (s *Scylla) DeleteUser(req *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error)
func (*Scylla) GetUser ¶
func (s *Scylla) GetUser(req *pb.GetUserRequest) (*pb.GetUserResponse, error)
I think i should accept user model here and then convert it to proto but is it worth it tho?
func (*Scylla) UpdateUser ¶
func (s *Scylla) UpdateUser(req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.