storage

package
v0.0.0-...-546cffa Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 New

func New() *Scylla

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)

Jump to

Keyboard shortcuts

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