Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { ListUser(pageSize int, pageToken string) ([]datamodel.User, string, int, error) CreateUser(user *datamodel.User) error GetUser(uid uuid.UUID) (*datamodel.User, error) GetUserByID(id string) (*datamodel.User, error) UpdateUser(uid uuid.UUID, user *datamodel.User) error DeleteUser(uid uuid.UUID) error DeleteUserByID(id string) error }
Repository interface
func NewRepository ¶
func NewRepository(db *gorm.DB) Repository
NewRepository initiates a repository instance
Click to show internal directories.
Click to hide internal directories.